
/* ========================================================================
   GAMES-FRONTDOOR-05 — newcomer-first Energy Playground
   Page-scoped stylesheet. No game bundles or shared stylesheet are modified.
   ======================================================================== */

.games-frontdoor {
    position: relative;
    overflow: hidden;
    padding: clamp(3.4rem, 7vw, 6.6rem) 0 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(47, 217, 255, 0.16), transparent 27rem),
        radial-gradient(circle at 12% 68%, rgba(22, 229, 141, 0.14), transparent 29rem),
        linear-gradient(145deg, #031712 0%, #062a21 54%, #041a20 100%);
    isolation: isolate;
}

.games-frontdoor::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(rgba(128, 255, 188, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 255, 188, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%);
}

.games-frontdoor__glow {
    position: absolute;
    z-index: -1;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.13;
    pointer-events: none;
}

.games-frontdoor__glow--one {
    top: -16rem;
    right: -9rem;
    background: var(--cyan);
}

.games-frontdoor__glow--two {
    bottom: -20rem;
    left: -10rem;
    background: var(--green);
}

.games-frontdoor__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(520px, 1.24fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.games-frontdoor__welcome {
    min-width: 0;
}

.games-frontdoor__welcome h1 {
    max-width: 700px;
    margin-bottom: 1.1rem;
    font-size: clamp(3.4rem, 7.5vw, 6.9rem);
}

.games-frontdoor__lead {
    max-width: 640px;
    margin-bottom: 1.1rem;
    color: #c0d8ce;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.games-frontdoor__reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
}

.games-frontdoor__reassurance span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0.38rem 0.7rem;
    color: #dff7ec;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(128, 255, 188, 0.18);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 720;
}

.games-frontdoor__primary {
    min-width: min(100%, 285px);
}

.games-frontdoor__map {
    position: relative;
    min-width: 0;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    background:
        radial-gradient(circle at 70% 30%, rgba(47, 217, 255, 0.09), transparent 19rem),
        rgba(2, 17, 15, 0.74);
    border: 1px solid rgba(128, 255, 188, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(16px);
}

/* PS-1 giant-cross removal: the decorative intersecting diagonal gradients
   previously drawn by this pseudo-element produced a large pale X across the
   world chooser. The pseudo-element is fully neutralized — do not restore a
   dimmer version. */
.games-frontdoor__map::before {
    content: none;
}

.games-frontdoor__map > * {
    position: relative;
    z-index: 1;
}

.games-frontdoor__map-heading {
    display: flex;
    gap: 1.2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.games-frontdoor__map-heading h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.games-frontdoor__map-heading > p {
    max-width: 270px;
    margin: 0;
    color: #9eb8ad;
    font-size: 0.8rem;
    line-height: 1.45;
}

.games-frontdoor__map-title-phone {
    display: none;
}

.games-frontdoor__doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.games-frontdoor__door {
    display: grid;
    position: relative;
    min-width: 0;
    min-height: 86px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(232, 255, 242, 0.14);
    border-radius: 18px;
    text-decoration: none;
    transition:
        transform 180ms var(--ease),
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.games-frontdoor__door:hover,
.games-frontdoor__door:focus-visible {
    background: rgba(128, 255, 188, 0.085);
    border-color: rgba(128, 255, 188, 0.44);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.games-frontdoor__door.is-recommended {
    background: linear-gradient(135deg, rgba(22, 229, 141, 0.13), rgba(255, 255, 255, 0.045));
    border-color: rgba(128, 255, 188, 0.5);
}

.games-frontdoor__door--fleet {
    grid-column: 1 / -1;
}

.games-frontdoor__door-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--door-accent, var(--green-bright));
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--door-accent, var(--green));
    border-radius: 13px;
    font-size: 1.15rem;
}

.games-frontdoor__door--home { --door-accent: var(--green-bright); }
.games-frontdoor__door--power { --door-accent: var(--cyan); }
.games-frontdoor__door--waste { --door-accent: var(--watt-amber, #f5b942); }
.games-frontdoor__door--city { --door-accent: var(--solar-gold, #f5b942); }
.games-frontdoor__door--fleet { --door-accent: #8edcff; }

.games-frontdoor__door strong,
.games-frontdoor__door small {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
}

.games-frontdoor__door strong {
    font-size: 1rem;
    line-height: 1.15;
}

.games-frontdoor__door small {
    margin-top: 0.18rem;
    color: #a9c2b7;
    font-size: 0.74rem;
    line-height: 1.35;
}

.games-frontdoor__door em {
    align-self: start;
    padding: 0.25rem 0.45rem;
    color: #bce8d3;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(232, 255, 242, 0.12);
    border-radius: 999px;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.games-frontdoor__door.is-recommended em {
    color: #012116;
    background: var(--green-bright);
    border-color: var(--green-bright);
}

.games-frontdoor__roadmap {
    display: grid;
    min-height: 60px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.8rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    margin-top: 0.7rem;
    color: #d6e4dd;
    background: rgba(255, 216, 102, 0.035);
    border: 1px dashed rgba(255, 216, 102, 0.4);
    border-radius: 16px;
    text-decoration: none;
}

.games-frontdoor__roadmap strong {
    color: var(--gold);
}

.games-frontdoor__roadmap small {
    grid-column: 1;
    color: #91aa9f;
    font-size: 0.7rem;
    line-height: 1.35;
}

.games-frontdoor__roadmap > span:last-child {
    grid-row: 1 / 3;
    grid-column: 2;
    color: var(--gold);
    font-weight: 900;
}

.games-frontdoor__chapters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(232, 255, 242, 0.1);
}

.games-frontdoor__chapters a {
    display: flex;
    min-height: 64px;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: #a8c0b5;
    border-right: 1px solid rgba(232, 255, 242, 0.08);
    text-align: center;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 720;
}

.games-frontdoor__chapters a:last-child {
    border-right: 0;
}

.games-frontdoor__chapters a:hover,
.games-frontdoor__chapters a:focus-visible {
    color: var(--paper);
    background: rgba(128, 255, 188, 0.045);
}

.games-frontdoor__chapters span {
    color: var(--green-bright);
    font-size: 0.66rem;
    font-weight: 900;
}

.games-sister-bridge {
    color: var(--ink-900);
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 216, 102, 0.2), transparent 22rem),
        linear-gradient(135deg, #f5fff9, #dff7e8);
    border-bottom: 1px solid var(--line-light);
}

.games-sister-bridge__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1.2rem, 4vw, 3rem);
    align-items: center;
    padding-block: clamp(1.5rem, 3vw, 2.4rem);
}

.games-sister-bridge__identity {
    display: flex;
    min-height: 72px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0.85rem;
    color: var(--ink-900);
    background: white;
    border: 1px solid rgba(4, 28, 23, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 30, 20, 0.08);
    text-decoration: none;
}

.games-sister-bridge__leaf {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: contain;
    background: none;
}

.games-sister-bridge__identity small,
.games-sister-bridge__identity strong {
    display: block;
}

.games-sister-bridge__identity small {
    color: #587167;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.games-sister-bridge__identity strong {
    font-size: 1.08rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.games-sister-bridge__identity strong span {
    color: #c7a927;
}

.games-sister-bridge__identity strong b {
    color: #4da72b;
}

.games-sister-bridge__identity:hover,
.games-sister-bridge__identity:focus-visible {
    border-color: rgba(77, 167, 43, 0.52);
    box-shadow: 0 14px 34px rgba(0, 48, 22, 0.12);
}

.games-sister-bridge h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.games-sister-bridge p:not(.eyebrow) {
    color: #4d675c;
    font-size: 0.92rem;
}

#games,
#genres,
#principles,
#roadmap,
#ecoshift {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.tester-panel__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

@media (max-width: 1040px) {
    .games-frontdoor__layout {
        grid-template-columns: 1fr;
    }

    .games-frontdoor__welcome {
        max-width: 800px;
    }

    .games-sister-bridge__inner {
        grid-template-columns: auto 1fr;
    }

    .games-sister-bridge__inner > .button {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

@media (max-width: 720px) {
    .games-frontdoor {
        padding-top: 2.2rem;
    }

    .games-frontdoor__welcome h1 {
        font-size: clamp(2.7rem, 13vw, 4.5rem);
    }

    .games-frontdoor__map-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .games-frontdoor__map-heading > p {
        max-width: 100%;
    }

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

    .games-frontdoor__chapters a:nth-child(2) {
        border-right: 0;
    }

    .games-frontdoor__chapters a:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(232, 255, 242, 0.08);
    }

    .games-sister-bridge__inner {
        grid-template-columns: 1fr;
    }

    .games-sister-bridge__identity {
        width: fit-content;
    }

    .games-sister-bridge__inner > .button {
        grid-column: auto;
        width: 100%;
    }

    .tester-panel__actions {
        align-items: stretch;
    }
}

@media (max-width: 430px) {
    body.page-games .announcement {
        display: none;
    }

    .games-frontdoor {
        padding-top: 0.9rem;
    }

    .games-frontdoor__layout {
        gap: 0.7rem;
        padding-bottom: 0.8rem;
    }

    .games-frontdoor__welcome .eyebrow {
        margin-bottom: 0.35rem;
        font-size: 0.68rem;
    }

    .games-frontdoor__welcome h1 {
        margin-bottom: 0.45rem;
        font-size: 2.05rem;
        line-height: 1;
    }

    .games-frontdoor__lead {
        margin-bottom: 0.55rem;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .games-frontdoor__reassurance {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.3rem;
        margin-bottom: 0.55rem;
    }

    .games-frontdoor__reassurance span {
        min-width: 0;
        min-height: 28px;
        justify-content: center;
        padding: 0.22rem 0.25rem;
        font-size: 0.66rem;
        line-height: 1.15;
        text-align: center;
    }

    .games-frontdoor__primary {
        width: 100%;
        min-height: 48px;
        padding-block: 0.6rem;
        font-size: 0.84rem;
    }

    .games-frontdoor__map {
        padding: 0.58rem;
        border-radius: 18px;
    }

    .games-frontdoor__map-heading {
        display: block;
        margin-bottom: 0.4rem;
    }

    .games-frontdoor__map-heading .eyebrow,
    .games-frontdoor__map-heading > p {
        display: none;
    }

    .games-frontdoor__map-heading h2 {
        margin: 0;
        font-size: 1.08rem;
        line-height: 1.15;
    }

    .games-frontdoor__map-title-wide {
        display: none;
    }

    .games-frontdoor__map-title-phone {
        display: inline;
    }

    .games-frontdoor__doors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .games-frontdoor__door {
        min-height: 52px;
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 0.38rem;
        padding: 0.36rem;
        border-radius: 12px;
    }

    .games-frontdoor__door--fleet {
        grid-column: 1 / -1;
    }

    .games-frontdoor__door-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 0.78rem;
    }

    .games-frontdoor__door strong {
        font-size: 0.78rem;
    }

    .games-frontdoor__door small {
        margin-top: 0.04rem;
        font-size: 0.66rem;
        line-height: 1.1;
    }

    .games-frontdoor__door em {
        display: none;
    }

    .games-frontdoor__roadmap {
        min-height: 48px;
        padding: 0.42rem 0.5rem;
        margin-top: 0.38rem;
        border-radius: 12px;
        font-size: 0.74rem;
    }

    .games-frontdoor__roadmap small {
        font-size: 0.66rem;
    }

    .games-frontdoor__chapters a {
        min-height: 48px;
        padding: 0.48rem;
        font-size: 0.68rem;
    }

    .games-sister-bridge__inner {
        padding-block: 1.25rem;
    }

    .games-sister-bridge__identity {
        width: 100%;
        min-height: 64px;
    }
}

@media (max-width: 340px) {
    .games-frontdoor__welcome h1 {
        font-size: 1.92rem;
    }

    .games-frontdoor__lead {
        font-size: 0.78rem;
    }

    .games-frontdoor__reassurance span,
    .games-frontdoor__door small,
    .games-frontdoor__roadmap small {
        font-size: 0.64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-frontdoor__door,
    .games-sister-bridge__identity {
        transition: none;
    }

    .games-frontdoor__door:hover,
    .games-frontdoor__door:focus-visible {
        transform: none;
    }
}

/* ========================================================================
   PS-1 — Phantom Shift featured Young Learners rebuild (v=20260815-ps1)
   Adds: Phantom Shift hero, five-more-worlds adjustments, expanded
   Phantom Shift feature, Charge Smart feature accent, roadmap card,
   final Accueco.ai conversion section. No shared stylesheet is modified.
   ======================================================================== */

/* ---- Phantom Shift hero ------------------------------------------------ */

.ps-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.6rem, 6vw, 5.6rem) 0 0;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 216, 102, 0.14), transparent 26rem),
        radial-gradient(circle at 10% 80%, rgba(125, 255, 187, 0.1), transparent 30rem),
        radial-gradient(circle at 55% 45%, rgba(93, 84, 224, 0.16), transparent 34rem),
        linear-gradient(155deg, #060a26 0%, #0b1035 46%, #041a18 100%);
    isolation: isolate;
}

.ps-hero__grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(188, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(188, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black 0 68%, transparent 100%);
    pointer-events: none;
}

.ps-hero__aurora {
    position: absolute;
    z-index: -1;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.16;
    pointer-events: none;
}

.ps-hero__aurora--one {
    top: -18rem;
    right: -8rem;
    background: #ffd866;
}

.ps-hero__aurora--two {
    bottom: -20rem;
    left: -12rem;
    background: #6d5ff0;
}

.ps-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-bottom: clamp(2.2rem, 4.5vw, 4rem);
}

.ps-hero__copy {
    min-width: 0;
}

.ps-hero__eyebrow {
    display: inline-flex;
    min-height: 34px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.1rem;
    color: #ffe9a8;
    background: rgba(255, 216, 102, 0.09);
    border: 1px solid rgba(255, 216, 102, 0.42);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ps-hero__eyebrow-star {
    color: var(--gold);
}

.ps-hero h1 {
    max-width: 720px;
    margin-bottom: 1.1rem;
    font-size: clamp(2.9rem, 6.6vw, 5.9rem);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.ps-hero__title-glow {
    display: block;
    background: linear-gradient(100deg, #ffd866 8%, #7dffbb 55%, #2fd9ff 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ps-hero__lead {
    max-width: 620px;
    margin-bottom: 1.15rem;
    color: #ccd8ef;
    font-size: clamp(1.02rem, 1.7vw, 1.26rem);
    line-height: 1.55;
}

.ps-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0;
    margin: 0 0 1.35rem;
    list-style: none;
}

.ps-hero__facts li {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0.38rem 0.75rem;
    color: #e6f0ff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(188, 210, 255, 0.24);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 720;
}

.ps-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ps-hero__actions .button {
    min-height: 48px;
}

.ps-hero__play {
    min-width: min(100%, 260px);
    font-size: 1rem;
}

.ps-hero__stage {
    min-width: 0;
}

.ps-hero__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #090d24;
    border: 1px solid rgba(188, 210, 255, 0.28);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 0 6px rgba(9, 13, 36, 0.55),
        0 34px 90px rgba(0, 0, 0, 0.5),
        0 0 70px rgba(109, 95, 240, 0.22);
}

.ps-hero__scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.ps-hero__shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-hero__stage-caption {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin: 0.8rem 0 0;
    color: #aebcd9;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.ps-hero__stage-caption span {
    color: var(--gold);
}

.ps-hero__chapters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(188, 210, 255, 0.14);
}

.ps-hero__chapters a {
    display: flex;
    min-height: 64px;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: #a9b8d4;
    border-right: 1px solid rgba(188, 210, 255, 0.1);
    text-align: center;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 720;
}

.ps-hero__chapters a:last-child {
    border-right: 0;
}

.ps-hero__chapters a:hover,
.ps-hero__chapters a:focus-visible {
    color: var(--paper);
    background: rgba(255, 216, 102, 0.05);
}

.ps-hero__chapters span {
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 900;
}

/* ---- Five more playable worlds ----------------------------------------- */

.games-frontdoor--worlds {
    padding-bottom: clamp(2.4rem, 5vw, 4.2rem);
}

.games-frontdoor__count {
    margin: 0.85rem 0 0;
    color: #9eb8ad;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ---- Contextual Accueco.ai strips -------------------------------------- */

.ps-strip {
    background:
        linear-gradient(90deg, rgba(125, 255, 187, 0.07), rgba(47, 217, 255, 0.05)),
        #04231b;
    border-top: 1px solid rgba(128, 255, 188, 0.16);
    border-bottom: 1px solid rgba(128, 255, 188, 0.16);
}

.ps-strip__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.4rem;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.95rem;
}

.ps-strip__inner p {
    margin: 0;
    color: #cfeee0;
    font-size: 0.92rem;
    font-weight: 620;
}

.ps-strip__inner a {
    display: inline-flex;
    min-height: 48px;
    gap: 0.45rem;
    align-items: center;
    padding: 0.55rem 1.05rem;
    color: #012116;
    background: linear-gradient(120deg, var(--green-bright), var(--green));
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    transition: box-shadow 180ms ease, transform 180ms var(--ease);
}

.ps-strip__inner a:hover,
.ps-strip__inner a:focus-visible {
    box-shadow: 0 12px 30px rgba(22, 229, 141, 0.3);
    transform: translateY(-1px);
}

/* ---- Expanded Phantom Shift feature ------------------------------------ */

.ps-feature {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 216, 102, 0.1), transparent 24rem),
        radial-gradient(circle at 88% 88%, rgba(109, 95, 240, 0.18), transparent 28rem),
        linear-gradient(140deg, #080c2b 0%, #0d1233 58%, #071122 100%);
}

.ps-feature__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.ps-feature__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #aebcd9;
    font-size: 0.78rem;
    font-weight: 650;
}

.ps-feature__lead {
    max-width: 620px;
    color: #ccd8ef;
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.6;
}

.ps-feature__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 1.1rem 0 1.4rem;
    list-style: none;
}

.ps-feature__facts li {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0.34rem 0.7rem;
    color: #e6f0ff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(188, 210, 255, 0.22);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.ps-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.ps-feature__actions .button {
    min-height: 48px;
}

.ps-feature__nights {
    display: grid;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: none;
}

.ps-feature__nights li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(188, 210, 255, 0.16);
    border-radius: 18px;
    transition: border-color 180ms ease, background 180ms ease;
}

.ps-feature__nights li:hover {
    background: rgba(255, 216, 102, 0.06);
    border-color: rgba(255, 216, 102, 0.4);
}

.ps-feature__night-num {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--gold);
    background: rgba(255, 216, 102, 0.08);
    border: 1px solid rgba(255, 216, 102, 0.4);
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 900;
}

.ps-feature__nights h3 {
    margin: 0 0 0.15rem;
    font-size: 0.98rem;
    line-height: 1.25;
}

.ps-feature__nights p {
    margin: 0;
    color: #aebcd9;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* ---- Charge Smart feature accent ---------------------------------------- */

.ps-charge-feature {
    background:
        radial-gradient(circle at 14% 20%, rgba(142, 220, 255, 0.12), transparent 26rem),
        linear-gradient(150deg, #06152e 0%, #0a2740 55%, #051523 100%);
}

.ps-charge-emblem .stage7b-guardian-emblem__core {
    color: #8edcff;
}

/* ---- Roadmap cards ------------------------------------------------------ */

.library-card__number--next {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.ps-playtest-card .button {
    margin-top: 0.9rem;
    min-height: 48px;
}

/* ---- Final Accueco.ai conversion section -------------------------------- */

.ps-final {
    position: relative;
    overflow: hidden;
    padding: clamp(3.2rem, 7vw, 6rem) 0;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(22, 229, 141, 0.14), transparent 30rem),
        linear-gradient(165deg, #03150f 0%, #062a21 60%, #031712 100%);
    isolation: isolate;
}

.ps-final__glow {
    position: absolute;
    z-index: -1;
    top: -14rem;
    left: 50%;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: var(--green);
    filter: blur(90px);
    opacity: 0.12;
    transform: translateX(-50%);
    pointer-events: none;
}

.ps-final__inner {
    max-width: 760px;
}

.ps-final h2 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-wrap: balance;
}

.ps-final__lead {
    max-width: 620px;
    margin: 0 auto 1.6rem;
    color: #c0d8ce;
    font-size: clamp(0.98rem, 1.5vw, 1.14rem);
    line-height: 1.6;
}

.ps-final__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
}

.ps-final__actions .button {
    min-height: 48px;
}

.ps-final__sub {
    margin: 1.1rem 0 0;
    color: rgba(231, 255, 246, 0.82);
    font-size: 0.84rem;
    font-weight: 650;
    letter-spacing: 0.03em;
}

/* ---- Anchors ------------------------------------------------------------ */

#worlds,
#phantom-shift,
#grid-guardian,
#watt-detective,
#solar-city,
#charge-smart {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1120px) {
    .ps-hero__layout {
        grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
        gap: 1.6rem;
    }

    .ps-hero h1 {
        font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    }
}

@media (max-width: 960px) {
    .ps-hero__layout {
        grid-template-columns: 1fr;
    }

    .ps-hero__copy {
        max-width: 800px;
    }
}

@media (max-width: 1040px) {
    .ps-feature__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ps-hero {
        padding-top: 1.9rem;
    }

    .ps-hero h1 {
        font-size: clamp(2.35rem, 10.5vw, 3.9rem);
    }

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

    .ps-hero__chapters a:nth-child(2) {
        border-right: 0;
    }

    .ps-hero__chapters a:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(188, 210, 255, 0.1);
    }

    .ps-strip__inner {
        justify-content: center;
        text-align: center;
    }

    .ps-strip__inner a {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
}

@media (max-width: 430px) {
    .ps-hero {
        padding-top: 1rem;
    }

    .ps-hero__eyebrow {
        margin-bottom: 0.6rem;
        font-size: 0.62rem;
        letter-spacing: 0.09em;
    }

    .ps-hero__layout {
        gap: 1rem;
        padding-bottom: 1.1rem;
    }

    .ps-hero h1 {
        margin-bottom: 0.55rem;
        font-size: 2.1rem;
    }

    .ps-hero__lead {
        margin-bottom: 0.7rem;
        font-size: 0.86rem;
        line-height: 1.42;
    }

    .ps-hero__facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.32rem;
        margin-bottom: 0.75rem;
    }

    .ps-hero__facts li {
        min-height: 30px;
        justify-content: center;
        padding: 0.24rem 0.3rem;
        font-size: 0.66rem;
        line-height: 1.15;
        text-align: center;
    }

    .ps-hero__actions {
        gap: 0.5rem;
    }

    .ps-hero__play,
    .ps-hero__how {
        width: 100%;
        justify-content: center;
        font-size: 0.88rem;
    }

    .ps-hero__frame {
        border-radius: 18px;
    }

    .ps-hero__stage-caption {
        font-size: 0.7rem;
    }

    .ps-hero__chapters a {
        min-height: 48px;
        padding: 0.48rem;
        font-size: 0.68rem;
    }

    .ps-feature__nights li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.65rem 0.7rem;
        border-radius: 14px;
    }

    .ps-feature__night-num {
        width: 42px;
        height: 42px;
        border-radius: 11px;
        font-size: 0.78rem;
    }

    .ps-feature__nights h3 {
        font-size: 0.88rem;
    }

    .ps-feature__nights p {
        font-size: 0.76rem;
    }

    .ps-final__actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 340px) {
    .ps-hero h1 {
        font-size: 1.9rem;
    }

    .ps-hero__lead {
        font-size: 0.8rem;
    }

    .ps-hero__facts li {
        font-size: 0.62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-strip__inner a,
    .ps-feature__nights li {
        transition: none;
    }

    .ps-strip__inner a:hover,
    .ps-strip__inner a:focus-visible {
        transform: none;
    }
}

/* ============================================================
   PS-2A · Front-door cinematic layer (2026-08-17)
   Hero story loop · journey map · world cards · passport ·
   daily challenge · academy · play-learn-plan · comfort mode
   ============================================================ */

/* --- Hero kicker --- */
.ps-hero__kicker {
    margin: 0.85rem 0 0;
    color: var(--gold);
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 650;
    letter-spacing: 0.045em;
    text-shadow: 0 0 22px rgba(255, 216, 102, 0.35);
}

/* --- Animated First Night story loop (5s, CSS only) --- */
.ps-hero__shot { display: none; }
.fd-caption-still { display: none; }

.fd-scene__volt,
.fd-scene__voltglow,
.fd-scene__phantom,
.fd-scene__sage,
.fd-scene__cue,
.fd-scene__path {
    transform-box: fill-box;
    transform-origin: center;
}

.fd-scene__volt { animation: fd-volt-wake 5s ease-in-out infinite; }
.fd-scene__voltglow { animation: fd-volt-glow 5s ease-in-out infinite; }
.fd-scene__phantom { animation: fd-phantom-appear 5s ease-in-out infinite; }
.fd-scene__sage { animation: fd-sage-point 5s ease-in-out infinite; }
.fd-scene__cue { animation: fd-cue-show 5s ease-in-out infinite; }
.fd-scene__path { animation: fd-path-light 5s linear infinite; }

@keyframes fd-volt-wake {
    0% { opacity: 0.25; transform: translateY(6px) scale(0.96); }
    10% { opacity: 1; transform: translateY(0) scale(1.04); }
    16%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fd-volt-glow {
    0% { opacity: 0.15; }
    12% { opacity: 1; }
    55%, 78% { opacity: 0.75; }
    64% { opacity: 1; }
    100% { opacity: 0.9; }
}
@keyframes fd-phantom-appear {
    0%, 16% { opacity: 0; transform: translateY(10px); }
    30% { opacity: 0.92; transform: translateY(0); }
    72% { opacity: 0.92; }
    80% { opacity: 0.35; }
    88%, 100% { opacity: 0.55; }
}
@keyframes fd-sage-point {
    0%, 34% { transform: translateY(0); }
    42% { transform: translateY(-7px); }
    50% { transform: translateY(0); }
    58% { transform: translateY(-4px); }
    64%, 100% { transform: translateY(0); }
}
@keyframes fd-cue-show {
    0%, 36% { opacity: 0; }
    46%, 90% { opacity: 1; }
    100% { opacity: 0.85; }
}
@keyframes fd-path-light {
    0%, 52% { opacity: 0; stroke-dashoffset: 320; }
    56% { opacity: 0.95; }
    78% { opacity: 0.95; stroke-dashoffset: 0; }
    86% { opacity: 0.2; stroke-dashoffset: 0; }
    100% { opacity: 0; stroke-dashoffset: 0; }
}

/* --- World-map chapter bar + comfort toggle --- */
.fd-worldmap { align-items: center; }

.fd-comfort-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    color: #dfffe9;
    background: rgba(125, 255, 187, 0.08);
    border: 1px solid rgba(125, 255, 187, 0.38);
    border-radius: 999px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}
.fd-comfort-toggle span { font-weight: 900; }
.fd-comfort-toggle:hover,
.fd-comfort-toggle:focus-visible {
    background: rgba(125, 255, 187, 0.16);
    border-color: rgba(125, 255, 187, 0.7);
}
.fd-comfort-toggle[aria-pressed="true"] {
    color: #06231a;
    background: var(--green-bright, #16e58d);
    border-color: var(--green-bright, #16e58d);
}

/* Comfort reading mode: calmer, wider, taller text sitewide on this page */
body.fd-comfort { letter-spacing: 0.02em; word-spacing: 0.12em; }
body.fd-comfort p,
body.fd-comfort li,
body.fd-comfort small { line-height: 1.78; }
body.fd-comfort .ps-hero__lead,
body.fd-comfort .ps-feature__lead,
body.fd-comfort .flagship-copy__lead { font-size: 1.08em; }

/* --- World door cards: tagline + meta + floating icons --- */
.games-frontdoor__door { grid-template-columns: 42px minmax(0, 1fr) auto; }
.games-frontdoor__door em { align-self: start; }

.fd-door-tag {
    display: block;
    margin-top: 0.4rem;
    color: #e4f4ec;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.4;
}
.fd-door-meta {
    display: block;
    margin-top: 0.42rem;
    color: #93b3a5;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    line-height: 1.5;
}
.fd-door-meta b { color: #bce8d3; font-weight: 800; text-transform: uppercase; font-size: 0.62rem; }
.fd-door-meta i { font-style: normal; opacity: 0.55; padding: 0 0.15rem; }

.fd-icon-float { animation: fd-icon-bob 4.5s ease-in-out infinite; }
.games-frontdoor__door:nth-child(2) .fd-icon-float { animation-delay: 0.6s; }
.games-frontdoor__door:nth-child(3) .fd-icon-float { animation-delay: 1.2s; }
.games-frontdoor__door:nth-child(4) .fd-icon-float { animation-delay: 1.8s; }
.games-frontdoor__door:nth-child(5) .fd-icon-float { animation-delay: 2.4s; }
@keyframes fd-icon-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* --- Journey map: five nights, five lessons --- */
.fd-journey__lesson {
    display: inline-block;
    margin: 0 0 0.3rem;
    color: var(--gold);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    .fd-journey {
        position: relative;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.6rem;
        align-items: stretch;
    }
    .fd-journey::before {
        content: "";
        position: absolute;
        top: 2.45rem;
        right: 6%;
        left: 6%;
        height: 2px;
        background: linear-gradient(90deg, rgba(255, 216, 102, 0.05), rgba(255, 216, 102, 0.55), rgba(255, 216, 102, 0.05));
        pointer-events: none;
    }
    .fd-journey .fd-journey__stop {
        grid-template-columns: 1fr;
        justify-items: start;
        align-content: start;
        gap: 0.7rem;
        padding: 1rem;
    }
    .fd-journey .ps-feature__night-num { position: relative; z-index: 1; }
}

/* --- Energy Explorer Passport + Daily Challenge --- */
.fd-passport {
    background:
        radial-gradient(90% 130% at 12% 0%, rgba(255, 216, 102, 0.08), transparent 55%),
        radial-gradient(80% 120% at 92% 100%, rgba(101, 232, 255, 0.07), transparent 55%),
        #0a0f26;
    color: var(--paper, #f4fbf7);
}
.fd-passport__layout {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 900px) {
    .fd-passport__layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

.fd-passport__card,
.fd-challenge {
    padding: 1.5rem 1.4rem 1.6rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 216, 102, 0.22);
    border-radius: 22px;
}
.fd-passport__card h2 { margin: 0.1rem 0 0.4rem; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.fd-passport__note { margin: 0 0 1.1rem; color: #aebcd9; font-size: 0.86rem; line-height: 1.55; }

.fd-passport__stamps {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
@media (min-width: 560px) { .fd-passport__stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fd-passport__stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fd-passport__stamps li {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(188, 210, 255, 0.3);
    border-radius: 14px;
    transition: border-color 200ms ease, background 200ms ease;
}
.fd-stamp {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: #8ea3c8;
    border: 2px dashed rgba(188, 210, 255, 0.45);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 900;
}
.fd-stamp__body b { display: block; font-size: 0.82rem; line-height: 1.25; }
.fd-stamp__body small { color: #96a8cc; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }

.fd-passport__stamps li.is-earned {
    background: rgba(255, 216, 102, 0.1);
    border: 1px solid rgba(255, 216, 102, 0.55);
}
.fd-passport__stamps li.is-earned .fd-stamp {
    color: #201500;
    background: var(--gold, #ffd866);
    border: 2px solid var(--gold, #ffd866);
    box-shadow: 0 0 18px rgba(255, 216, 102, 0.45);
}
.fd-passport__count { margin: 1.05rem 0 0; color: var(--gold); font-size: 0.85rem; font-weight: 750; }

.fd-challenge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-color: rgba(101, 232, 255, 0.3);
    background:
        radial-gradient(120% 140% at 85% 0%, rgba(101, 232, 255, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.045);
}
.fd-challenge h3 { margin: 0.1rem 0 0.75rem; font-size: 1.05rem; color: #cfeff9; }
.fd-challenge__task { margin: 0 0 0.9rem; font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 850; line-height: 1.3; }
.fd-challenge__meta { display: grid; gap: 0.35rem; margin: 0 0 1.1rem; color: #aebcd9; font-size: 0.85rem; }
.fd-challenge__meta b { display: inline-block; min-width: 3.4rem; color: #65e8ff; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.fd-challenge__cta { min-height: 44px; }
.fd-challenge__note { margin: 0.8rem 0 0; color: #8296bd; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.05em; }

/* --- Play. Learn. Plan. bridge --- */
.fd-plp__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    align-items: center;
    padding: 0;
    margin: 0.75rem 0 0;
    list-style: none;
}
.fd-plp__steps li:not(.fd-plp__arrow) {
    min-width: 130px;
    padding: 0.6rem 0.85rem;
    background: rgba(4, 26, 17, 0.06);
    border: 1px solid rgba(4, 26, 17, 0.14);
    border-radius: 14px;
}
.fd-plp__steps b { display: block; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.fd-plp__steps small { display: block; margin-top: 0.15rem; font-size: 0.74rem; line-height: 1.35; opacity: 0.8; }
.fd-plp__arrow { font-size: 1.1rem; font-weight: 900; opacity: 0.55; }

/* --- Energy Academy --- */
.fd-academy {
    background:
        radial-gradient(80% 120% at 88% 0%, rgba(125, 255, 187, 0.07), transparent 55%),
        #07130d;
    color: var(--paper, #f4fbf7);
}
.fd-academy .section-heading h2 { color: #f4fbf7; }
.fd-academy__grid { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
@media (min-width: 860px) { .fd-academy__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fd-academy__card {
    position: relative;
    padding: 1.4rem 1.3rem 1.5rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(125, 255, 187, 0.2);
    border-radius: 20px;
    transition: transform 200ms var(--ease, ease), border-color 200ms ease;
}
.fd-academy__card:hover { transform: translateY(-3px); border-color: rgba(125, 255, 187, 0.5); }
.fd-academy__glyph {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
    place-items: center;
    color: var(--green-bright, #16e58d);
    background: rgba(125, 255, 187, 0.08);
    border: 1px solid rgba(125, 255, 187, 0.35);
    border-radius: 13px;
    font-size: 1.2rem;
}
.fd-academy__card--family .fd-academy__glyph { color: var(--gold, #ffd866); background: rgba(255, 216, 102, 0.08); border-color: rgba(255, 216, 102, 0.4); }
.fd-academy__card--educator .fd-academy__glyph { color: #65e8ff; background: rgba(101, 232, 255, 0.08); border-color: rgba(101, 232, 255, 0.4); }
.fd-academy__card h3 { margin: 0 0 0.6rem; font-size: 1.08rem; }
.fd-academy__card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0 0 0.75rem;
    list-style: none;
}
.fd-academy__card ul li {
    padding: 0.28rem 0.6rem;
    color: #bce8d3;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(232, 255, 242, 0.14);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.fd-academy__card p { margin: 0; color: #a9c2b7; font-size: 0.88rem; line-height: 1.55; }

/* --- iPad landscape: hero world-map rail --- */
@media (min-width: 1024px) and (orientation: landscape) {
    .fd-worldmap {
        gap: 0.6rem;
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
        background: rgba(7, 11, 32, 0.55);
        border-top: 1px solid rgba(255, 216, 102, 0.18);
        backdrop-filter: blur(10px);
    }
    .fd-worldmap a { min-height: 48px; }
}

/* --- Larger tap targets on touch layouts --- */
.ps-hero__chapters a { min-height: 44px; align-items: center; }
.fd-passport__stamps li { min-height: 48px; }

/* --- Reduced motion: story becomes the real still, all loops stop --- */
@media (prefers-reduced-motion: reduce) {
    .fd-scene__volt,
    .fd-scene__voltglow,
    .fd-scene__phantom,
    .fd-scene__sage,
    .fd-scene__cue,
    .fd-scene__path,
    .fd-icon-float { animation: none !important; }
    .fd-scene__path { opacity: 0; }
    .ps-hero__shot { display: block; }
    .fd-caption-story { display: none; }
    .fd-caption-still { display: inline; }
    .fd-academy__card:hover { transform: none; }
}

/* ============================================================
   PS-2B — Universe layer: mission chooser, explorer profile,
   learning achievements, seventh-world slot.
   ============================================================ */

/* ---------- Mission chooser ---------- */
.fd-chooser { margin: 0 0 26px; }
.fd-chooser__kicker {
    margin: 0 0 12px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em;
    text-transform: uppercase; color: #9fd4b4;
}
.fd-chooser__paths { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fd-chooser__path {
    display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px;
    border-radius: 14px; text-decoration: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    border: 1px solid rgba(159,212,180,0.22);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.fd-chooser__path:hover, .fd-chooser__path:focus-visible {
    transform: translateY(-2px); border-color: rgba(159,212,180,0.55);
    background: linear-gradient(120deg, rgba(159,212,180,0.14), rgba(255,255,255,0.03));
}
.fd-chooser__glyph {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    font-size: 1.05rem; color: #eafff2; background: rgba(159,212,180,0.16); border: 1px solid rgba(159,212,180,0.3);
}
.fd-chooser__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fd-chooser__body b { color: #f2fbf5; font-size: 0.98rem; line-height: 1.25; }
.fd-chooser__body small { color: #b8cfc0; font-size: 0.8rem; }
.fd-chooser__go { margin-left: auto; color: #9fd4b4; font-weight: 700; }
.fd-chooser__path--solve .fd-chooser__glyph { background: rgba(255,209,102,0.14); border-color: rgba(255,209,102,0.32); }
.fd-chooser__path--design .fd-chooser__glyph { background: rgba(126,196,255,0.14); border-color: rgba(126,196,255,0.32); }

/* ---------- Explorer profile ---------- */
.fd-profile {
    margin: 14px 0 18px; padding: 14px 16px 12px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(20,52,38,0.92), rgba(13,36,28,0.94));
    border: 1px solid rgba(159,212,180,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.fd-profile__kicker {
    margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em;
    text-transform: uppercase; color: #ffd166;
}
.fd-profile__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
.fd-profile__cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fd-profile__cell small {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8fb39d;
}
.fd-profile__cell b { color: #f2fbf5; font-size: 0.92rem; line-height: 1.3; font-weight: 700; }
.fd-profile__note { margin: 11px 0 0; font-size: 0.75rem; color: #9db8a8; }

/* ---------- Learning achievements ---------- */
.fd-ach { position: relative; }
.fd-ach__lead { max-width: 560px; }
.fd-ach__count { margin: 4px 0 18px; font-weight: 700; color: #2f6c4f; font-size: 0.95rem; }
.fd-ach__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.fd-ach__world {
    border-radius: 16px; padding: 14px 16px; background: #ffffff;
    border: 1px solid rgba(31,77,58,0.14); box-shadow: 0 10px 24px rgba(18,52,38,0.07);
}
.fd-ach__world h3 { margin: 0 0 10px; font-size: 1rem; color: #163a2b; }
.fd-ach__world ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fd-ach__world li {
    display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px;
    border: 1px dashed rgba(31,77,58,0.28); background: rgba(31,77,58,0.035);
}
.fd-ach__world li span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fd-ach__world li b { font-size: 0.88rem; color: #1c4635; line-height: 1.3; }
.fd-ach__world li small { font-size: 0.76rem; color: #557a68; line-height: 1.35; }
.fd-ach__mark {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font-size: 0.8rem; font-weight: 800; color: #6d8f7e;
    background: rgba(31,77,58,0.08); border: 1px solid rgba(31,77,58,0.22);
}
.fd-ach__world li.is-unlocked { border-style: solid; border-color: rgba(31,77,58,0.4); background: linear-gradient(120deg, rgba(159,212,180,0.28), rgba(255,209,102,0.16)); }
.fd-ach__world li.is-unlocked .fd-ach__mark { color: #0d2a1e; background: #ffd166; border-color: #e9b73c; }
.fd-ach__foot { margin: 16px 0 0; font-size: 0.78rem; color: #557a68; }

/* ---------- Seventh-world slot: Retrofit Rally ---------- */
.fd-slot {
    position: relative; margin: 18px 0 0; padding: 18px 18px 16px; border-radius: 18px;
    border: 2px dashed rgba(159,212,180,0.45);
    background:
        linear-gradient(150deg, rgba(18,46,34,0.92), rgba(12,32,24,0.95)),
        repeating-linear-gradient(45deg, rgba(159,212,180,0.05) 0 12px, transparent 12px 24px);
}
.fd-slot__ribbon {
    display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
    color: #0d2a1e; background: #9fd4b4;
}
.fd-slot__body { display: flex; gap: 14px; align-items: flex-start; }
.fd-slot__icon {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.25rem; color: #eafff2; background: rgba(159,212,180,0.14); border: 1px solid rgba(159,212,180,0.35);
}
.fd-slot h3 { margin: 0 0 4px; font-size: 1.25rem; color: #f2fbf5; }
.fd-slot__tag { margin: 0 0 6px; font-weight: 700; color: #ffd166; font-size: 0.92rem; }
.fd-slot__desc { margin: 0; color: #b8cfc0; font-size: 0.87rem; line-height: 1.55; max-width: 620px; }
.fd-slot__dials { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fd-slot__dials li {
    padding: 6px 12px; border-radius: 999px; font-size: 0.75rem; color: #dff2e6;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(159,212,180,0.28);
}
.fd-slot__more {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding: 8px 14px;
    border-radius: 10px; font-size: 0.85rem; font-weight: 700; color: #9fd4b4; text-decoration: none;
    border: 1px solid rgba(159,212,180,0.3);
}
.fd-slot__more:hover, .fd-slot__more:focus-visible { color: #eafff2; border-color: rgba(159,212,180,0.6); }

/* PS-4C: the seventh-world slot is now a live campaign doorway. */
.fd-slot--open {
    overflow: hidden;
    border-style: solid;
    border-color: rgba(74, 222, 128, 0.58);
    background:
        radial-gradient(circle at 92% 8%, rgba(250, 204, 21, 0.13), transparent 34%),
        linear-gradient(150deg, rgba(16, 57, 39, 0.97), rgba(7, 27, 19, 0.98));
    box-shadow: 0 22px 46px rgba(1, 12, 7, 0.32), inset 0 1px 0 rgba(255,255,255,0.08);
}
.fd-slot--open::after {
    content: ""; position: absolute; z-index: 0; width: 190px; height: 190px; right: -72px; bottom: -108px;
    border: 1px solid rgba(74, 222, 128, 0.22); border-radius: 50%; box-shadow: 0 0 0 24px rgba(74, 222, 128, 0.025), 0 0 0 52px rgba(250, 204, 21, 0.018); pointer-events: none;
}
.fd-slot--open > * { position: relative; z-index: 1; }
.fd-slot--open .fd-slot__ribbon { background: linear-gradient(90deg, #86efac, #fde68a); }
.fd-slot__copy { min-width: 0; }
.fd-slot__meta { margin: 10px 0 0; color: #9bc3ad; font-size: 0.7rem; line-height: 1.5; }
.fd-slot__meta b { color: #d9fbe7; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fd-slot__meta i { padding: 0 0.18rem; font-style: normal; opacity: 0.58; }
.fd-slot__progress {
    display: inline-flex; margin: 11px 0 0; padding: 6px 10px; border-radius: 999px;
    color: #bbf7d0; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.32);
    font-size: 0.72rem; font-weight: 750; line-height: 1.35;
}
.fd-slot.is-started .fd-slot__progress { color: #fde68a; border-color: rgba(250, 204, 21, 0.42); background: rgba(250, 204, 21, 0.1); }
.fd-slot.is-complete .fd-slot__progress { color: #f5d0fe; border-color: rgba(232, 121, 249, 0.48); background: rgba(232, 121, 249, 0.1); }
.fd-slot__more--play {
    color: #07170f; background: linear-gradient(90deg, #4ade80, #86efac); border-color: #4ade80;
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.2);
}
.fd-slot__more--play:hover, .fd-slot__more--play:focus-visible { color: #031008; background: #bbf7d0; border-color: #bbf7d0; }
@media (max-width: 480px) {
    .fd-slot { padding: 16px 14px 14px; }
    .fd-slot__body { gap: 11px; }
    .fd-slot__icon { width: 44px; height: 44px; flex-basis: 44px; }
    .fd-slot__meta { display: grid; gap: 2px; }
    .fd-slot__meta i { display: none; }
    .fd-slot__progress { border-radius: 10px; }
    .fd-slot__more--play { display: flex; width: 100%; justify-content: center; text-align: center; }
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
    .fd-chooser__paths { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .fd-ach__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fd-ach__world--retrofit { grid-column: 1 / -1; border-color: rgba(31, 121, 78, 0.3); background: linear-gradient(140deg, #ffffff, #f2fff7); }
    .fd-ach__world--retrofit ul { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fd-profile__grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 1100px) {
    .fd-ach__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .fd-ach__world--retrofit ul { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ---------- Comfort reading + reduced motion ---------- */
body.fd-comfort .fd-ach__world li small,
body.fd-comfort .fd-slot__desc,
body.fd-comfort .fd-chooser__body small { line-height: 1.8; letter-spacing: 0.01em; }
body.fd-comfort .fd-profile__cell b { line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
    .fd-chooser__path { transition: none; }
    .fd-chooser__path:hover { transform: none; }
}

/* ============================================================
   PS-3 · Journey layer — continue / personality / map / lab / classroom
   ============================================================ */

/* ---------- Continue journey ---------- */
.fd-continue { padding: 26px 0 6px; }
.fd-continue__card { border: 1px solid rgba(74, 222, 128, 0.32); border-radius: 18px; padding: 18px 18px 14px; background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(8, 24, 16, 0.92) 55%), radial-gradient(circle at 88% 0%, rgba(250, 204, 21, 0.16), transparent 46%); box-shadow: 0 18px 44px rgba(2, 12, 7, 0.5); }
.fd-continue__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.fd-continue__kicker { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #4ade80; }
.fd-continue__level { margin: 0; font-size: 0.86rem; font-weight: 700; color: rgba(236, 253, 245, 0.85); }
.fd-continue__row { display: grid; gap: 10px; margin-top: 12px; }
.fd-continue__cta, .fd-continue__alt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 13px; text-decoration: none; border: 1px solid rgba(148, 163, 184, 0.25); transition: transform 0.18s ease, border-color 0.18s ease; }
.fd-continue__cta { background: linear-gradient(90deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.06)); border-color: rgba(74, 222, 128, 0.45); }
.fd-continue__cta small, .fd-continue__alt small { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(203, 213, 225, 0.72); }
.fd-continue__cta b, .fd-continue__alt b { display: block; font-size: 0.95rem; color: #f8fafc; line-height: 1.3; }
.fd-continue__cta small { color: rgba(134, 239, 172, 0.9); }
.fd-continue__cta > span { margin-left: auto; color: #4ade80; font-weight: 800; }
.fd-continue__cta:hover, .fd-continue__alt:hover { transform: translateY(-2px); border-color: rgba(74, 222, 128, 0.6); }
.fd-continue__note { margin: 10px 2px 0; font-size: 0.72rem; color: rgba(148, 163, 184, 0.8); }
@media (min-width: 700px) { .fd-continue__row { grid-template-columns: 1.4fr 1fr; } }

/* ---------- Personality ---------- */
.fd-personality { margin-top: 12px; padding: 12px 14px; border-radius: 13px; border: 1px solid rgba(250, 204, 21, 0.35); background: linear-gradient(120deg, rgba(250, 204, 21, 0.1), rgba(15, 23, 42, 0.6)); }
.fd-personality__you { margin: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(253, 230, 138, 0.85); }
.fd-personality__name { margin: 2px 0 4px; font-size: 1.18rem; font-weight: 900; letter-spacing: 0.02em; color: #fde68a; text-transform: uppercase; }
.fd-personality__likes { margin: 0; font-size: 0.8rem; color: rgba(236, 253, 245, 0.85); }
.fd-personality[data-archetype="detective"] { border-color: rgba(96, 165, 250, 0.45); background: linear-gradient(120deg, rgba(96, 165, 250, 0.12), rgba(15, 23, 42, 0.6)); }
.fd-personality[data-archetype="detective"] .fd-personality__name { color: #93c5fd; }
.fd-personality[data-archetype="detective"] .fd-personality__you { color: rgba(147, 197, 253, 0.85); }
.fd-personality[data-archetype="planner"] { border-color: rgba(250, 204, 21, 0.45); }
.fd-personality[data-archetype="guardian"] { border-color: rgba(74, 222, 128, 0.5); background: linear-gradient(120deg, rgba(74, 222, 128, 0.12), rgba(15, 23, 42, 0.6)); }
.fd-personality[data-archetype="guardian"] .fd-personality__name { color: #86efac; }
.fd-personality[data-archetype="guardian"] .fd-personality__you { color: rgba(134, 239, 172, 0.85); }
.fd-personality[data-archetype="strategist"] { border-color: rgba(232, 121, 249, 0.45); background: linear-gradient(120deg, rgba(232, 121, 249, 0.12), rgba(15, 23, 42, 0.6)); }
.fd-personality[data-archetype="strategist"] .fd-personality__name { color: #f0abfc; }
.fd-personality[data-archetype="strategist"] .fd-personality__you { color: rgba(240, 171, 252, 0.85); }
.fd-personality__tease { margin: 10px 0 0; font-size: 0.78rem; color: rgba(148, 163, 184, 0.9); font-style: italic; }
.fd-personality__source { margin: 8px 0 0; max-width: 620px; font-size: 0.7rem; line-height: 1.5; color: rgba(167, 192, 178, 0.78); }

/* ---------- World map ---------- */
.fd-map { background: radial-gradient(circle at 12% 0%, rgba(74, 222, 128, 0.08), transparent 42%), radial-gradient(circle at 90% 100%, rgba(250, 204, 21, 0.07), transparent 46%), #050d09; }
.fd-map .section-heading h2 { color: #f8fafc; }
.fd-map__lead { color: rgba(203, 213, 225, 0.85); max-width: 560px; }
.fd-map__trail { list-style: none; margin: 26px auto 0; padding: 0; max-width: 620px; position: relative; }
.fd-map__trail::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 3px; background: linear-gradient(180deg, rgba(74, 222, 128, 0.5), rgba(250, 204, 21, 0.35), rgba(148, 163, 184, 0.2)); border-radius: 3px; }
.fd-map__stop { position: relative; margin: 0 0 10px; }
.fd-map__stop a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px 10px 4px; border-radius: 15px; text-decoration: none; border: 1px solid transparent; transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease; }
.fd-map__stop a:hover { border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.06); transform: translateX(4px); }
.fd-map__node { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; font-size: 1.3rem; background: #0b1a12; border: 2px solid rgba(148, 163, 184, 0.35); filter: grayscale(0.9) brightness(0.75); }
.fd-map__body b { display: block; font-size: 0.98rem; color: #e2e8f0; }
.fd-map__body small { display: block; font-size: 0.74rem; color: rgba(148, 163, 184, 0.9); margin-top: 2px; }
.fd-map__state { margin-left: auto; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(148, 163, 184, 0.75); border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.fd-map__stop--explored .fd-map__node { filter: none; border-color: rgba(74, 222, 128, 0.75); box-shadow: 0 0 18px rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.12); }
.fd-map__stop--explored .fd-map__body b { color: #86efac; }
.fd-map__stop--explored .fd-map__state { color: #4ade80; border-color: rgba(74, 222, 128, 0.55); }
.fd-map__stop--mastered .fd-map__node { filter: none; border-color: rgba(232, 121, 249, 0.9); background: linear-gradient(135deg, rgba(232, 121, 249, 0.18), rgba(250, 204, 21, 0.14)); box-shadow: 0 0 24px rgba(232, 121, 249, 0.42); }
.fd-map__stop--mastered .fd-map__body b { color: #f5d0fe; }
.fd-map__stop--mastered .fd-map__state { color: #f0abfc; border-color: rgba(232, 121, 249, 0.65); }
.fd-map__stop--next .fd-map__node { filter: none; border-color: rgba(250, 204, 21, 0.8); box-shadow: 0 0 20px rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.12); animation: fd-map-pulse 2.4s ease-in-out infinite; }
.fd-map__stop--next .fd-map__body b { color: #fde68a; }
.fd-map__stop--next .fd-map__state { color: #facc15; border-color: rgba(250, 204, 21, 0.6); }
.fd-map__stop--future .fd-map__node { border-style: dashed; }
.fd-map__stop--future .fd-map__state { border-style: dashed; }
@keyframes fd-map-pulse { 0%, 100% { box-shadow: 0 0 12px rgba(250, 204, 21, 0.25); } 50% { box-shadow: 0 0 26px rgba(250, 204, 21, 0.55); } }
@media (prefers-reduced-motion: reduce) { .fd-map__stop--next .fd-map__node { animation: none; } .fd-map__stop a:hover { transform: none; } }
.fd-map__status { margin: 18px auto 0; max-width: 620px; text-align: center; font-size: 0.85rem; font-weight: 600; color: rgba(203, 213, 225, 0.9); }
@media (min-width: 1100px) { .fd-map__trail { max-width: 680px; } }

/* ---------- Preview lab ---------- */
.fd-lab { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(74, 222, 128, 0.25); background: rgba(4, 14, 9, 0.55); }
.fd-lab__kicker { margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #4ade80; }
.fd-lab__hint { margin: 6px 0 12px; font-size: 0.8rem; color: rgba(203, 213, 225, 0.85); }
.fd-lab__grid { display: grid; gap: 14px; }
.fd-lab__toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fd-lab__toggle { min-height: 54px; text-align: left; padding: 8px 10px; border-radius: 11px; border: 1px solid rgba(148, 163, 184, 0.3); background: rgba(15, 23, 42, 0.5); color: #e2e8f0; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.fd-lab__toggle b { display: block; font-size: 0.82rem; }
.fd-lab__toggle small { display: block; font-size: 0.68rem; color: rgba(148, 163, 184, 0.85); margin-top: 2px; }
.fd-lab__toggle[aria-pressed="true"] { border-color: rgba(74, 222, 128, 0.7); background: rgba(74, 222, 128, 0.14); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4); }
.fd-lab__toggle[aria-pressed="true"] b { color: #86efac; }
.fd-lab__dials { display: grid; gap: 8px; align-content: start; }
.fd-lab__dial-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.fd-lab__dial-head b { font-size: 0.74rem; letter-spacing: 0.04em; color: rgba(226, 232, 240, 0.9); }
.fd-lab__dial-head em { font-style: normal; font-size: 0.8rem; font-weight: 800; color: #cbd5e1; }
.fd-lab__bar { display: block; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
.fd-lab__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(148, 163, 184, 0.7), rgba(203, 213, 225, 0.8)); transition: width 0.35s ease; }
.fd-lab__dial--good .fd-lab__fill { background: linear-gradient(90deg, #16a34a, #4ade80); }
.fd-lab__dial--good .fd-lab__dial-head em { color: #4ade80; }
@media (prefers-reduced-motion: reduce) { .fd-lab__fill { transition: none; } }
.fd-lab__verdict { margin: 12px 0 0; font-size: 0.84rem; font-weight: 600; color: #fde68a; min-height: 2.2em; }
.fd-lab__note { margin: 8px 0 0; font-size: 0.7rem; color: rgba(148, 163, 184, 0.8); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-lab__reset { border: 1px solid rgba(148, 163, 184, 0.4); background: transparent; color: #cbd5e1; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 6px 12px; min-height: 32px; cursor: pointer; }
#fd-lab-reset {
    min-height: 44px;
}
.fd-lab__reset:hover { border-color: rgba(74, 222, 128, 0.6); color: #86efac; }
@media (min-width: 700px) { .fd-lab__grid { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Classroom ---------- */
.fd-class { margin-top: 34px; }
.fd-class__head h3 { margin: 0; font-size: 1.25rem; color: #f8fafc; }
.fd-class__head p { margin: 6px 0 0; font-size: 0.85rem; color: rgba(203, 213, 225, 0.85); max-width: 560px; }
.fd-class__list { margin-top: 16px; display: grid; gap: 8px; }
.fd-class__world { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 13px; background: rgba(15, 23, 42, 0.45); overflow: hidden; }
.fd-class__world summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; min-height: 48px; cursor: pointer; list-style: none; }
.fd-class__world summary::-webkit-details-marker { display: none; }
.fd-class__world summary::after { content: "+"; margin-left: auto; font-weight: 800; color: #4ade80; font-size: 1.1rem; }
.fd-class__world[open] summary::after { content: "−"; }
.fd-class__world summary span { font-weight: 800; font-size: 0.92rem; color: #e2e8f0; }
.fd-class__world summary small { font-size: 0.7rem; color: rgba(148, 163, 184, 0.9); }
.fd-class__world[open] summary { border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.fd-class__body { padding: 12px 14px 14px; }
.fd-class__sum { margin: 0; font-size: 0.84rem; color: rgba(226, 232, 240, 0.92); }
.fd-class__q { margin: 10px 0 0; padding-left: 18px; font-size: 0.8rem; color: rgba(203, 213, 225, 0.88); display: grid; gap: 6px; }
.fd-class__tags { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fd-class__tags span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #86efac; border: 1px solid rgba(74, 222, 128, 0.35); border-radius: 999px; padding: 4px 10px; }
@media (min-width: 900px) { .fd-class__list { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Comfort-mode + iPad polish ---------- */
.fd-comfort .fd-continue__cta b, .fd-comfort .fd-continue__alt b { font-size: 1.05rem; }
.fd-comfort .fd-map__body b { font-size: 1.08rem; }
.fd-comfort .fd-class__sum, .fd-comfort .fd-class__q { font-size: 0.95rem; line-height: 1.7; }
.fd-comfort .fd-lab__hint, .fd-comfort .fd-lab__verdict { font-size: 0.95rem; line-height: 1.65; }

/* PS-4D neighbourhood capstone: no new Games-front-door selectors required. */

/* ========================================================================== 
   PS-5A · Energy Explorer 2.0
   Child-first dashboard, tabbed passport, local guide and contextual bridge.
   ========================================================================== */

.fd5-dashboard {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 7vw, 7rem) 0;
    color: #eef5ff;
    background:
        radial-gradient(circle at 8% 10%, rgba(74, 222, 128, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 16%, rgba(123, 97, 255, 0.22), transparent 30rem),
        linear-gradient(155deg, #071326 0%, #0b1831 48%, #11173a 100%);
}

.fd5-dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(176, 196, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 196, 255, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.fd5-dashboard__frame {
    position: relative;
    z-index: 1;
}

.fd5-dashboard__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    margin-bottom: clamp(1.8rem, 4vw, 3.25rem);
}

.fd5-dashboard__intro h2 {
    max-width: 850px;
    margin: 0.55rem 0 0;
    color: #fff;
    font-size: clamp(2.25rem, 5.4vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.fd5-dashboard__lead {
    max-width: 520px;
    margin: 0;
    color: #c5d4ed;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.72;
}

.fd5-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0 0 1rem;
}

.fd5-metric {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(184, 204, 255, 0.16);
    border-radius: 20px;
    background: rgba(9, 19, 43, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.fd5-metric__value {
    display: block;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
}

.fd5-metric__label {
    display: block;
    margin-top: 0.48rem;
    color: #9eb0ce;
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fd5-dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: 1rem;
    align-items: stretch;
}

.fd5-dashboard__left,
.fd5-dashboard__right {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.fd5-dashboard__card {
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(184, 204, 255, 0.17);
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(16, 31, 65, 0.9), rgba(10, 19, 43, 0.84));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.fd5-card-kicker {
    display: block;
    margin: 0 0 0.9rem;
    color: #91a5c5;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.fd5-dashboard__profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.fd5-profile__avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(250, 204, 21, 0.55);
    border-radius: 22px;
    color: #fde68a;
    background: linear-gradient(145deg, rgba(250, 204, 21, 0.17), rgba(123, 97, 255, 0.18));
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.12);
    font-size: 2rem;
}

.fd5-profile__body {
    min-width: 0;
}

.fd5-profile__body strong {
    display: block;
    color: #fff;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    line-height: 1.15;
}

.fd5-profile__body p {
    margin: 0.33rem 0 0;
    color: #bdcce5;
    line-height: 1.45;
}

.fd5-profile__privacy {
    color: #8497b8 !important;
    font-size: 0.78rem;
}

.fd5-story {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(74, 222, 128, 0.16), transparent 45%),
        linear-gradient(145deg, rgba(15, 42, 62, 0.96), rgba(11, 25, 50, 0.9));
}

.fd5-story::after {
    content: '✦';
    position: absolute;
    right: 1.4rem;
    bottom: 0.65rem;
    color: rgba(134, 239, 172, 0.12);
    font-size: 6rem;
    line-height: 1;
}

.fd5-story h3,
.fd5-skills h3,
.fd5-recommend h3 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.13;
    letter-spacing: -0.025em;
}

.fd5-story p,
.fd5-recommend__lesson {
    position: relative;
    z-index: 1;
    margin: 0.8rem 0 0;
    color: #bfd0e8;
    line-height: 1.65;
}

.fd5-skills__head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.fd5-skills__head p {
    max-width: 310px;
    margin: 0;
    color: #8fa4c4;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: right;
}

.fd5-skill-list {
    display: grid;
    gap: 0.85rem;
}

.fd5-skill {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(100px, 1.2fr) 62px;
    gap: 0.75rem;
    align-items: center;
    color: #c7d6ec;
}

.fd5-skill.is-strongest {
    color: #fff;
}

.fd5-skill__name {
    overflow: hidden;
    font-size: 0.79rem;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd5-skill__track {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: rgba(168, 189, 226, 0.12);
}

.fd5-skill__fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #4ade80);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.35);
    transition: width 550ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fd5-skill.is-strongest .fd5-skill__fill {
    background: linear-gradient(90deg, #facc15, #4ade80);
}

.fd5-skill__score {
    color: #92a7c7;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.fd5-recommend {
    position: relative;
    overflow: hidden;
    border-color: rgba(250, 204, 21, 0.38);
    background:
        radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.2), transparent 44%),
        linear-gradient(145deg, rgba(39, 35, 74, 0.97), rgba(16, 31, 61, 0.94));
}

.fd5-recommend__head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.fd5-recommend__icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid rgba(250, 204, 21, 0.44);
    border-radius: 18px;
    color: #fde68a;
    background: rgba(250, 204, 21, 0.1);
    font-size: 1.55rem;
}

.fd5-recommend__evidence,
.fd5-recommend__why {
    margin: 1rem 0 0;
    padding: 0.72rem 0.85rem;
    border-left: 3px solid rgba(96, 165, 250, 0.7);
    color: #bacbe4;
    background: rgba(5, 12, 30, 0.3);
    font-size: 0.84rem;
    line-height: 1.55;
}

.fd5-recommend__why {
    margin-top: 0.55rem;
    border-left-color: rgba(74, 222, 128, 0.7);
}

.fd5-recommend__actions,
.fd5-guide-strip__actions,
.fd5-passport__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    margin-top: 1.25rem;
}

.fd5-path {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.fd5-path__head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.fd5-path__head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.fd5-path__head span {
    color: #8fa4c4;
    font-size: 0.78rem;
}

.fd5-path__list {
    display: grid;
    gap: 0.7rem;
}

.fd5-path__step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 70px;
    padding: 0.7rem 0.8rem;
    color: inherit;
    border: 1px solid rgba(184, 204, 255, 0.13);
    border-radius: 17px;
    background: rgba(7, 16, 38, 0.45);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.fd5-path__step:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 222, 128, 0.46);
    background: rgba(19, 38, 67, 0.76);
}

.fd5-path__num {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 11px;
    color: #0b172c;
    background: #86efac;
    font-size: 0.78rem;
    font-weight: 900;
}

.fd5-path__copy {
    min-width: 0;
}

.fd5-path__title,
.fd5-path__meta {
    display: block;
}

.fd5-path__title {
    color: #fff;
    font-size: 0.91rem;
    font-weight: 780;
}

.fd5-path__meta {
    overflow: hidden;
    margin-top: 0.2rem;
    color: #92a7c7;
    font-size: 0.73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd5-path__arrow {
    color: #86efac;
    font-size: 1.1rem;
}

.fd5-guide-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border: 1px solid rgba(134, 239, 172, 0.3);
    border-radius: 24px;
    background: linear-gradient(100deg, rgba(10, 36, 45, 0.92), rgba(19, 29, 61, 0.94));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.fd5-guide-strip__avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    color: #071326;
    background: linear-gradient(145deg, #fde68a, #86efac);
    font-size: 1.45rem;
    font-weight: 900;
}

.fd5-guide-strip__copy strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.fd5-guide-strip__copy p {
    margin: 0.25rem 0 0;
    color: #a9bdd8;
    font-size: 0.82rem;
    line-height: 1.5;
}

.fd5-guide-strip__actions {
    margin: 0;
    justify-content: end;
}

.fd5-passport__intro {
    max-width: 830px;
}

.fd5-passport__tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    margin: 2rem 0 0;
    padding: 0.45rem;
    border: 1px solid rgba(30, 42, 68, 0.12);
    border-radius: 18px;
    background: rgba(235, 242, 255, 0.78);
    scrollbar-width: thin;
}

.fd5-passport__tab {
    flex: 1 0 auto;
    min-height: 48px;
    padding: 0.7rem 1rem;
    color: #31415f;
    border: 0;
    border-radius: 13px;
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 820;
    cursor: pointer;
    white-space: nowrap;
}

.fd5-passport__tab[aria-selected='true'] {
    color: #fff;
    background: linear-gradient(135deg, #25375e, #5546bb);
    box-shadow: 0 8px 24px rgba(51, 48, 118, 0.24);
}

.fd5-passport__panels {
    margin-top: 1rem;
}

.fd5-passport__panel {
    padding: clamp(1.1rem, 3vw, 2rem);
    border: 1px solid rgba(30, 42, 68, 0.1);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 60px rgba(20, 36, 64, 0.08);
}

.fd5-passport__panel + .fd5-passport__panel {
    margin-top: 1rem;
}

.fd5-passport.is-tabs-ready .fd5-passport__panel[hidden] {
    display: none;
}

.fd5-passport__panel-head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.fd5-passport__panel-head h3 {
    margin: 0;
    color: #14213b;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.025em;
}

.fd5-passport__panel-head p {
    max-width: 480px;
    margin: 0;
    color: #586883;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: right;
}

.fd5-passport .fd-passport__count,
.fd5-mastery__count,
.fd5-challenge-count {
    margin: 1rem 0 0;
    color: #40516d;
    font-size: 0.86rem;
    font-weight: 720;
}

.fd5-passport .fd-stamps li {
    position: relative;
}

.fd5-passport .fd-stamps li.is-complete {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(145deg, #eff6ff, #f8fbff);
}

.fd5-passport .fd-stamps li.is-mastered {
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(145deg, #faf5ff, #fffbeb);
    box-shadow: 0 12px 35px rgba(91, 61, 154, 0.09);
}

.fd-stamp__state {
    display: inline-block;
    margin-top: 0.3rem;
    color: #6c7c95;
    font-size: 0.69rem;
    font-weight: 730;
}

.is-complete .fd-stamp__state {
    color: #2563eb;
}

.is-mastered .fd-stamp__state {
    color: #7c3aed;
}

.fd5-mastery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.fd5-mastery-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.8rem;
    min-height: 112px;
    padding: 1rem;
    border: 1px dashed rgba(57, 73, 104, 0.25);
    border-radius: 18px;
    color: #34445f;
    background: #f5f7fb;
}

.fd5-mastery-card.is-unlocked {
    border-style: solid;
    border-color: rgba(124, 58, 237, 0.35);
    background: linear-gradient(145deg, #faf5ff, #fff9e6);
    box-shadow: 0 12px 30px rgba(91, 61, 154, 0.1);
}

.fd5-mastery__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #64748b;
    background: #e5eaf3;
    font-size: 1.1rem;
}

.is-unlocked .fd5-mastery__mark {
    color: #fff;
    background: linear-gradient(145deg, #7c3aed, #d97706);
}

.fd5-mastery-card strong,
.fd5-challenge-card strong {
    display: block;
    color: #17243e;
    font-size: 0.88rem;
    line-height: 1.28;
}

.fd5-mastery-card p,
.fd5-challenge-card p {
    margin: 0.35rem 0 0;
    color: #63728a;
    font-size: 0.74rem;
    line-height: 1.45;
}

.fd5-mastery__progress {
    display: block;
    margin-top: 0.48rem;
    color: #465873;
    font-size: 0.7rem;
    font-weight: 780;
    line-height: 1.35;
}

.fd5-challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.fd5-challenge-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.8rem;
    min-height: 110px;
    padding: 1rem;
    border: 1px dashed rgba(57, 73, 104, 0.24);
    border-radius: 18px;
    background: #f7f9fc;
}

.fd5-challenge-card.is-unlocked {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(145deg, #ecfdf5, #f0f9ff);
}

.fd5-challenge-card__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #64748b;
    background: #e8edf4;
    font-weight: 900;
}

.is-unlocked .fd5-challenge-card__mark {
    color: #fff;
    background: linear-gradient(145deg, #10b981, #0ea5e9);
}

.fd5-passport__actions {
    padding-top: 1.1rem;
    border-top: 1px solid rgba(38, 53, 83, 0.1);
}

.fd5-guide-dialog {
    width: min(620px, calc(100vw - 2rem));
    max-height: min(740px, calc(100vh - 2rem));
    overflow: auto;
    padding: 0;
    color: #eaf2ff;
    border: 1px solid rgba(176, 196, 255, 0.28);
    border-radius: 28px;
    background: linear-gradient(150deg, #101f41, #091329);
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.58);
}

.fd5-guide-dialog::backdrop {
    background: rgba(3, 8, 20, 0.78);
    backdrop-filter: blur(5px);
}

.fd5-guide-dialog__inner {
    padding: clamp(1.25rem, 5vw, 2.4rem);
}

.fd5-guide-dialog__head {
    display: flex;
    gap: 1rem;
    align-items: start;
    justify-content: space-between;
}

.fd5-guide-dialog__head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    letter-spacing: -0.035em;
}

.fd5-guide-dialog__close {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #dbe7fa;
    border: 1px solid rgba(176, 196, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.fd5-guide-dialog__evidence,
.fd5-guide-dialog__outcome {
    margin: 1.3rem 0 0;
    padding: 1rem;
    border: 1px solid rgba(176, 196, 255, 0.13);
    border-radius: 17px;
    color: #bfcee5;
    background: rgba(4, 12, 29, 0.5);
    line-height: 1.6;
}

.fd5-guide-dialog__outcome {
    border-color: rgba(134, 239, 172, 0.22);
    color: #d9fbe6;
}

.fd5-guide-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.ps-final__lead,
.ps-final__sub {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

#fd5-bridge-note {
    color: #9fb0ca;
    font-size: 0.79rem;
    line-height: 1.55;
}

.fd5-dashboard :is(a, button):focus-visible,
.fd5-passport :is(a, button):focus-visible,
.fd5-guide-dialog :is(a, button):focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 4px;
}

#energy-dashboard,
#passport,
#achievements,
#mastery,
#challenges,
#worlds,
#island {
    scroll-margin-top: 92px;
}

@media (max-width: 980px) {
    .fd5-dashboard__intro {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }

    .fd5-dashboard__lead {
        max-width: 760px;
    }

    .fd5-dashboard__grid {
        grid-template-columns: 1fr;
    }

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

    .fd5-recommend {
        grid-column: 1 / -1;
    }

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

@media (max-width: 760px) {
    .fd5-dashboard {
        padding: 3.5rem 0;
    }

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

    .fd5-dashboard__right {
        grid-template-columns: 1fr;
    }

    .fd5-recommend {
        grid-column: auto;
    }

    .fd5-guide-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fd5-guide-strip__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .fd5-guide-strip__actions .button {
        flex: 1;
        min-height: 48px;
    }

    .fd5-passport__panel-head {
        display: block;
    }

    .fd5-passport__panel-head p {
        margin-top: 0.45rem;
        text-align: left;
    }

    .fd5-challenge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .fd5-dashboard__intro h2 {
        font-size: clamp(2.15rem, 12vw, 3.25rem);
    }

    .fd5-dashboard__card,
    .fd5-passport__panel {
        border-radius: 21px;
    }

    .fd5-dashboard__profile {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .fd5-profile__avatar {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 1.6rem;
    }

    .fd5-skills__head {
        display: block;
    }

    .fd5-skills__head p {
        margin-top: 0.45rem;
        text-align: left;
    }

    .fd5-skill {
        grid-template-columns: minmax(120px, 1fr) 55px;
        gap: 0.45rem 0.7rem;
    }

    .fd5-skill__track {
        grid-row: 2;
        grid-column: 1 / -1;
    }

    .fd5-recommend__head {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .fd5-recommend__icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .fd5-recommend__actions .button,
    .fd5-passport__actions .button,
    .fd5-guide-dialog__actions .button {
        width: 100%;
        min-height: 50px;
    }

    .fd5-path__step {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        min-height: 76px;
    }

    .fd5-path__meta {
        overflow: visible;
        white-space: normal;
    }

    .fd5-passport__tabs {
        margin-left: -0.15rem;
        margin-right: -0.15rem;
    }

    .fd5-passport__tab {
        min-height: 50px;
    }

    .fd5-mastery-grid {
        grid-template-columns: 1fr;
    }

    .fd5-guide-strip {
        grid-template-columns: 46px minmax(0, 1fr);
        border-radius: 20px;
    }
}

@media (max-width: 380px) {
    .fd5-metrics {
        gap: 0.55rem;
    }

    .fd5-metric {
        padding: 0.85rem;
        border-radius: 16px;
    }

    .fd5-metric__label {
        font-size: 0.65rem;
        letter-spacing: 0.045em;
    }

    .fd5-dashboard__card,
    .fd5-path,
    .fd5-passport__panel {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fd5-skill__fill,
    .fd5-path__step {
        transition: none;
    }

    .fd5-path__step:hover {
        transform: none;
    }
}

@media print {
    .fd5-passport__tabs,
    .fd5-guide-strip,
    .fd5-recommend__actions,
    .fd5-passport__actions,
    .fd5-guide-dialog {
        display: none !important;
    }

    .fd5-passport.is-tabs-ready .fd5-passport__panel[hidden] {
        display: block !important;
    }

    .fd5-passport__panel {
        break-inside: avoid;
        box-shadow: none;
    }
}


/* PS-5A release contract: final PHP component names. */
.fd5-dashboard__shell { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr); gap:1rem; }
.fd5-section-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.7fr); gap:1.5rem; align-items:end; margin-bottom:1.4rem; }
.fd5-section-head h2 { margin:.2rem 0 0; font-size:clamp(2rem,4vw,3.65rem); line-height:1; letter-spacing:-.045em; }
.fd5-section-head > p { margin:0; line-height:1.6; }
.fd5-section-head--light { color:#f4f8ff; }
.fd5-dashboard .fd5-section-head { position:relative; z-index:1; }
.fd5-dashboard__shell > article, .fd5-dashboard__shell > div { min-width:0; }
.fd5-identity, .fd5-story, .fd5-skills, .fd5-dashboard-next { border:1px solid rgba(184,204,255,.18); border-radius:24px; background:rgba(10,23,49,.78); box-shadow:0 18px 48px rgba(0,0,0,.18); }
.fd5-identity { grid-row:span 2; display:grid; grid-template-columns:auto minmax(0,1fr); gap:1rem; align-content:center; padding:clamp(1.25rem,3vw,2rem); }
.fd5-identity__spark { display:grid; width:68px; height:68px; place-items:center; border-radius:20px; color:#fff3bd; background:linear-gradient(145deg,#5546bb,#145c55); font-size:2rem; }
.fd5-identity__copy h3 { margin:.15rem 0 .8rem; color:#fff; font-size:clamp(1.25rem,2.3vw,1.7rem); }
.fd5-identity__copy p { margin:.45rem 0; color:#c7d7eb; line-height:1.5; }
.fd5-overline { margin:0; color:#9ddbbb; font-size:.7rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.fd-personality { grid-column:1/-1; padding-top:1rem; border-top:1px solid rgba(184,204,255,.16); }
.fd-personality__you { margin:0; color:#a8bdd5; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.fd-personality__name { margin:.25rem 0; color:#fff3bd; font-weight:850; }
.fd-personality__likes, .fd-personality__tease { grid-column:1/-1; margin:.25rem 0 0; color:#c7d7eb; font-size:.86rem; line-height:1.5; }
.fd5-metrics { grid-column:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:0; }
.fd5-metrics[hidden], .fd5-skills__list[hidden] { display:none; }
.fd5-metrics article { display:grid; gap:.25rem; min-height:112px; padding:1rem; border:1px solid rgba(184,204,255,.16); border-radius:18px; background:rgba(10,23,49,.7); }
.fd5-metrics strong { color:#fff; font-size:1.6rem; line-height:1; }
.fd5-metrics article > span:last-child { color:#b8c8df; font-size:.76rem; line-height:1.25; }
.fd5-metric__icon { color:#d9ff8b; font-size:1rem; }
.fd5-story { grid-column:2; display:flex; gap:1rem; padding:1.25rem; background:linear-gradient(135deg,rgba(12,58,57,.9),rgba(19,29,61,.95)); }
.fd5-story__art { display:flex; flex:0 0 32px; flex-direction:column; justify-content:space-around; color:#d9ff8b; font-size:1rem; }
.fd5-story__art i { display:block; width:2px; height:14px; margin:auto; background:rgba(217,255,139,.45); }
.fd5-story h3 { margin:.25rem 0; color:#fff; font-size:1.18rem; }
.fd5-story p:last-child { margin:.45rem 0 0; color:#d2e5df; font-size:.85rem; line-height:1.5; }
.fd5-skills { grid-column:1; padding:clamp(1.25rem,3vw,1.75rem); }
.fd5-skills__head { display:flex; justify-content:space-between; gap:1rem; align-items:end; }
.fd5-skills h3 { margin:.25rem 0 0; color:#fff; font-size:1.4rem; }
.fd5-strongest { max-width:210px; margin:0; color:#b4d7c8; font-size:.8rem; line-height:1.4; text-align:right; }
.fd5-skills__fresh { display:flex; gap:.65rem; align-items:flex-start; margin:1rem 0; padding:.75rem; border-radius:14px; color:#d5e9e1; background:rgba(217,255,139,.09); font-size:.84rem; line-height:1.45; }
.fd5-skills__fresh span { color:#d9ff8b; font-size:1.1rem; }
.fd5-skills__fresh p { margin:0; }
.fd5-skills__list { display:grid; gap:.72rem; margin:1rem 0 0; padding:0; list-style:none; }
.fd5-skills__list li { display:grid; gap:.35rem; padding:.6rem .7rem; border-radius:14px; }
.fd5-skills__list li.is-strongest { background:rgba(217,255,139,.1); outline:1px solid rgba(217,255,139,.32); }
.fd5-skills__list li > div { display:flex; justify-content:space-between; gap:1rem; color:#dce7fa; font-size:.82rem; }
.fd5-skills__list li b { color:#fff; font-variant-numeric:tabular-nums; }
.fd5-skillbar { display:block; overflow:hidden; height:9px; border-radius:99px; background:rgba(213,229,255,.16); }
.fd5-skillbar i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#75c9f1,#d9ff8b); transition:width .45s ease; }
.fd5-dashboard-next { grid-column:2; display:grid; grid-template-columns:auto minmax(0,1fr); gap:1rem; align-content:start; padding:1.25rem; border-color:rgba(255,209,102,.45); background:linear-gradient(145deg,rgba(66,51,67,.94),rgba(13,38,58,.96)); }
.fd5-dashboard-next__number { display:grid; width:40px; height:40px; place-items:center; border-radius:13px; color:#16213b; background:#ffd166; font-weight:900; }
.fd5-dashboard-next h3 { margin:.25rem 0; color:#fff; font-size:1.25rem; }
.fd5-dashboard-next__lesson { margin:.4rem 0 0; color:#d5e0ef; font-size:.87rem; line-height:1.5; }
.fd5-dashboard-next__why { display:grid; gap:.6rem; margin:1rem 0 0; }
.fd5-dashboard-next__why div { padding-left:.7rem; border-left:2px solid #83dfbd; }
.fd5-dashboard-next__why dt { color:#b9d4cc; font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.fd5-dashboard-next__why dd { margin:.2rem 0 0; color:#f0f4fb; font-size:.78rem; line-height:1.45; }
.fd5-dashboard-next > .button { grid-column:1/-1; min-height:44px; }
.fd5-local-note, .fd5-passport__privacy, .fd5-guide__privacy { margin:1rem 0 0; color:#c3d3e8; font-size:.8rem; line-height:1.5; }
.fd5-path { padding:clamp(3rem,6vw,5rem) 0; color:#eef5ff; background:linear-gradient(145deg,#0a3434,#102349); }
.fd5-path__layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr); gap:1rem; }
.fd5-mission, .fd5-next-three { padding:clamp(1.25rem,3vw,2rem); border:1px solid rgba(219,240,238,.18); border-radius:24px; background:rgba(5,25,39,.48); }
.fd5-mission { display:grid; grid-template-columns:auto minmax(0,1fr); gap:1rem; }
.fd5-mission__step { grid-column:1/-1; margin:0; color:#b3ddc8; font-size:.75rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.fd5-mission__icon { display:grid; width:50px; height:50px; place-items:center; border-radius:16px; color:#12213b; background:#d9ff8b; font-size:1.4rem; }
.fd5-mission h3 { margin:.25rem 0; color:#fff; font-size:clamp(1.35rem,3vw,2rem); line-height:1.1; }
.fd5-mission__lesson { margin:.5rem 0 0; color:#cfdfed; line-height:1.55; }
.fd5-mission__why { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:.7rem; margin:0; }
.fd5-mission__why div { padding:.8rem; border-radius:14px; background:rgba(255,255,255,.06); }
.fd5-mission__why dt { color:#b5dfca; font-size:.68rem; font-weight:800; text-transform:uppercase; }
.fd5-mission__why dd { margin:.35rem 0 0; color:#f2f7fc; font-size:.83rem; line-height:1.45; }
.fd5-mission > .button { grid-column:1/-1; justify-self:start; min-height:44px; }
.fd5-next-three h3 { margin:.25rem 0 1rem; color:#fff; }
.fd5-next-three ol { display:grid; gap:.7rem; margin:0; padding:0; list-style:none; }
.fd5-next-three li { display:grid; grid-template-columns:28px 1fr; gap:.65rem; align-items:start; }
.fd5-next-three li > span { display:grid; width:28px; height:28px; place-items:center; border-radius:50%; color:#12323c; background:#83dfbd; font-size:.76rem; font-weight:900; }
.fd5-next-three b, .fd5-next-three small { display:block; }
.fd5-next-three b { color:#fff; font-size:.88rem; }
.fd5-next-three small { margin-top:.15rem; color:#bed4e5; font-size:.75rem; line-height:1.35; }
.fd5-next-three .text-link { display:inline-block; margin-top:1rem; color:#d9ff8b; }
.fd5-domain-chips { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.fd5-domain-chips span { padding:.45rem .7rem; border:1px solid rgba(219,240,238,.2); border-radius:99px; color:#deedf4; font-size:.72rem; }
.fd5-passport { padding:clamp(3rem,6vw,5rem) 0; background:#edf4ed; }
.fd5-passport .fd5-section-head { color:#14213b; }
.fd5-passport__tabs { position:relative; z-index:1; }
.fd5-passport__tabs .fd5-passport__tab { min-height:44px; }
.fd5-panel-head { display:flex; justify-content:space-between; gap:1rem; align-items:end; margin-bottom:1rem; }
.fd5-panel-head h3 { margin:.2rem 0 0; color:#13233b; }
.fd5-panel-head > p { max-width:440px; margin:0; color:#526275; font-size:.84rem; line-height:1.45; text-align:right; }
.fd5-mastery-grid, .fd5-challenge-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin:0; padding:0; list-style:none; }
.fd5-mastery-grid li, .fd5-challenge-grid li { display:grid; grid-template-columns:34px minmax(0,1fr); gap:.7rem; min-height:120px; padding:.9rem; border:1px dashed #95a5ad; border-radius:16px; background:#f9fbf9; }
.fd5-mastery-grid li.is-unlocked, .fd5-challenge-grid li.is-unlocked { border-style:solid; border-color:#5f9d78; background:#eff9df; }
.fd5-mastery-grid li > span, .fd5-challenge-grid li > span { display:grid; width:34px; height:34px; place-items:center; border-radius:11px; color:#5b6770; background:#e1e9e5; }
.fd5-mastery-grid li.is-unlocked > span, .fd5-challenge-grid li.is-unlocked > span { color:#173a32; background:#d9ff8b; }
.fd5-mastery-grid b, .fd5-challenge-grid b { color:#172b3b; font-size:.84rem; }
.fd5-mastery-grid p, .fd5-challenge-grid p { margin:.3rem 0; color:#526275; font-size:.74rem; line-height:1.4; }
.fd5-mastery-grid small, .fd5-challenge-grid small { color:#365a49; font-size:.7rem; font-weight:700; line-height:1.35; }
.fd5-passport .fd-passport__stamps li.is-complete { outline:1px solid rgba(37,99,235,.35); }
.fd5-passport .fd-passport__stamps li.is-mastered { outline:2px solid rgba(121,82,186,.45); }
.fd5-daily { margin-top:1rem; }
.fd5-guide { padding:clamp(3rem,6vw,5rem) 0; background:#0a1b31; color:#f0f6fd; }
.fd5-guide__toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:.7rem; padding:1rem; border:1px solid rgba(189,214,239,.2); border-radius:20px; background:rgba(255,255,255,.06); }
.fd5-guide__toolbar fieldset, .fd5-guide__modes, .fd5-guide__roles { display:flex; flex-wrap:wrap; gap:.35rem; min-width:0; margin:0; padding:0; border:0; }
.fd5-guide__toolbar legend { width:100%; margin-bottom:.3rem; color:#b7cbe1; font-size:.67rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.fd5-guide__toolbar button, .fd5-guide__toolbar select { min-height:44px; border:1px solid rgba(196,218,239,.32); border-radius:11px; font:inherit; }
.fd5-guide__toolbar button { padding:.55rem .75rem; color:#eaf4ff; background:#17365b; cursor:pointer; }
.fd5-guide__toolbar button[aria-pressed=true] { color:#112837; border-color:#d9ff8b; background:#d9ff8b; font-weight:800; }
.fd5-guide__toolbar label { display:grid; gap:.32rem; color:#c6d7e9; font-size:.72rem; font-weight:750; }
.fd5-guide__toolbar select { min-width:130px; padding:.45rem .55rem; color:#11233b; background:#fff; }
.fd5-guide__clear { margin-left:auto; }
.fd5-guide__status { margin:.8rem 0 0; color:#c8e9d6; font-size:.84rem; }
.fd5-guide__lessons .fd-class__world { background:rgba(7,20,42,.6); }
.fd5-guide__lessons .fd-class__world summary span, .fd5-guide__lessons .fd-class__sum { color:#eff6ff; }
.fd5-guide__lessons .fd5-guide__evidence { margin:.65rem 0; padding:.65rem; border-left:3px solid #83dfbd; color:#cce0f1; background:rgba(131,223,189,.09); font-size:.82rem; line-height:1.45; }
.fd5-guide:not(.is-guide-view) .fd5-guide__teacher-only { display:none; }
.fd5-guide.is-guide-view[data-guide-role=family] .fd5-guide__teacher-only b::after { content:' together:'; }
.fd5-guide.is-guide-view[data-guide-role=family] .fd5-guide__teacher-only b { font-size:0; }
.fd5-guide.is-guide-view[data-guide-role=family] .fd5-guide__teacher-only b::before { content:'Try asking'; font-size:.875rem; }
.fd5-guide__privacy { color:#c9d9ec; }
#explorer-dashboard, #learning-path, #teacher-guide, #passport-mastery { scroll-margin-top:92px; }
.fd5-dashboard :focus-visible, .fd5-path :focus-visible, .fd5-passport :focus-visible, .fd5-guide :focus-visible { outline:3px solid #ffd166; outline-offset:3px; }
@media (max-width:899px) { .fd5-dashboard__shell { grid-template-columns:1fr; } .fd5-identity,.fd5-metrics,.fd5-story,.fd5-skills,.fd5-dashboard-next { grid-column:auto; grid-row:auto; } .fd5-identity { grid-template-columns:auto minmax(0,1fr); } .fd5-path__layout { grid-template-columns:1fr; } }
@media (max-width:639px) { .fd5-section-head { grid-template-columns:1fr; gap:.7rem; } .fd5-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .fd5-metrics article { min-height:96px; } .fd5-strongest { max-width:none; text-align:left; } .fd5-skills__head,.fd5-panel-head { display:block; } .fd5-panel-head > p { margin-top:.5rem; text-align:left; } .fd5-dashboard-next { grid-template-columns:1fr; } .fd5-dashboard-next__number { width:36px; height:36px; } .fd5-mission { grid-template-columns:1fr; } .fd5-mission__why { grid-template-columns:1fr; } .fd5-mastery-grid,.fd5-challenge-grid { grid-template-columns:1fr; } .fd5-guide__toolbar { align-items:stretch; } .fd5-guide__toolbar fieldset,.fd5-guide__toolbar label,.fd5-guide__toolbar select,.fd5-guide__clear { width:100%; } .fd5-guide__toolbar button { flex:1; } .fd5-guide__clear { margin-left:0; } }
@media (max-width:359px) { .fd5-metrics { grid-template-columns:1fr; } .fd5-identity { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .fd5-skillbar i { transition:none; } }

/* PS-5A release accessibility: light Passport surfaces and this page's
   existing bridge/footer remain legible at WCAG AA contrast. */
.fd5-passport .eyebrow { color:#17613f; }
.fd5-passport .fd5-overline { color:#2f6750; }
.fd5-passport .fd5-passport__privacy { color:#41566c; }
.fd5-passport .fd-stamp__body b,
.fd5-passport .fd-stamp__body b a { color:#17304f; }
.fd5-passport .fd-stamp__body small { color:#465b77; }
.fd5-passport .fd-stamp__state { color:#506176; }
.games-sister-bridge__identity strong span { color:#756100; }
.games-sister-bridge__identity strong b { color:#286e19; }
.social-link.is-disabled { color:#84958e; opacity:1; }
.site-footer__bottom { color:#697f75; }

@media (forced-colors:active) { .fd5-dashboard,.fd5-path,.fd5-guide { background:Canvas; color:CanvasText; } .fd5-identity,.fd5-story,.fd5-skills,.fd5-dashboard-next,.fd5-metrics article,.fd5-mission,.fd5-next-three,.fd5-guide__toolbar,.fd5-guide__lessons .fd-class__world,.fd5-passport__panel,.fd5-mastery-grid li,.fd5-challenge-grid li { color:CanvasText; background:Canvas; border-color:CanvasText; box-shadow:none; } .fd5-dashboard :is(h2,h3,p,span,b,strong,dd,dt),.fd5-path :is(h2,h3,p,span,b,strong,dd,dt),.fd5-guide :is(h2,h3,p,span,b,strong,li),.fd5-mastery-grid :is(b,p,small),.fd5-challenge-grid :is(b,p,small) { color:CanvasText; } .fd5-skillbar { border:1px solid CanvasText; background:Canvas; } .fd5-skillbar i { background:Highlight; } .fd5-passport__tab[aria-selected=true],.fd5-guide__toolbar button[aria-pressed=true],.fd5-mastery-grid li.is-unlocked > span,.fd5-challenge-grid li.is-unlocked > span { color:HighlightText; background:Highlight; border:1px solid HighlightText; } .fd5-mastery-grid li.is-unlocked,.fd5-challenge-grid li.is-unlocked,.fd5-passport .fd-passport__stamps li.is-complete,.fd5-passport .fd-passport__stamps li.is-mastered { outline:2px solid CanvasText; } }
