/* =========================================================
   عمّان خضراء — منصة التوعية البيئية
   ثيم مستوحى من تصاميم «Amman Goes Green»
   ========================================================= */

:root {
    --ink: #30200f;
    --ink-2: #514942;
    --ink-3: #7b8f86;
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-2: #f5f2e9;
    --line: #e6e5d8;
    --sky: #dff1fc;
    --sky-2: #f1f9fe;
    --g-950: #0a2e21;
    --g-900: #0f3d2c;
    --g-800: #135a3d;
    --g-700: #33651b;
    --g-600: #4f7b1f;
    --g-500: #2e9e5e;
    --g-400: #5db65a;
    --g-100: #dcf1e3;
    --g-50: #eef8f1;
    --gold: #ffce30;
    --gold-100: #fff3d6;
    --red: #e0533d;
    --c-waste: #9a8606;
    --p-waste: #eaf6ec;
    --c-recycling: #e0a600;
    --p-recycling: #ebf7ee;
    --c-water: #5799ad;
    --p-water: #e4f3fd;
    --c-climate: #4b812f;
    --p-climate: #eaf2fb;
    --c-desert: #7c0837;
    --p-desert: #fdf0e1;
    --accent: var(--g-600);
    --pastel: var(--g-50);
    --r-xl: 32px;
    --r-lg: 24px;
    --r: 18px;
    --r-sm: 12px;
    --sh-sm: 0 1px 2px rgba(18, 53, 42, .04), 0 10px 26px -14px rgba(18, 53, 42, .16);
    --sh: 0 28px 56px -26px rgba(18, 53, 42, .32);
    --sh-green: 0 16px 30px -14px rgba(23, 114, 69, .6);
    --font-head: "Almarai", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --font-body: "IBM Plex Sans Arabic", "Almarai", system-ui, sans-serif;
    --header-h: 80px;
}

[data-topic="waste"] {
    --accent: var(--c-waste);
    --pastel: var(--p-waste);
}

[data-topic="recycling"] {
    --accent: var(--c-recycling);
    --pastel: var(--p-recycling);
}

[data-topic="water"] {
    --accent: var(--c-water);
    --pastel: var(--p-water);
}

[data-topic="climate"] {
    --accent: var(--c-climate);
    --pastel: var(--p-climate);
}

[data-topic="desert"] {
    --accent: var(--c-desert);
    --pastel: var(--p-desert);
}

*, *::before, *::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.4;
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
    font-size: 1.22rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

strong {
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: 20px;
}

[data-lucide], .lucide {
    width: 1.15em;
    height: 1.15em;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* ---------- Buttons & chips ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: .85em 1.6em;
    border-radius: 18px;
    border: 2px solid transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .2s ease, background .2s, box-shadow .2s, color .2s, border-color .2s;
}

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

    .btn:active {
        transform: translateY(0) scale(.98);
    }

.btn-primary {
    background: linear-gradient(180deg, var(--g-600), var(--g-700));
    color: #fff;
    box-shadow: var(--sh-green);
}

    .btn-primary:hover {
        background: linear-gradient(180deg, var(--g-500), var(--g-600));
    }

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--g-800);
    box-shadow: var(--sh-sm);
}

.btn-ghost {
    border-color: var(--g-700);
    color: var(--g-700);
    background: #fff;
}

    .btn-ghost:hover {
        background: var(--g-50);
    }

.btn-ghost-light {
    border-color: rgba(255,255,255,.7);
    color: #fff;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
}

.btn-sm {
    padding: .55em 1.1em;
    font-size: .9rem;
    border-radius: 14px;
}

.btn[disabled] {
    opacity: .45;
    pointer-events: none;
}

.btn .go {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.18);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .38em .95em;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    font-family: var(--font-head);
    background: var(--g-100);
    color: var(--g-700);
}

.chip-light {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
}

.chip-accent {
    background: var(--pastel);
    color: var(--accent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .92rem;
    color: var(--accent);
    margin-bottom: .7rem;
}

    .eyebrow::before {
        content: "";
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        background: currentColor;
        -webkit-mask: url("../images/ag/vectors/icon_leaf.svg") center / contain no-repeat;
        mask: url("../images/ag/vectors/icon_leaf.svg") center / contain no-repeat;
    }

.tagline {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
    margin: -.2em 0 .9em;
}

    .tagline::before, .tagline::after {
        content: "";
        width: 34px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        opacity: .5;
    }

/* ---------- Leaves & clouds (SVG decorations) ---------- */

.leaf {
    position: absolute;
    width: 90px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 10px 14px rgba(23, 114, 69, .18));
    transform-origin: 50% 95%;
    animation: sway 7s ease-in-out infinite;
}

    .leaf.sm {
        width: 56px;
    }

    .leaf.lg {
        width: 130px;
    }

.cloud {
    position: absolute;
    width: 180px;
    fill: #fff;
    opacity: .9;
    pointer-events: none;
    animation: drift 40s linear infinite alternate;
}

@keyframes sway {
    0%, 100% {
        rotate: 0deg;
    }

    50% {
        rotate: 6deg;
    }
}

@keyframes drift {
    from {
        translate: 0 0;
    }

    to {
        translate: -60px 0;
    }
}

@keyframes bob {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -14px;
    }
}

@keyframes spin-slow {
    to {
        rotate: 360deg;
    }
}


/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--header-h);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(1.5) blur(16px);
    border-bottom: 1px solid rgba(225, 236, 230, .9);
}

.header-inner {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    line-height: 1.1;
    padding-top: 6px;
    justify-self: start;
}

.brand-word {
    position: relative;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--ink);
}

    .brand-word b {
        color: var(--g-600);
        font-weight: 800;
    }

.brand-leaf {
    position: absolute;
    top: -14px;
    inset-inline-start: 4px;
    width: 22px;
    height: 22px;
}

.brand small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    color: var(--g-700);
    font-weight: 600;
    margin-top: 4px;
}

    .brand small::before,
    .brand small::after {
        content: "";
        width: 14px;
        height: 1.5px;
        background: currentColor;
        opacity: .5;
    }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-inline-start: 0;
    justify-self: center;
}

    .main-nav > a,
    .nav-drop-btn {
        display: inline-flex;
        align-items: center;
        gap: .35em;
        padding: .55em .8em;
        border-radius: 12px;
        font-family: var(--font-head);
        font-size: .93rem;
        font-weight: 700;
        color: var(--ink-2);
        background: none;
        border: 0;
        transition: background .2s, color .2s;
    }

        .main-nav > a:hover,
        .nav-drop-btn:hover {
            background: var(--g-50);
            color: var(--g-700);
        }

        .main-nav > a.active,
        .nav-drop.active .nav-drop-btn {
            color: var(--g-700);
            background: var(--g-100);
        }

.nav-drop {
    position: relative;
}

.nav-drop-menu {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-start: 0;
    width: 300px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--sh);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .22s ease;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-drop-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    font-weight: 600;
    font-size: .95rem;
}

    .nav-drop-menu a:hover {
        background: var(--pastel);
    }

.nav-drop-menu img {
    width: 64px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--pastel);
    mix-blend-mode: multiply;
}

.nav-drop-menu small {
    display: block;
    color: var(--ink-3);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    border: 1.5px solid var(--g-700);
    background: #fff;
}

    .lang-pill button {
        border: 0;
        background: none;
        padding: .3em .8em;
        border-radius: 999px;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: .82rem;
        color: var(--g-700);
    }

        .lang-pill button.on {
            background: var(--g-700);
            color: #fff;
        }

.journey-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 14px;
    border-radius: 999px;
    background: var(--gold-100);
    border: 1.5px solid #f6dc9c;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .9rem;
    color: #8a5b00;
}

    .journey-btn img {
        width: 32px;
        height: 32px;
    }

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    place-items: center;
    box-shadow: var(--sh-sm);
}

@media (max-width: 1180px) {
    .lang-pill {
        display: none;
    }
}

@media (max-width: 1080px) {
    .header-inner {
        display: flex;
    }

    .menu-toggle {
        display: grid;
    }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 20px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--sh);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
        justify-self: auto;
        order: 3;
    }

    body.nav-open .main-nav {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .main-nav > a,
    .nav-drop-btn {
        padding: .85em 1em;
        font-size: 1.02rem;
        width: 100%;
    }

    .nav-drop-menu {
        position: static;
        width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 8px 8px;
        display: none;
    }

    .nav-drop.open .nav-drop-menu {
        display: block;
    }

    .header-actions {
        margin-inline-start: auto;
        justify-self: auto;
    }
}

@media (max-width: 420px) {
    .journey-btn span.lbl {
        display: none;
    }
}

/* Bottom app navigation (mobile) */
.bottom-nav {
    display: none;
}

@media (max-width: 860px) {
    body {
        padding-bottom: 84px;
    }

    .bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        z-index: 70;
        inset-inline: 12px;
        bottom: 12px;
        background: rgba(255, 255, 255, .95);
        backdrop-filter: blur(14px);
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: 0 18px 40px -16px rgba(18, 53, 42, .35);
        padding: 6px;
    }

        .bottom-nav a {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 8px 4px 6px;
            border-radius: 18px;
            font-family: var(--font-head);
            font-size: .76rem;
            font-weight: 700;
            color: var(--ink-3);
            position: relative;
        }

            .bottom-nav a.on {
                color: var(--g-700);
                background: var(--g-50);
            }

                .bottom-nav a.on::before {
                    content: "";
                    position: absolute;
                    top: -7px;
                    width: 42px;
                    height: 4px;
                    border-radius: 4px;
                    background: var(--g-600);
                }

        .bottom-nav .ic {
            width: 24px;
            height: 24px;
            background: currentColor;
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
        }
}

/* ---------- Home hero ---------- */

.ag-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #d7eefc 0%, #eaf6fe 42%, #f4faf8 82%, var(--bg) 100%);
    padding: 56px 0 96px;
}

.ag-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ag-hero-text h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

    .ag-hero-text h1 .hl {
        color: var(--g-600);
        position: relative;
        white-space: nowrap;
    }

        .ag-hero-text h1 .hl svg {
            position: absolute;
            top: -.55em;
            inset-inline-end: -.35em;
            width: .7em;
            height: .7em;
        }

.ag-hero-text > p {
    font-size: 1.15rem;
    color: var(--ink-2);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    font-size: .92rem;
    color: var(--ink-2);
}

    .trust-row .avatars {
        display: flex;
    }

        .trust-row .avatars img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 3px solid #fff;
            background: #fff;
            margin-inline-start: -10px;
            box-shadow: var(--sh-sm);
        }

            .trust-row .avatars img:first-child {
                margin-inline-start: 0;
            }

    .trust-row strong {
        font-family: var(--font-head);
    }

.ag-hero-art {
    position: relative;
}

.art-city {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    -webkit-mask-image: radial-gradient(ellipse 52% 56% at 50% 52%, #000 58%, transparent 98%);
    mask-image: radial-gradient(ellipse 52% 56% at 50% 52%, #000 58%, transparent 98%);
}

.ag-hero-art .layer {
    transition: transform .4s ease-out;
}

.float-img {
    position: absolute;
    z-index: 3;
    animation: bob 5s ease-in-out infinite;
    filter: drop-shadow(0 14px 18px rgba(23, 80, 120, .25));
}

    .float-img.drop {
        width: 74px;
        top: 2%;
        inset-inline-start: 6%;
    }

    .float-img.recycle {
        width: 64px;
        bottom: 18%;
        inset-inline-start: -2%;
        animation-delay: -2s;
    }

.float-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    box-shadow: var(--sh);
    backdrop-filter: blur(8px);
    animation: bob 6s ease-in-out infinite;
    white-space: nowrap;
}

    .float-chip img {
        width: 42px;
        height: 42px;
    }

    .float-chip strong {
        display: block;
        font-family: var(--font-head);
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .float-chip span {
        display: block;
        font-size: .78rem;
        color: var(--ink-3);
        line-height: 1.3;
    }

    .float-chip.c1 {
        top: 6%;
        inset-inline-end: 0;
    }

    .float-chip.c2 {
        bottom: 4%;
        inset-inline-end: 12%;
        animation-delay: -3s;
    }

    .float-chip.c3 {
        top: 44%;
        inset-inline-start: -4%;
        animation-delay: -1.5s;
    }

    .float-chip .mini-badges {
        display: flex;
    }

        .float-chip .mini-badges img {
            width: 30px;
            height: 30px;
            margin-inline-start: -6px;
        }

.ag-hero .leaf.l1 {
    top: 30px;
    inset-inline-end: -26px;
    width: 120px;
    rotate: 200deg;
    animation-name: none;
}

.ag-hero .leaf.l2 {
    bottom: 70px;
    inset-inline-start: -30px;
    width: 140px;
    rotate: 30deg;
    animation-name: none;
}

.ag-hero .leaf.l3 {
    top: 180px;
    inset-inline-start: 40%;
    width: 46px;
    rotate: -30deg;
    opacity: .8;
}

.ag-hero .cloud.k1 {
    top: 40px;
    inset-inline-start: 28%;
    width: 200px;
}

.ag-hero .cloud.k2 {
    top: 120px;
    inset-inline-end: 4%;
    width: 140px;
    opacity: .7;
    animation-duration: 55s;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1;
    fill: var(--bg);
}

@media (max-width: 960px) {
    .ag-hero {
        padding: 36px 0 80px;
        text-align: center;
    }

    .ag-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ag-hero-text > p {
        margin-inline: auto;
    }

    .hero-actions, .trust-row {
        justify-content: center;
    }

    .ag-hero-art {
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
        order: -1;
    }

    .float-chip.c3 {
        display: none;
    }

    .ag-hero .leaf.l3 {
        display: none;
    }

    .ag-hero .leaf.l1 {
        width: 70px;
        inset-inline-end: -34px;
        top: 10px;
    }

    .ag-hero .leaf.l2 {
        width: 80px;
        inset-inline-start: -44px;
        bottom: 30px;
    }
}

@media (max-width: 560px) {
    .float-chip {
        padding: 6px 12px 6px 8px;
    }

        .float-chip img {
            width: 32px;
            height: 32px;
        }

        .float-chip strong {
            font-size: .9rem;
        }

    .float-img.drop {
        width: 52px;
    }

    .float-img.recycle {
        width: 46px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }
}

/* ---------- Learn / Try / Test cards ---------- */

.ltt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 3;
    margin-top: -40px;
}

.ltt-card {
    --tone: var(--p-water);
    --tone-ink: var(--c-water);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 22px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fff 0%, var(--tone) 100%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: var(--sh-sm);
    transition: transform .3s, box-shadow .3s;
}

    .ltt-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--sh);
    }

    .ltt-card.green {
        --tone: #e9f6ea;
        --tone-ink: var(--g-600);
    }

    .ltt-card.gold {
        --tone: #fff4de;
        --tone-ink: #c98a12;
    }

    .ltt-card img {
        height: 150px;
        width: auto;
        mix-blend-mode: multiply;
        margin-bottom: 4px;
        transition: transform .4s;
    }

    .ltt-card:hover img {
        transform: scale(1.06) rotate(-2deg);
    }

    .ltt-card h3 {
        font-size: 1.6rem;
        margin: 0 0 4px;
    }

    .ltt-card p {
        margin: 0 0 14px;
        color: var(--ink-2);
        font-size: .98rem;
    }

.go-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--tone-ink, var(--accent));
    box-shadow: var(--sh-sm);
    transition: transform .25s;
}

.ltt-card:hover .go-dot, .t-card:hover .go-dot {
    transform: translateX(-4px);
}

@media (max-width: 760px) {
    .ltt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: -30px;
    }

    .ltt-card {
        padding: 12px 8px 16px;
        border-radius: 22px;
    }

        .ltt-card img {
            width: 100%;
            height: auto;
            max-height: 92px;
            object-fit: contain;
        }

        .ltt-card h3 {
            font-size: 1.15rem;
        }

        .ltt-card p {
            font-size: .8rem;
            line-height: 1.6;
            margin-bottom: 10px;
        }

        .ltt-card .go-dot {
            width: 32px;
            height: 32px;
        }
}

/* ---------- Stats ---------- */

.stats {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--line);
    overflow: hidden;
}

.stat {
    padding: 24px 18px;
    text-align: center;
    position: relative;
}

    .stat + .stat::before {
        content: "";
        position: absolute;
        inset-block: 22px;
        inset-inline-start: 0;
        width: 1px;
        background: var(--line);
    }

    .stat strong {
        display: block;
        font-family: var(--font-head);
        font-size: 2.2rem;
        line-height: 1.15;
        color: var(--g-700);
    }

    .stat span {
        font-size: .92rem;
        color: var(--ink-2);
    }

@media (max-width: 860px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:last-child {
        grid-column: span 2;
    }

    .stat + .stat::before {
        display: none;
    }

    .stat {
        border-top: 1px solid var(--line);
    }

        .stat:nth-child(-n+2) {
            border-top: 0;
        }
}

/* ---------- Sections ---------- */

.section {
    padding-block: 88px;
    position: relative;
}

.section-sm {
    padding-block: 56px;
}

.section-alt {
    background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}

.section-dark {
    background: radial-gradient(circle at 15% 20%, rgba(93, 182, 90, .22), transparent 40%), radial-gradient(circle at 85% 90%, rgba(31, 134, 214, .18), transparent 45%), linear-gradient(160deg, var(--g-800), var(--g-950));
    color: rgba(255,255,255,.82);
}

    .section-dark h2, .section-dark h3, .section-dark strong {
        color: #fff;
    }

    .section-dark .lead {
        color: rgba(255,255,255,.75);
    }

.section-head {
    max-width: 720px;
    margin-bottom: 44px;
}

    .section-head.center {
        margin-inline: auto;
        text-align: center;
    }

        .section-head.center .eyebrow {
            justify-content: center;
        }

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

    .section-head-row .section-head {
        margin-bottom: 0;
    }

.lead {
    font-size: 1.1rem;
    color: var(--ink-2);
}

/* ---------- Topic cards (home) ---------- */

.t-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.t-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: linear-gradient(180deg, #fff 0%, var(--pastel) 70%);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

    .t-card.wide {
        grid-column: span 3;
    }

    .t-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--sh);
        border-color: color-mix(in srgb, var(--accent) 35%, white);
    }

.t-art {
    height: 170px;
    display: grid;
    place-items: center;
    padding: 16px 16px 0;
}

    .t-art img {
        max-height: 150px;
        width: auto;
        mix-blend-mode: multiply;
        transition: transform .5s cubic-bezier(.2,.8,.2,1);
    }

.t-card:hover .t-art img {
    transform: scale(1.08);
}

.t-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px 22px;
}

    .t-foot small {
        display: block;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: .8rem;
        color: var(--accent);
    }

    .t-foot h3 {
        margin: 2px 0 4px;
        font-size: 1.35rem;
    }

    .t-foot p {
        margin: 0;
        font-size: .93rem;
        color: var(--ink-2);
        line-height: 1.7;
    }

.t-card .go-dot {
    --tone-ink: var(--accent);
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
}

@media (max-width: 960px) {
    .t-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t-card, .t-card.wide {
        grid-column: span 1;
    }

        .t-card:first-child {
            grid-column: span 2;
        }
}

@media (max-width: 560px) {
    .t-grid {
        gap: 12px;
    }

    .t-art {
        height: 120px;
        padding: 12px 10px 0;
    }

        .t-art img {
            max-height: 104px;
        }

    .t-foot {
        padding: 10px 14px 16px;
    }

        .t-foot h3 {
            font-size: 1.05rem;
        }

        .t-foot p {
            display: none;
        }

    .t-card .go-dot {
        width: 30px;
        height: 30px;
    }
}

/* ---------- Journey card ---------- */

.journey-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px 32px;
    box-shadow: var(--sh-sm);
}

    .journey-card h3 {
        display: flex;
        align-items: center;
        gap: .5em;
        font-size: 1.4rem;
    }

        .journey-card h3 .lucide {
            color: var(--g-600);
        }

.progress-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

    .progress-row strong {
        font-family: var(--font-head);
        font-size: 1.3rem;
        color: var(--g-700);
        min-width: 56px;
    }

.pbar {
    flex: 1;
    height: 14px;
    background: var(--surface-2);
    border-radius: 99px;
    overflow: hidden;
}

    .pbar span {
        display: block;
        height: 100%;
        width: 0;
        border-radius: 99px;
        background: linear-gradient(to left, var(--g-500), var(--g-700));
        transition: width 1.2s cubic-bezier(.2,.8,.2,1);
    }

.badge-box {
    background: var(--bg);
    border-radius: 22px;
    padding: 16px;
    text-align: center;
}

    .badge-box .lbl {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: .95rem;
        color: var(--ink);
    }

.badge-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

    .badge-row img {
        width: 74px;
        height: auto;
        transition: transform .3s;
    }

        .badge-row img.locked {
            filter: grayscale(1) opacity(.45);
        }

        .badge-row img:hover {
            transform: translateY(-4px) rotate(-4deg);
        }

.journey-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

    .journey-actions .btn {
        padding-block: 1em;
        font-size: 1.05rem;
    }

@media (max-width: 860px) {
    .journey-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .journey-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .badge-row img {
        width: 60px;
    }
}

/* ---------- Feature duo (game + water) ---------- */

.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.duo-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}

    .duo-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--sh);
    }

    .duo-card .art {
        position: relative;
        overflow: hidden;
        aspect-ratio: 775 / 300;
        background: var(--sky-2);
    }

        .duo-card .art img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .8s cubic-bezier(.2,.8,.2,1);
        }

    .duo-card:hover .art img {
        transform: scale(1.05);
    }

    .duo-card .art .chip {
        position: absolute;
        top: 14px;
        inset-inline-start: 14px;
    }

    .duo-card .body {
        padding: 22px 26px 26px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

        .duo-card .body p {
            color: var(--ink-2);
        }

        .duo-card .body .btn {
            align-self: flex-start;
            margin-top: auto;
        }

.duo-bins {
    display: flex;
    gap: 6px;
    margin: -6px 0 14px;
}

    .duo-bins img {
        width: 46px;
        transition: transform .3s;
    }

.duo-card:hover .duo-bins img:nth-child(odd) {
    transform: translateY(-5px);
}

@media (max-width: 860px) {
    .duo {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Journey steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}

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

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px 24px;
    transition: transform .3s, box-shadow .3s;
}

    .step:hover {
        transform: translateY(-4px);
        box-shadow: var(--sh);
    }

    .step::after {
        counter-increment: step;
        content: "0" counter(step);
        position: absolute;
        top: 18px;
        inset-inline-end: 22px;
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 2.3rem;
        color: var(--g-100);
    }

    .step .ico {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        background: var(--g-50);
        color: var(--g-600);
        margin-bottom: 16px;
    }

        .step .ico .lucide {
            width: 26px;
            height: 26px;
        }

    .step p {
        color: var(--ink-2);
        margin: 0;
        font-size: .97rem;
    }

@media (max-width: 960px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .steps.steps-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Split ---------- */

.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

    .split.reverse > :first-child {
        order: 2;
    }

.split-media {
    position: relative;
}

    .split-media img {
        width: 100%;
        aspect-ratio: 4 / 3.4;
        object-fit: cover;
        border-radius: 32px;
        box-shadow: var(--sh);
    }

    .split-media::before {
        content: "";
        position: absolute;
        inset: 22px -22px -22px 22px;
        border-radius: 34px;
        background: var(--g-100);
        z-index: -1;
    }

.split-media {
    isolation: isolate;
}

    .split-media .float-card {
        position: absolute;
        bottom: -24px;
        inset-inline-end: -16px;
        background: #fff;
        color: var(--ink);
        border-radius: 20px;
        padding: 14px 18px;
        box-shadow: var(--sh);
        display: flex;
        align-items: center;
        gap: 14px;
        max-width: 300px;
        animation: bob 6s ease-in-out infinite;
    }

.float-card .ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--g-100);
    color: var(--g-600);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.float-card strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    line-height: 1.35;
}

.float-card small {
    color: var(--ink-3);
    font-size: .84rem;
    line-height: 1.5;
    display: block;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 52px;
    }

        .split.reverse > :first-child {
            order: 0;
        }

    .split-media::before {
        inset: 14px -8px -14px 8px;
    }

    .split-media .float-card {
        inset-inline-end: 10px;
    }
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    display: grid;
    gap: 12px;
}

    .check-list li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

        .check-list li > .lucide {
            width: 28px;
            height: 28px;
            padding: 6px;
            border-radius: 10px;
            background: var(--g-100);
            color: var(--g-600);
            margin-top: 1px;
        }

.section-dark .check-list li > .lucide {
    background: rgba(255,255,255,.1);
    color: #9be0b4;
}

/* ---------- Banner ---------- */

.banner {
    position: relative;
    isolation: isolate;
    border-radius: 34px;
    overflow: hidden;
    padding: 76px 60px;
    color: #fff;
}

    .banner > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -2;
    }

    .banner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(to left, rgba(10, 46, 33, .9), rgba(10, 46, 33, .45) 70%, rgba(10, 46, 33, .15));
    }

    .banner .inner {
        max-width: 560px;
    }

    .banner h2 {
        color: #fff;
    }

    .banner p {
        color: rgba(255,255,255,.88);
        font-size: 1.08rem;
    }

@media (max-width: 700px) {
    .banner {
        padding: 44px 24px;
        border-radius: 26px;
    }
}

/* ---------- Page hero (photo pages) ---------- */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 440px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #d9effc 0%, #edf7fd 55%, var(--bg) 100%);
    color: var(--ink);
}

    .page-hero > img {
        position: absolute;
        z-index: 1;
        top: 44px;
        bottom: 44px;
        inset-inline-end: max(20px, calc((100vw - 1220px) / 2 + 20px));
        width: min(42%, 520px);
        height: calc(100% - 88px);
        object-fit: cover;
        border-radius: 36px;
        box-shadow: var(--sh);
        border: 6px solid #fff;
    }

    .page-hero .container {
        position: relative;
        z-index: 2;
        padding-block: 56px;
    }

        .page-hero .container > * {
            max-width: 54%;
        }

    .page-hero h1 {
        margin: 14px 0 10px;
    }

    .page-hero .lead {
        color: var(--ink-2);
    }

    .page-hero::after {
        content: "";
        position: absolute;
        z-index: 0;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        inset-inline-start: -120px;
        bottom: -160px;
        background: radial-gradient(circle, rgba(93, 182, 90, .22), transparent 70%);
    }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--ink-3);
    margin-bottom: 14px;
}

    .breadcrumb a:hover {
        color: var(--g-700);
        text-decoration: underline;
    }

    .breadcrumb .sep {
        opacity: .5;
    }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 860px) {
    .page-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

        .page-hero > img {
            position: relative;
            inset: auto;
            top: auto;
            bottom: auto;
            width: calc(100% - 40px);
            height: 220px;
            margin: 24px auto 0;
            border-radius: 28px;
        }

        .page-hero .container {
            padding-block: 26px 40px;
        }

            .page-hero .container > * {
                max-width: 100%;
            }
}

/* ---------- Topic hero (illustrated) ---------- */

.topic-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #d9effc 0%, #edf7fd 50%, var(--bg) 100%);
    padding: 34px 0 70px;
}

.topic-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.topic-hero h1 {
    margin: 12px 0 8px;
}

.topic-hero .lead {
    color: var(--ink-2);
    max-width: 560px;
}

.topic-hero-art {
    position: relative;
}

.th-city {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 9%, #000 30%), radial-gradient(ellipse 52% 56% at 50% 50%, #000 56%, transparent 98%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0, transparent 9%, #000 30%), radial-gradient(ellipse 52% 56% at 50% 50%, #000 56%, transparent 98%);
    mask-composite: intersect;
}

.th-card {
    position: absolute;
    z-index: 3;
    bottom: -6%;
    inset-inline-start: 2%;
    width: min(46%, 300px);
    border-radius: 22px;
    background: #fff;
    padding: 8px;
    box-shadow: var(--sh);
    rotate: -4deg;
    animation: bob 6s ease-in-out infinite;
}

    .th-card img {
        width: 100%;
        border-radius: 16px;
    }

.topic-hero .float-img.drop {
    top: 0;
    inset-inline-end: 4%;
    inset-inline-start: auto;
    width: 58px;
}

.topic-hero .leaf.l1 {
    top: 12px;
    inset-inline-start: -20px;
    width: 96px;
    rotate: 30deg;
    animation-name: none;
}

.topic-hero .leaf.l2 {
    bottom: 30px;
    inset-inline-end: -24px;
    width: 110px;
    rotate: 210deg;
    animation-name: none;
}

@media (max-width: 960px) {
    .topic-hero {
        padding: 22px 0 56px;
    }

    .topic-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .topic-hero-art {
        order: -1;
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
    }

    .th-card {
        width: 38%;
        bottom: -10%;
    }
}

/* ---------- Topic article ---------- */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 52px;
    align-items: start;
}

@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

        .content-grid .sidebar {
            position: static;
        }
}

.prose h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    margin-top: 1.5em;
}

    .prose h2:first-child {
        margin-top: 0;
    }

.prose p {
    color: var(--ink-2);
    font-size: 1.06rem;
}

.prose figure {
    margin: 30px 0;
}

    .prose figure img {
        width: 100%;
        border-radius: 26px;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        box-shadow: var(--sh-sm);
    }

.prose figcaption {
    font-size: .88rem;
    color: var(--ink-3);
    margin-top: 10px;
}

.prose ul {
    padding-inline-start: 1.2em;
    color: var(--ink-2);
}

.prose li {
    margin-bottom: .45em;
}

    .prose li::marker {
        color: var(--accent);
    }

.callout {
    display: flex;
    gap: 16px;
    background: var(--pastel);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, white);
    border-radius: 20px;
    padding: 20px 22px;
    margin: 26px 0;
}

    .callout > .lucide {
        color: var(--accent);
        width: 30px;
        height: 30px;
        margin-top: 3px;
        padding: 5px;
        border-radius: 10px;
        background: #fff;
    }

    .callout p {
        margin: 0;
        color: var(--ink);
    }

.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 18px;
}

.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--sh-sm);
}

    .side-card h3 {
        font-size: 1.08rem;
        display: flex;
        align-items: center;
        gap: .5em;
    }

        .side-card h3 .lucide {
            color: var(--accent);
        }

.fact {
    padding: 14px 0;
    border-top: 1px dashed var(--line);
}

    .fact:first-of-type {
        border-top: 0;
        padding-top: 4px;
    }

    .fact strong {
        display: block;
        font-family: var(--font-head);
        font-size: 1.55rem;
        color: var(--accent);
        line-height: 1.3;
    }

    .fact span {
        font-size: .92rem;
        color: var(--ink-2);
        line-height: 1.6;
        display: block;
    }

.toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}

    .toc a {
        display: flex;
        align-items: center;
        gap: .55em;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: .95rem;
        color: var(--ink-2);
    }

        .toc a:hover {
            background: var(--pastel);
            color: var(--accent);
        }

/* ---------- Tips ---------- */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}

    .tip:hover {
        border-color: color-mix(in srgb, var(--accent) 40%, white);
        transform: translateY(-4px);
        box-shadow: var(--sh-sm);
    }

    .tip .ico {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: var(--pastel);
        color: var(--accent);
        margin-bottom: 14px;
    }

        .tip .ico .lucide {
            width: 24px;
            height: 24px;
        }

    .tip h3 {
        font-size: 1.1rem;
    }

    .tip p {
        color: var(--ink-2);
        font-size: .97rem;
        margin: 0;
    }

@media (max-width: 900px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .tips-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Illustrated tip cards (water) */
.tip-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tip-card {
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, var(--tone, var(--p-water)));
    border: 1px solid var(--line);
    text-align: center;
    padding: 14px 18px 22px;
    transition: transform .3s, box-shadow .3s;
}

    .tip-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh);
    }

    .tip-card img {
        margin: 0 auto 6px;
        height: 125px;
        width: auto;
        mix-blend-mode: multiply;
    }

    .tip-card h3 {
        margin: 0 0 4px;
        font-size: 1.15rem;
    }

    .tip-card p {
        margin: 0;
        font-size: .93rem;
        color: var(--ink-2);
    }

    .tip-card.green {
        --tone: #e8f6ea;
    }

    .tip-card.gold {
        --tone: #fff1dc;
    }

@media (max-width: 760px) {
    .tip-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* "What will you learn" pills (water) */
.learn-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--sh-sm);
}

.learn-box-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

    .learn-box-head img {
        width: 56px;
        height: 56px;
    }

    .learn-box-head h2 {
        margin: 0;
        font-size: 1.6rem;
    }

    .learn-box-head p {
        margin: 0;
        color: var(--ink-3);
        font-size: .95rem;
    }

.learn-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.learn-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 20px;
    background: var(--tone, var(--p-water));
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    transition: transform .2s;
}

    .learn-pill:hover {
        transform: translateX(-4px);
    }

    .learn-pill img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .learn-pill .lucide {
        margin-inline-start: auto;
        color: var(--ink-3);
    }

    .learn-pill.gold {
        --tone: #fff1dc;
    }

    .learn-pill.green {
        --tone: #e8f6ea;
    }

@media (max-width: 640px) {
    .learn-pills {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Myth or fact */
.myths {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.myth {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: start;
    transition: border-color .3s;
}

    .myth > img {
        width: 64px;
        height: 64px;
    }

    .myth q {
        display: block;
        font-family: var(--font-head);
        font-weight: 700;
        color: var(--ink);
        font-size: 1.05rem;
        quotes: "«" "»";
        margin-bottom: 12px;
    }

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

    .myth-actions button {
        flex: 1;
        padding: .55em .8em;
        border-radius: 14px;
        border: 1.5px solid var(--line);
        background: #fff;
        font-family: var(--font-head);
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .4em;
        transition: .2s;
    }

        .myth-actions button.t:hover {
            border-color: var(--g-500);
            color: var(--g-600);
        }

        .myth-actions button.f:hover {
            border-color: var(--red);
            color: var(--red);
        }

.myth .verdict {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: .94rem;
    animation: fadeUp .35s ease;
}

.myth.answered .myth-actions {
    display: none;
}

.myth.answered .verdict {
    display: block;
}

.myth.ok {
    border-color: var(--g-500);
}

    .myth.ok .verdict {
        background: var(--g-50);
        color: var(--g-800);
    }

.myth.no {
    border-color: #f0b4a8;
}

    .myth.no .verdict {
        background: #fdf0ec;
        color: #8a3214;
    }

.verdict b {
    font-family: var(--font-head);
}

@media (max-width: 760px) {
    .myths {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Compare ---------- */

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.compare-col {
    background: #fff;
    border-radius: 26px;
    border: 1px solid var(--line);
    padding: 28px;
    box-shadow: var(--sh-sm);
}

    .compare-col h3 {
        display: flex;
        align-items: center;
        gap: .5em;
    }

    .compare-col.bad h3 {
        color: #b4462a;
    }

    .compare-col.good h3 {
        color: var(--g-600);
    }

    .compare-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 12px;
    }

    .compare-col li {
        position: relative;
        padding-inline-start: 30px;
        color: var(--ink-2);
    }

        .compare-col li .lucide {
            position: absolute;
            inset-inline-start: 0;
            top: 6px;
        }

    .compare-col.bad li .lucide {
        color: #b4462a;
    }

    .compare-col.good li .lucide {
        color: var(--g-500);
    }

@media (max-width: 760px) {
    .compare {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Materials ---------- */

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

.material {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .material .ico {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        color: #fff;
        background: var(--m, var(--accent));
    }

    .material h3 {
        margin: 4px 0 0;
        font-size: 1.12rem;
    }

    .material .years {
        font-family: var(--font-head);
        font-weight: 800;
        color: var(--m, var(--accent));
        font-size: 1.05rem;
    }

    .material p {
        margin: 0;
        color: var(--ink-2);
        font-size: .94rem;
    }

@media (max-width: 960px) {
    .materials {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .materials {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Media cards ---------- */

.media-pair {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 22px;
}

@media (max-width: 900px) {
    .media-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

.video-card {
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-sm);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--g-900);
}

    .video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .9;
        transition: transform .6s, opacity .3s;
    }

.video-card:hover .video-thumb img {
    transform: scale(1.04);
    opacity: .75;
}

.play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.96);
    color: var(--accent);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 10px rgba(255,255,255,.25);
    transition: transform .25s, box-shadow .25s;
}

    .play-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 0 0 16px rgba(255,255,255,.2);
    }

    .play-btn .lucide {
        width: 30px;
        height: 30px;
        fill: currentColor;
        transform: translateX(2px);
    }

.video-thumb .badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 700;
    padding: .3em .85em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .4em;
}

.video-body {
    padding: 22px 24px 26px;
    flex: 1;
}

    .video-body p {
        color: var(--ink-2);
        font-size: .97rem;
        margin-bottom: .6em;
    }

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .86rem;
    color: var(--ink-3);
}

    .video-meta span {
        display: inline-flex;
        align-items: center;
        gap: .35em;
    }

.exp-card {
    position: relative;
    isolation: isolate;
    border-radius: 26px;
    overflow: hidden;
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
}

    .exp-card > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -2;
        transition: transform .7s;
    }

    .exp-card:hover > img {
        transform: scale(1.05);
    }

    .exp-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(to top, rgba(10,46,33,.92), rgba(10,46,33,.35) 60%, rgba(10,46,33,.1));
    }

    .exp-card h3 {
        color: #fff;
    }

    .exp-card p {
        color: rgba(255,255,255,.86);
        font-size: .97rem;
    }

.exp-type {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .8rem;
    padding: .38em .9em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    margin-bottom: 12px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

    .video-grid .video-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

        .video-grid .video-card:first-child .video-thumb {
            aspect-ratio: auto;
            flex: 1;
            min-height: 340px;
        }

@media (max-width: 960px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

        .video-grid .video-card:first-child {
            grid-column: span 2;
            grid-row: auto;
        }
}

@media (max-width: 620px) {
    .video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

        .video-grid .video-card:first-child {
            grid-column: auto;
        }
}

.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.process-step {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 20px 18px;
}

    .process-step .n {
        font-family: var(--font-head);
        color: #9be0b4;
        font-weight: 800;
        font-size: .9rem;
    }

    .process-step strong {
        display: block;
        font-family: var(--font-head);
        margin: 6px 0 2px;
        font-size: 1.02rem;
    }

    .process-step .lucide {
        color: #9be0b4;
        width: 26px;
        height: 26px;
        margin-bottom: 8px;
    }

.exp-list {
    display: grid;
    gap: 28px;
}

.exp-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--sh-sm);
}

    .exp-row:nth-child(even) .exp-media {
        order: 2;
    }

.exp-media {
    position: relative;
    min-height: 360px;
}

    .exp-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .exp-media .exp-type {
        position: absolute;
        top: 20px;
        inset-inline-start: 20px;
        margin: 0;
        box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
    }

.exp-info {
    padding: 40px 44px;
}

    .exp-info .topic-label {
        display: inline-flex;
        align-items: center;
        gap: .4em;
        font-size: .88rem;
        font-weight: 700;
        color: var(--accent);
        margin-bottom: 8px;
        font-family: var(--font-head);
    }

    .exp-info h3 {
        font-size: 1.6rem;
    }

    .exp-info > p {
        color: var(--ink-2);
    }

.exp-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--ink-2);
}

    .exp-specs span {
        display: inline-flex;
        align-items: center;
        gap: .4em;
    }

    .exp-specs .lucide {
        color: var(--accent);
    }

@media (max-width: 860px) {
    .exp-row {
        grid-template-columns: minmax(0, 1fr);
    }

        .exp-row:nth-child(even) .exp-media {
            order: 0;
        }

    .exp-media {
        min-height: 260px;
    }

    .exp-info {
        padding: 28px 24px;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech {
    border-radius: 26px;
    padding: 30px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
}

    .tech .tag {
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 2.2rem;
        color: #9be0b4;
        line-height: 1;
    }

    .tech h3 {
        margin: 12px 0 8px;
    }

    .tech p {
        color: rgba(255,255,255,.75);
        margin: 0;
        font-size: .97rem;
    }

@media (max-width: 860px) {
    .tech-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Quiz ---------- */




.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--sh-sm);
}

@media (max-width: 600px) {
    .panel {
        padding: 22px;
    }
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 26px;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .6em 1.1em;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    transition: .2s;
}

    .choice:hover {
        border-color: var(--accent);
    }

    .choice.selected {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        box-shadow: var(--sh-green);
    }

    .choice .lucide {
        width: 1.05em;
        height: 1.05em;
    }

.quiz-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.quiz-progress {
    height: 10px;
    background: var(--surface-2);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 26px;
}

    .quiz-progress span {
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(to left, var(--g-500), var(--g-700));
        border-radius: 99px;
        transition: width .4s ease;
    }

.quiz-q {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 22px;
}

.options {
    display: grid;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: start;
    padding: 15px 18px;
    border-radius: 18px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 1.02rem;
    transition: border-color .2s, background .2s, transform .15s;
}

    .option:hover:not(:disabled) {
        border-color: var(--g-500);
        background: var(--g-50);
        transform: translateX(-3px);
    }

    .option .key {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: var(--surface-2);
        font-family: var(--font-head);
        font-weight: 800;
        font-size: .9rem;
        color: var(--ink);
    }

    .option:disabled {
        cursor: default;
    }

    .option.correct {
        border-color: var(--g-500);
        background: var(--g-50);
    }

        .option.correct .key {
            background: var(--g-500);
            color: #fff;
        }

    .option.wrong {
        border-color: var(--red);
        background: #fdf0ec;
        animation: shake .4s;
    }

        .option.wrong .key {
            background: var(--red);
            color: #fff;
        }

.feedback {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: .98rem;
    animation: fadeUp .35s ease;
}

    .feedback.ok {
        background: var(--g-50);
        color: var(--g-800);
    }

    .feedback.no {
        background: #fdf0ec;
        color: #8a3214;
    }

    .feedback strong {
        color: inherit;
    }

    .feedback .lucide {
        margin-top: 5px;
    }

.quiz-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.save-row {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 18px auto 6px;
}

.input {
    flex: 1;
    min-width: 0;
    padding: .85em 1.1em;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    font: inherit;
    font-size: 1rem;
    background: #fff;
}

    .input:focus {
        outline: none;
        border-color: var(--g-500);
        box-shadow: 0 0 0 4px var(--g-100);
    }

/* Result screen */
.ag-result {
    position: relative;
    text-align: center;
    overflow: hidden;
}

    .ag-result .res-top {
        position: relative;
        padding: 10px 0 6px;
        background: radial-gradient(ellipse at 50% 40%, var(--sky-2), transparent 70%);
        border-radius: 24px;
    }

.score-ring {
    width: 190px;
    height: 190px;
    margin: 0 auto 6px;
    position: relative;
}

    .score-ring svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .score-ring circle.prog {
        transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1);
    }

    .score-ring .val {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        align-content: center;
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 2.6rem;
        color: var(--ink);
        line-height: 1;
        direction: ltr;
    }

        .score-ring .val img {
            width: 46px;
            height: 46px;
            margin: 0 auto 4px;
        }

.res-trophy {
    position: absolute;
    width: 120px;
    inset-inline-start: 4%;
    bottom: 0;
    animation: bob 5s ease-in-out infinite;
}

.ag-result h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 8px 0 2px;
}

.res-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    margin: 22px 0 16px;
}

    .res-stats > div {
        padding: 16px 10px;
        position: relative;
    }

        .res-stats > div + div::before {
            content: "";
            position: absolute;
            inset-block: 16px;
            inset-inline-start: 0;
            width: 1px;
            background: var(--line);
        }

    .res-stats img {
        width: 54px;
        height: 54px;
        margin: 0 auto 6px;
    }

    .res-stats strong {
        display: block;
        font-family: var(--font-head);
        font-size: 1.45rem;
        color: var(--ink);
        line-height: 1.2;
    }

    .res-stats span {
        font-size: .85rem;
        color: var(--ink-3);
    }

.res-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

    .res-progress img {
        width: 54px;
        height: 54px;
    }

    .res-progress .t {
        flex: 1;
    }

    .res-progress strong {
        font-family: var(--font-head);
    }

    .res-progress small {
        color: var(--ink-3);
    }

.res-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

    .res-badges .b {
        background: var(--bg);
        border-radius: 18px;
        padding: 8px 6px 10px;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: .85rem;
        color: var(--ink);
    }

        .res-badges .b img {
            width: 100%;
            max-width: 130px;
            margin: 0 auto;
        }

        .res-badges .b.locked img {
            filter: grayscale(1) opacity(.4);
        }

        .res-badges .b.locked {
            color: var(--ink-3);
        }

.res-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.review {
    text-align: start;
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.review-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: .94rem;
}

    .review-item b {
        font-family: var(--font-head);
        color: var(--ink);
        display: block;
        margin-bottom: 4px;
    }

    .review-item .ok {
        color: var(--g-600);
    }

    .review-item .no {
        color: var(--red);
    }

@media (max-width: 560px) {
    .res-trophy {
        width: 80px;
    }

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

    .res-stats img {
        width: 40px;
        height: 40px;
    }
}

.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

    .confetti i {
        position: absolute;
        top: -12px;
        width: 9px;
        height: 14px;
        border-radius: 3px;
        opacity: .9;
        animation: fall 2.6s cubic-bezier(.3,.6,.4,1) forwards;
    }

@keyframes fall {
    to {
        transform: translateY(520px) rotate(540deg);
        opacity: 0;
    }
}

.leaderboard h3 {
    display: flex;
    align-items: center;
    gap: .5em;
}

    .leaderboard h3 img {
        width: 34px;
        height: 34px;
    }

    .leaderboard h3 .lucide {
        color: var(--gold);
    }

.lb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.lb-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
}

    .lb-item:nth-child(odd) {
        background: var(--bg);
    }

    .lb-item.me {
        background: var(--g-100);
        outline: 1.5px solid var(--g-500);
    }

.lb-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .88rem;
    background: var(--surface-2);
    color: var(--ink);
}

.lb-item:nth-child(1) .lb-rank {
    background: linear-gradient(160deg, #ffd96a, #f2b63a);
    color: #5b4300;
}

.lb-item:nth-child(2) .lb-rank {
    background: #d5dde3;
    color: #3d4852;
}

.lb-item:nth-child(3) .lb-rank {
    background: #f0b98e;
    color: #5b2e0e;
}

.lb-name {
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

    .lb-name small {
        display: block;
        font-weight: 400;
        color: var(--ink-3);
        font-size: .8rem;
    }

.lb-score {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--g-700);
}

.note {
    font-size: .82rem;
    color: var(--ink-3);
    margin-top: 12px;
}

.mini-quiz {
    display: grid;
    gap: 18px;
}

.mini-q {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--sh-sm);
}

    .mini-q .quiz-q {
        font-size: 1.12rem;
        margin-bottom: 16px;
    }

    .mini-q .options {
        grid-template-columns: 1fr 1fr;
    }

@media (max-width: 640px) {
    .mini-q .options {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mini-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(150deg, var(--g-700), var(--g-900));
    color: #fff;
    border-radius: 24px;
    padding: 22px 26px;
}

    .mini-summary strong {
        font-family: var(--font-head);
        font-size: 1.15rem;
        color: #fff;
    }

.daily {
    background: linear-gradient(150deg, var(--g-700), var(--g-950));
    color: #fff;
    border-radius: 30px;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

    .daily::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(155, 224, 180, .28), transparent 70%);
        top: -90px;
        inset-inline-end: -80px;
    }

    .daily .quiz-q {
        color: #fff;
        position: relative;
        z-index: 1;
    }

    .daily .options {
        position: relative;
        z-index: 1;
    }

    .daily .option {
        background: rgba(255,255,255,.07);
        border-color: rgba(255,255,255,.18);
        color: #fff;
    }

        .daily .option:hover:not(:disabled) {
            background: rgba(255,255,255,.14);
            border-color: #9be0b4;
        }

        .daily .option .key {
            background: rgba(255,255,255,.14);
            color: #fff;
        }

        .daily .option.correct {
            background: rgba(46, 158, 94, .35);
            border-color: #6fcf97;
        }

        .daily .option.wrong {
            background: rgba(224, 83, 61, .3);
            border-color: #e98a6b;
        }

    .daily .feedback.ok {
        background: rgba(155, 224, 180, .16);
        color: #d9f5e3;
    }

    .daily .feedback.no {
        background: rgba(233, 138, 107, .16);
        color: #fde3da;
    }

.two-col {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Sorting game: «أنقذ ساحة الحي» ---------- */

.ag-game {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--sh);
}

.game-scene {
    position: relative;
    background: linear-gradient(180deg, #d7eefc 0%, #eef8fe 30%, #f6fbf3 46%);
    padding-top: 26px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.game-title {
    text-align: center;
    position: relative;
    z-index: 2;
}

    .game-title h3 {
        font-size: clamp(1.7rem, 3.4vw, 2.5rem);
        margin: 0;
    }

    .game-title span {
        color: var(--ink-2);
        font-family: var(--font-head);
        font-weight: 700;
    }

.game-park {
    position: relative;
    height: 92px;
    margin-top: -6px;
    overflow: hidden;
}

    .game-park img {
        position: absolute;
        bottom: 0;
        left: 50%;
        translate: -50% 0;
        width: max(100%, 900px);
        max-width: none;
        height: auto;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40%);
        mask-image: linear-gradient(180deg, transparent 0, #000 40%);
    }

.game-hud {
    position: absolute;
    z-index: 4;
    top: 138px;
    left: 50%;
    translate: -50% 0;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--sh);
    padding: 8px 10px;
    gap: 4px;
}

    .game-hud .hud {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 2px 16px;
    }

        .game-hud .hud + .hud {
            border-inline-start: 1px solid var(--line);
        }

    .game-hud img {
        width: 40px;
        height: 40px;
    }

    .game-hud small {
        display: block;
        font-size: .75rem;
        color: var(--ink-3);
        line-height: 1.2;
    }

    .game-hud strong {
        font-family: var(--font-head);
        font-size: 1.35rem;
        line-height: 1.1;
    }

.game-ground {
    position: relative;
    height: 270px;
    background: radial-gradient(ellipse 120px 10px at 18% 78%, rgba(120, 90, 40, .12), transparent 70%), radial-gradient(ellipse 90px 8px at 70% 30%, rgba(120, 90, 40, .1), transparent 70%), radial-gradient(circle at 8% 40%, #a8a59b 0 5px, transparent 6px), radial-gradient(circle at 92% 62%, #a8a59b 0 7px, transparent 8px), radial-gradient(circle at 46% 86%, #b4b0a6 0 4px, transparent 5px), radial-gradient(circle at 63% 18%, #b4b0a6 0 4px, transparent 5px), linear-gradient(180deg, #9fcf55 0, #b9d86a 18px, #f1d9a2 40px, #ecd096 100%);
    border-radius: 0 0 40% 40% / 0 0 22px 22px;
}

.g-item {
    position: absolute;
    z-index: 3;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    cursor: grab;
    border: 0;
    background: none;
    padding: 0;
    translate: -50% -50%;
    transition: scale .2s, opacity .3s;
    touch-action: none;
}

    .g-item img {
        max-width: 100%;
        max-height: 100%;
        pointer-events: none;
        filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 10px 10px rgba(80, 60, 20, .25));
    }

    .g-item:hover {
        scale: 1.08;
    }

    .g-item.selected {
        scale: 1.14;
        z-index: 6;
    }

        .g-item.selected::after {
            content: "";
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 3px dashed var(--g-600);
            animation: spin-slow 8s linear infinite;
        }

    .g-item.dragging {
        cursor: grabbing;
        z-index: 50;
        transition: none;
        scale: 1.15;
    }

    .g-item.sticker {
        width: 92px;
        height: 92px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 10px 18px -6px rgba(80, 60, 20, .35);
        color: var(--ink);
    }

        .g-item.sticker .lucide {
            width: 42px;
            height: 42px;
            stroke-width: 1.8;
        }

        .g-item.sticker .nm {
            position: absolute;
            bottom: -24px;
            white-space: nowrap;
            font-family: var(--font-head);
            font-size: .78rem;
            font-weight: 700;
            background: #fff;
            padding: 1px 8px;
            border-radius: 99px;
            box-shadow: var(--sh-sm);
        }

    .g-item.gone {
        opacity: 0;
        scale: .2;
        pointer-events: none;
    }

    .g-item.shake {
        animation: wiggle .45s;
    }

@keyframes wiggle {
    25% {
        rotate: -14deg;
    }

    75% {
        rotate: 14deg;
    }
}

.game-bins {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0 22px 22px;
    margin-top: -54px;
    position: relative;
    z-index: 4;
}

.g-bin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 0;
    background: none;
    padding: 0;
    transition: transform .25s;
}

    .g-bin > img {
        width: 82%;
        max-width: 160px;
        margin-bottom: -18px;
        position: relative;
        z-index: 1;
        transition: transform .25s;
        filter: drop-shadow(0 10px 10px rgba(0,0,0,.15));
    }

    .g-bin .lbl {
        width: 100%;
        border-radius: 20px;
        padding: 22px 8px 12px;
        background: var(--tone);
        border: 2px solid transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 1rem;
        color: var(--ink);
        transition: border-color .2s, box-shadow .2s;
    }

        .g-bin .lbl img {
            width: 42px;
            height: 42px;
            object-fit: contain;
            border-radius: 10px;
            mix-blend-mode: multiply;
        }

    .g-bin.paper {
        --tone: #e3f1fd;
        --b: #1f86d6;
    }

    .g-bin.packaging {
        --tone: #fff3d9;
        --b: #e2a51c;
    }

    .g-bin.organic {
        --tone: #e7f6e9;
        --b: #2e9e5e;
    }

    .g-bin.hazard {
        --tone: #fde8e5;
        --b: #e0533d;
    }

    .g-bin:hover > img, .g-bin.target > img {
        transform: translateY(-8px) scale(1.04);
    }

    .g-bin.target .lbl, .ag-game.has-selection .g-bin:hover .lbl {
        border-color: var(--b);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--b) 18%, transparent);
    }

    .g-bin.gulp > img {
        animation: gulp .5s ease;
    }

    .g-bin.nope {
        animation: shake .4s;
    }

@keyframes gulp {
    0% {
        transform: none;
    }

    30% {
        transform: scale(1.15, .9);
    }

    60% {
        transform: scale(.95, 1.08);
    }

    100% {
        transform: none;
    }
}

.game-panel {
    padding: 6px 22px 24px;
}

.game-msg {
    min-height: 64px;
}

    .game-msg .feedback {
        margin-top: 0;
    }

.game-win {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, var(--g-50), #fff);
    border: 1.5px solid var(--g-100);
    border-radius: 22px;
    padding: 14px 20px;
    animation: pop .5s ease;
}

    .game-win img {
        width: 60px;
        height: 60px;
    }

    .game-win strong {
        font-family: var(--font-head);
        font-size: 1.3rem;
        color: var(--ink);
    }

.howto {
    margin-top: 16px;
    background: var(--bg);
    border-radius: 24px;
    padding: 18px;
}

    .howto h4 {
        display: flex;
        align-items: center;
        gap: .5em;
        margin: 0 0 12px;
        font-size: 1.15rem;
    }

        .howto h4 .lucide {
            color: var(--gold);
        }

.howto-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

    .howto-steps div {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        border-radius: 16px;
        padding: 12px 14px;
        font-size: .93rem;
        font-weight: 600;
        color: var(--ink);
    }

    .howto-steps .n {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #fff;
        font-family: var(--font-head);
        font-size: .85rem;
        flex-shrink: 0;
    }

    .howto-steps .lucide {
        margin-inline-start: auto;
        width: 26px;
        height: 26px;
        color: var(--ink-3);
    }

.game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.game-note {
    font-size: .8rem;
    color: var(--ink-3);
    text-align: center;
    margin: 12px 0 0;
}

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

    .g-item {
        width: 78px;
        height: 78px;
    }

        .g-item.sticker {
            width: 66px;
            height: 66px;
        }

            .g-item.sticker .lucide {
                width: 30px;
                height: 30px;
            }

    .game-bins {
        gap: 8px;
        padding: 0 10px 16px;
        margin-top: -40px;
    }

    .g-bin .lbl {
        font-size: .78rem;
        padding: 18px 4px 8px;
        border-radius: 16px;
    }

        .g-bin .lbl img {
            width: 30px;
            height: 30px;
        }

    .game-hud {
        top: 120px;
        padding: 6px;
    }

        .game-hud .hud {
            padding: 2px 10px;
        }

        .game-hud img {
            width: 32px;
            height: 32px;
        }

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

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

/* ---------- Water calculator ---------- */

.calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 860px) {
    .calc {
        grid-template-columns: minmax(0, 1fr);
    }
}

.field {
    margin-bottom: 20px;
}

    .field label {
        display: flex;
        justify-content: space-between;
        font-weight: 700;
        margin-bottom: 8px;
        font-size: .97rem;
        color: var(--ink);
    }

        .field label output {
            font-family: var(--font-head);
            color: var(--accent);
        }

input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.seg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .seg button {
        flex: 1;
        min-width: 110px;
        padding: .6em .8em;
        border-radius: 14px;
        border: 1.5px solid var(--line);
        background: #fff;
        font-size: .92rem;
        font-weight: 600;
    }

        .seg button.on {
            border-color: var(--accent);
            background: var(--pastel);
            color: var(--accent);
            font-weight: 800;
        }

.calc-out {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1f86d6, #0d4f86);
    color: #fff;
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .calc-out::after {
        content: "";
        position: absolute;
        width: 150px;
        height: 220px;
        inset-inline-end: -30px;
        bottom: -40px;
        background: url("../images/ag/decoration/water_drop_main.png") center / contain no-repeat;
        opacity: .35;
    }

.calc-big {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

    .calc-big small {
        font-size: 1rem;
        font-weight: 500;
        opacity: .75;
    }

.bar-row {
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 1;
}

    .bar-row .lbl {
        display: flex;
        justify-content: space-between;
        font-size: .92rem;
        opacity: .92;
    }

.bar {
    height: 14px;
    background: rgba(255,255,255,.15);
    border-radius: 99px;
    overflow: hidden;
}

    .bar span {
        display: block;
        height: 100%;
        border-radius: 99px;
        transition: width .4s ease;
    }

.save-box {
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 16px 18px;
    font-size: .97rem;
    position: relative;
    z-index: 1;
}

    .save-box strong {
        color: #bfe6ff;
        font-family: var(--font-head);
        font-size: 1.15rem;
    }

/* ---------- Virtual tour ---------- */

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

@media (max-width: 1060px) {
    .tour {
        grid-template-columns: minmax(0, 1fr);
    }
}

.stage {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: 28px;
    overflow: hidden;
    background: var(--g-950);
    box-shadow: var(--sh);
}

    .stage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity .5s ease, transform 6s ease;
    }

    .stage.loading img {
        opacity: 0;
    }

    .stage:hover img {
        transform: scale(1.03);
    }

.stage-title {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    padding: .45em 1em;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .45em;
    box-shadow: var(--sh-sm);
}

    .stage-title .lucide {
        color: var(--accent);
    }

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.4);
    z-index: 2;
}

    .hotspot::before {
        content: "";
        position: absolute;
        inset: -9px;
        border-radius: 50%;
        border: 2px solid #fff;
        animation: ping 2s ease-out infinite;
    }

    .hotspot.seen {
        background: #fff;
        color: var(--accent);
    }

        .hotspot.seen::before {
            animation: none;
            opacity: 0;
        }

    .hotspot .lucide {
        width: 18px;
        height: 18px;
    }

    .hotspot:hover {
        transform: translate(-50%, -50%) scale(1.12);
    }

.hs-pop {
    position: absolute;
    z-index: 3;
    width: min(320px, 80%);
    background: #fff;
    color: var(--ink);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: var(--sh);
    animation: fadeUp .25s ease;
}

    .hs-pop h4 {
        font-size: 1.05rem;
        margin-bottom: .35em;
        color: var(--accent);
    }

    .hs-pop p {
        font-size: .94rem;
        color: var(--ink-2);
        margin: 0;
        line-height: 1.75;
    }

    .hs-pop .close {
        position: absolute;
        top: 10px;
        inset-inline-end: 10px;
        border: 0;
        background: var(--bg);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: grid;
        place-items: center;
    }

    .hs-pop.below {
        position: relative;
        width: auto;
        margin-top: 12px;
        border: 1px solid var(--line);
        box-shadow: var(--sh-sm);
    }

.stage-hint {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 16px;
    color: #fff;
    font-size: .85rem;
    background: rgba(10,46,33,.6);
    padding: .35em .9em;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: .4em;
}

.stations {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.station-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: #fff;
    text-align: start;
    font-family: var(--font-head);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
    transition: .2s;
}

    .station-btn .n {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: var(--pastel);
        color: var(--accent);
    }

    .station-btn.active {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, white);
    }

    .station-btn.done .n {
        background: var(--accent);
        color: #fff;
    }

@media (max-width: 760px) {
    .stations {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }

    .station-btn {
        justify-content: center;
        padding: 10px 4px;
    }

        .station-btn span.t {
            display: none;
        }
}

@media (max-width: 600px) {
    .stage {
        border-radius: 20px;
    }

    .stage-hint {
        display: none;
    }

    .stage-title {
        font-size: .78rem;
        top: 10px;
        inset-inline-start: 10px;
    }

    .hotspot {
        width: 34px;
        height: 34px;
    }
}

.tour-side .panel {
    padding: 26px;
}

.tour-side h2 {
    font-size: 1.5rem;
}

.found-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 8px;
}

    .found-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: .95rem;
        color: var(--ink-3);
    }

        .found-list li .lucide {
            color: var(--line);
        }

        .found-list li.on {
            color: var(--ink);
            font-weight: 700;
        }

            .found-list li.on .lucide {
                color: var(--g-500);
            }

.tour-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--ink-2);
    margin-bottom: 18px;
}

    .tour-progress .quiz-progress {
        flex: 1;
        margin: 0;
    }

.tour-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

/* ---------- Journey page ---------- */

.j-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #d9effc 0%, #edf7fd 55%, var(--bg) 100%);
    padding: 40px 0 60px;
}

.j-profile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    padding: 26px 30px;
    box-shadow: var(--sh);
    position: relative;
    z-index: 2;
}

.j-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

    .j-avatar svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .j-avatar img {
        position: absolute;
        inset: 16px;
        width: calc(100% - 32px);
        height: calc(100% - 32px);
    }

.j-profile h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 4px;
}

.j-level {
    display: inline-flex;
    align-items: center;
    gap: .4em;
}

.j-points {
    text-align: center;
    background: var(--gold-100);
    border-radius: 24px;
    padding: 14px 22px;
}

    .j-points img {
        width: 54px;
        height: 54px;
        margin: 0 auto;
    }

    .j-points strong {
        display: block;
        font-family: var(--font-head);
        font-size: 2rem;
        color: #8a5b00;
        line-height: 1.1;
    }

    .j-points span {
        font-size: .85rem;
        color: #8a5b00;
    }

.j-next {
    margin-top: 12px;
}

    .j-next small {
        color: var(--ink-3);
    }

@media (max-width: 760px) {
    .j-profile {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        justify-items: center;
        padding: 22px;
    }
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.badge-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 16px 18px 22px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
    position: relative;
}

    .badge-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh);
    }

    .badge-card img {
        height: 130px;
        width: auto;
        margin: 0 auto 6px;
    }

    .badge-card h3 {
        margin: 0 0 4px;
        font-size: 1.15rem;
    }

    .badge-card p {
        margin: 0;
        font-size: .9rem;
        color: var(--ink-3);
    }

    .badge-card.locked img {
        filter: grayscale(1) opacity(.38);
    }

    .badge-card .state {
        position: absolute;
        top: 14px;
        inset-inline-start: 14px;
    }

    .badge-card.earned {
        border-color: var(--g-100);
        background: linear-gradient(180deg, #fff, var(--g-50));
    }

@media (max-width: 860px) {
    .badge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .badge-card img {
        height: 96px;
    }
}

.j-topics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.j-topic {
    background: linear-gradient(180deg, #fff, var(--pastel));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    position: relative;
}

    .j-topic img {
        height: 70px;
        width: auto;
        margin: 0 auto 6px;
        mix-blend-mode: multiply;
    }

    .j-topic .st {
        position: absolute;
        top: 8px;
        inset-inline-start: 8px;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--surface-2);
        color: var(--ink-3);
    }

    .j-topic.done .st {
        background: var(--g-500);
        color: #fff;
    }

    .j-topic .st .lucide {
        width: 15px;
        height: 15px;
    }

@media (max-width: 860px) {
    .j-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.j-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.j-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

    .j-stat img {
        width: 48px;
        height: 48px;
    }

    .j-stat strong {
        display: block;
        font-family: var(--font-head);
        font-size: 1.5rem;
        color: var(--ink);
        line-height: 1.2;
    }

    .j-stat span {
        font-size: .85rem;
        color: var(--ink-3);
    }

@media (max-width: 860px) {
    .j-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- About page ---------- */

.about-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

@media (max-width: 960px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }

        .about-layout .sidebar {
            position: static;
        }
}

.about-block {
    padding-bottom: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--line);
}

    .about-block:last-child {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.goal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.goal {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
}

    .goal .n {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 12px;
        background: var(--g-100);
        color: var(--g-700);
        font-family: var(--font-head);
        font-weight: 800;
        display: grid;
        place-items: center;
    }

    .goal p {
        margin: 0;
        color: var(--ink-2);
        font-size: .98rem;
    }

@media (max-width: 700px) {
    .goal-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.comp {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
}

    .comp .ico {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: linear-gradient(160deg, var(--g-600), var(--g-800));
        color: #fff;
        margin-bottom: 14px;
    }

    .comp > p {
        color: var(--ink-2);
        font-size: .96rem;
    }

    .comp ul {
        padding-inline-start: 1.1em;
        margin: 0;
        color: var(--ink-2);
        font-size: .93rem;
    }

    .comp li {
        margin-bottom: .25em;
    }

        .comp li::marker {
            color: var(--g-500);
        }

@media (max-width: 960px) {
    .comp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

    .timeline::before {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 10px;
        inset-inline-start: 23px;
        width: 2px;
        background: linear-gradient(var(--g-500), var(--gold));
    }

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    align-items: start;
}

.tl-dot {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--g-500);
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--g-700);
}

.tl-body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 20px;
}

    .tl-body strong {
        font-family: var(--font-head);
        display: block;
        margin-bottom: 2px;
    }

    .tl-body p {
        margin: 0;
        color: var(--ink-2);
        font-size: .96rem;
    }

.deliv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .deliv-grid li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
        border-bottom: 1px dashed var(--line);
        color: var(--ink-2);
    }

        .deliv-grid li .lucide {
            color: var(--g-500);
            margin-top: 6px;
        }

@media (max-width: 700px) {
    .deliv-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sla {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

    .sla th, .sla td {
        padding: 14px 20px;
        text-align: start;
    }

    .sla th {
        background: var(--g-800);
        color: #fff;
        font-family: var(--font-head);
        font-weight: 700;
    }

    .sla tr + tr td {
        border-top: 1px solid var(--line);
    }

.sev {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-weight: 700;
}

    .sev::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--c);
    }

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .pill-list li {
        padding: .5em 1em;
        border-radius: 14px;
        background: #fff;
        border: 1px solid var(--line);
        font-size: .95rem;
        color: var(--ink-2);
    }

/* ---------- Pager / CTA / devices ---------- */

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

    .pager a {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px 22px;
        border-radius: 24px;
        background: #fff;
        border: 1px solid var(--line);
        transition: border-color .2s, transform .2s, box-shadow .2s;
    }

        .pager a:hover {
            border-color: var(--g-500);
            transform: translateY(-2px);
            box-shadow: var(--sh-sm);
        }

        .pager a.next {
            justify-content: flex-end;
            text-align: end;
        }

        .pager a img {
            width: 84px;
            height: 48px;
            object-fit: contain;
            mix-blend-mode: multiply;
        }

    .pager small {
        display: block;
        color: var(--ink-3);
        font-size: .85rem;
    }

    .pager strong {
        font-family: var(--font-head);
        font-size: 1.15rem;
    }

@media (max-width: 600px) {
    .pager {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, var(--g-600), var(--g-900));
    color: #fff;
    border-radius: 34px;
    padding: 44px 48px;
}

    .cta h2 {
        margin-bottom: .25em;
        color: #fff;
    }

    .cta p {
        margin: 0;
        color: rgba(255,255,255,.82);
    }

    .cta .leaf {
        opacity: .35;
        z-index: -1;
    }

        .cta .leaf.l1 {
            top: -30px;
            inset-inline-start: 38%;
            width: 120px;
            rotate: 160deg;
        }

        .cta .leaf.l2 {
            bottom: -40px;
            inset-inline-start: 6%;
            width: 110px;
            rotate: 20deg;
        }

@media (max-width: 600px) {
    .cta {
        padding: 32px 24px;
    }
}

.device-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 28px;
}

.device {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .6em 1.05em;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
}

    .device .lucide {
        color: var(--g-500);
    }

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, var(--g-800), var(--g-950));
    color: rgba(255,255,255,.75);
    padding: 74px 0 0;
    isolation: isolate;
}

    .site-footer .footer-art {
        position: absolute;
        z-index: -1;
        inset-inline-end: -40px;
        top: -20px;
        width: 420px;
        opacity: .08;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
}

.site-footer .brand {
    align-items: flex-start;
}

.site-footer .brand-word {
    color: #fff;
}

    .site-footer .brand-word b {
        color: #9be0b4;
    }

.site-footer .brand small {
    color: #9be0b4;
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: .95rem;
}

.site-footer a:hover {
    color: #9be0b4;
}

.footer-about {
    font-size: .95rem;
    margin-top: 18px;
    max-width: 360px;
}

.partner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
}

    .partner img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        background: #fff;
        border-radius: 14px;
        padding: 4px;
    }

    .partner .gam {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(155,224,180,.14);
        color: #9be0b4;
    }

    .partner small {
        display: block;
        font-size: .8rem;
        color: rgba(255,255,255,.55);
    }

    .partner strong {
        color: #fff;
        font-size: .95rem;
        font-weight: 700;
        line-height: 1.45;
        display: block;
    }

.footer-bottom {
    margin-top: 56px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: .86rem;
    color: rgba(255,255,255,.5);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 100;
    transform: translate(-50%, 20px);
    background: var(--g-950);
    color: #fff;
    padding: 14px 22px;
    border-radius: 16px;
    box-shadow: var(--sh);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .97rem;
    max-width: calc(100% - 32px);
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
}

    .toast.show {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .toast .lucide {
        color: #9be0b4;
    }

@media (max-width: 860px) {
    .toast {
        bottom: 100px;
    }
}

/* ---------- Motion ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes shake {
    0%, 100% {
        translate: 0 0;
    }

    25% {
        translate: -8px 0;
    }

    75% {
        translate: 8px 0;
    }
}

@keyframes ping {
    0% {
        transform: scale(.7);
        opacity: .9;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   سهولة الاستخدام والتفاعل
   ========================================================= */

/* ---------- «مساعدك» ---------- */
.helper-fab {
    position: fixed;
    z-index: 80;
    bottom: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(160deg, var(--g-500), var(--g-800));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 16px 34px -12px rgba(23, 114, 69, .75);
    transition: transform .25s, box-shadow .25s;
}

    .helper-fab svg {
        width: 30px;
        height: 30px;
        padding: 4px;
        border-radius: 50%;
        background: #fff;
    }

    .helper-fab:hover {
        transform: translateY(-3px) scale(1.03);
    }

    .helper-fab.open {
        transform: scale(.94);
    }

    .helper-fab .dot {
        position: absolute;
        top: 2px;
        right: 6px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--gold);
        border: 2px solid #fff;
        animation: ping-dot 1.6s ease-in-out infinite;
    }

@keyframes ping-dot {
    50% {
        transform: scale(1.35);
    }
}

.helper-panel {
    position: fixed;
    z-index: 81;
    bottom: 86px;
    left: 22px;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 30px 60px -20px rgba(18, 53, 42, .4);
    padding: 16px;
    animation: pop .25s ease;
    transform-origin: bottom left;
}

.hp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

    .hp-head img {
        width: 48px;
        height: 48px;
    }

    .hp-head strong {
        display: block;
        font-family: var(--font-head);
        font-size: 1.08rem;
        color: var(--ink);
        line-height: 1.3;
    }

    .hp-head small {
        color: var(--ink-3);
        font-size: .82rem;
    }

.hp-close {
    margin-inline-start: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
}

.hp-next {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--g-600), var(--g-800));
    color: #fff;
    transition: transform .2s;
}

    .hp-next:hover {
        transform: translateY(-2px);
    }

    .hp-next .ic {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: rgba(255,255,255,.18);
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .hp-next small {
        display: block;
        font-size: .78rem;
        opacity: .8;
    }

    .hp-next strong {
        display: block;
        font-family: var(--font-head);
        color: #fff;
        line-height: 1.35;
    }

    .hp-next div span {
        display: block;
        font-size: .82rem;
        opacity: .85;
        line-height: 1.5;
    }

    .hp-next > .lucide {
        margin-inline-start: auto;
    }

.hp-label {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .88rem;
    color: var(--ink-3);
    margin: 14px 4px 8px;
}

.hp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

    .hp-grid a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 6px;
        border-radius: 16px;
        background: var(--bg);
        font-family: var(--font-head);
        font-weight: 700;
        font-size: .88rem;
        color: var(--ink);
        transition: background .2s, transform .2s;
    }

        .hp-grid a:hover {
            background: var(--g-50);
            transform: translateY(-2px);
        }

        .hp-grid a span {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            color: #fff;
            background: var(--c);
        }

.hp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 700;
    color: var(--ink);
    font-size: .92rem;
}

    .hp-row > span {
        display: inline-flex;
        align-items: center;
        gap: .4em;
    }

.ts {
    display: inline-flex;
    background: var(--bg);
    border-radius: 12px;
    padding: 3px;
}

    .ts button {
        border: 0;
        background: none;
        width: 40px;
        height: 34px;
        border-radius: 10px;
        font-family: var(--font-head);
        font-weight: 800;
        color: var(--ink-2);
    }

        .ts button:hover {
            background: #fff;
        }

        .ts button.on {
            background: var(--g-600);
            color: #fff;
        }

.hp-btns {
    gap: 8px;
}

    .hp-btns button {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .4em;
        padding: .6em;
        border-radius: 14px;
        border: 1.5px solid var(--line);
        background: #fff;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: .85rem;
        color: var(--ink);
    }

        .hp-btns button:hover {
            border-color: var(--g-500);
            color: var(--g-700);
        }

@media (max-width: 860px) {
    .helper-fab {
        bottom: 98px;
        left: 14px;
        padding: 8px;
    }

        .helper-fab span {
            display: none;
        }

        .helper-fab svg {
            width: 34px;
            height: 34px;
        }

    .helper-panel {
        bottom: 156px;
        left: 16px;
    }
}

/* ---------- دليل البداية ---------- */
body.modal-open {
    overflow: hidden;
}

.ag-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(10, 46, 33, .45);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .3s;
}

    .ag-modal.show {
        opacity: 1;
    }

.ag-modal-card {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: linear-gradient(180deg, #e3f3fd 0%, #fff 40%);
    border-radius: 32px;
    padding: 26px 28px 28px;
    text-align: center;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
    transform: translateY(20px) scale(.97);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.ag-modal.show .ag-modal-card {
    transform: none;
}

.wm-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: var(--sh-sm);
    display: grid;
    place-items: center;
    z-index: 2;
}

.wm-art {
    width: 100%;
    max-width: 460px;
    margin: 0 auto 6px;
    -webkit-mask-image: radial-gradient(ellipse 52% 58% at 50% 50%, #000 56%, transparent 98%);
    mask-image: radial-gradient(ellipse 52% 58% at 50% 50%, #000 56%, transparent 98%);
}

.ag-modal h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: .3em;
}

.ag-modal p {
    color: var(--ink-2);
}

.ag-modal .input {
    width: 100%;
    max-width: 380px;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.wm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wm-skip {
    background: none;
    color: var(--ink-3);
    border: 0;
    box-shadow: none;
}

    .wm-skip:hover {
        color: var(--g-700);
    }

.wm-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 14px;
}

.wm-choice {
    --tone: var(--p-water);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 10px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, var(--tone));
    border: 2px solid transparent;
    box-shadow: var(--sh-sm);
    transition: transform .25s, border-color .25s;
}

    .wm-choice:hover, .wm-choice:focus-visible {
        transform: translateY(-6px);
        border-color: var(--g-500);
    }

    .wm-choice.green {
        --tone: #e9f6ea;
    }

    .wm-choice.gold {
        --tone: #fff4de;
    }

    .wm-choice img {
        height: 100px;
        width: auto;
        max-width: 100%;
        mix-blend-mode: multiply;
        object-fit: contain;
    }

    .wm-choice strong {
        font-family: var(--font-head);
        font-size: 1.3rem;
        color: var(--ink);
    }

    .wm-choice span {
        font-size: .85rem;
        color: var(--ink-2);
        line-height: 1.5;
    }

@media (max-width: 520px) {
    .ag-modal-card {
        padding: 22px 16px;
        border-radius: 26px;
    }

    .wm-choices {
        gap: 8px;
    }

    .wm-choice img {
        height: 64px;
    }

    .wm-choice strong {
        font-size: 1.05rem;
    }

    .wm-choice span {
        font-size: .74rem;
    }
}

/* ---------- تبويبات الأقسام وشريط القراءة ---------- */
.section-tabs {
    position: sticky;
    top: var(--header-h);
    z-index: 55;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.tabs-inner {
    display: flex;
    gap: 6px;
    padding-block: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .tabs-inner::-webkit-scrollbar {
        display: none;
    }

.section-tabs a {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    flex-shrink: 0;
    padding: .5em 1em;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink-2);
    background: var(--bg);
    border: 1.5px solid transparent;
    transition: .2s;
}

    .section-tabs a:hover {
        color: var(--accent);
    }

    .section-tabs a.on {
        background: var(--pastel);
        color: var(--accent);
        border-color: color-mix(in srgb, var(--accent) 40%, white);
    }

.read-progress {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    display: flex;
    justify-content: flex-start;
}

    .read-progress i {
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(to left, var(--accent), var(--g-400));
        border-radius: 3px 0 0 3px;
        transition: width .1s linear;
    }

/* ---------- بطاقة الخطوة التالية ---------- */
.next-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    background: linear-gradient(120deg, #fff, var(--pastel));
    border: 1.5px solid color-mix(in srgb, var(--accent) 25%, white);
    border-radius: 28px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--sh-sm);
}

    .next-card img {
        width: 150px;
        height: auto;
        mix-blend-mode: multiply;
    }

    .next-card strong {
        font-family: var(--font-head);
        font-size: 1.3rem;
        color: var(--ink);
        display: block;
    }

    .next-card p {
        margin: 4px 0 0;
        color: var(--ink-2);
    }

.nc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 860px) {
    .next-card {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        justify-items: center;
    }

    .nc-actions {
        width: 100%;
    }
}

/* ---------- شرح المصطلحات ---------- */
.term {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: help;
    border-bottom: 2px dotted var(--accent);
    line-height: inherit;
}

    .term:hover, .term:focus-visible {
        color: var(--accent);
        background: var(--pastel);
        border-radius: 4px;
    }

.term-pop {
    position: fixed;
    z-index: 110;
    width: min(320px, calc(100vw - 24px));
    background: var(--g-950);
    color: rgba(255,255,255,.9);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: var(--sh);
    animation: fadeUp .2s ease;
    font-size: .94rem;
    line-height: 1.75;
}

    .term-pop strong {
        display: flex;
        align-items: center;
        gap: .45em;
        color: #9be0b4;
        font-family: var(--font-head);
        margin-bottom: 4px;
    }

    .term-pop p {
        margin: 0;
    }

/* ---------- «سأفعلها» ---------- */
.tip {
    display: flex;
    flex-direction: column;
}

    .tip p {
        flex: 1;
    }

.pledge {
    align-self: flex-start;
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .45em 1em;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .86rem;
    color: var(--ink-2);
    transition: .2s;
}

    .pledge:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.tip.pledged {
    border-color: color-mix(in srgb, var(--accent) 45%, white);
    background: linear-gradient(180deg, #fff, var(--pastel));
}

    .tip.pledged .pledge {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        animation: pop .35s ease;
    }

/* ---------- بطاقات قابلة للقلب ---------- */
.material.flip {
    padding: 0;
    border: 0;
    background: none;
    perspective: 1000px;
    min-height: 270px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 270px;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
    transform-style: preserve-3d;
}

.flip.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

    .flip-face.front {
        align-items: flex-start;
    }

        .flip-face.front .q {
            color: var(--ink-2);
            margin: 0;
            flex: 1;
        }

.flip-hint {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-size: .85rem;
    font-weight: 700;
    color: var(--m, var(--accent));
    font-family: var(--font-head);
}

.flip-face.back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, color-mix(in srgb, var(--m) 14%, white), #fff);
    border-color: color-mix(in srgb, var(--m) 35%, white);
}

    .flip-face.back .years {
        font-size: 1.6rem;
    }

.material.flip:hover .flip-face {
    box-shadow: var(--sh-sm);
}

.material.flip:focus-visible {
    outline: 3px solid var(--g-500);
    outline-offset: 4px;
    border-radius: 26px;
}

/* ---------- تحدّي البصمة الكربونية ---------- */
.carbon {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--sh-sm);
}

.thermo-card {
    background: linear-gradient(180deg, var(--p-climate), #fff);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

    .thermo-card > img {
        width: 180px;
        mix-blend-mode: multiply;
    }

.thermo-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.thermo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tube {
    position: relative;
    width: 26px;
    height: 170px;
    border-radius: 14px 14px 0 0;
    background: #eef2f4;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
    overflow: hidden;
}

    .tube .fill {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 92%;
        background: #e0533d;
        transition: height .6s cubic-bezier(.2,.8,.2,1), background .6s;
    }

.bulb {
    width: 46px;
    height: 46px;
    margin-top: -6px;
    border-radius: 50%;
    background: #e0533d;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
    transition: background .6s;
}

.thermo-read {
    text-align: start;
}

    .thermo-read small {
        display: block;
        color: var(--ink-3);
        font-weight: 700;
    }

    .thermo-read strong {
        display: block;
        font-family: var(--font-head);
        font-size: 2.6rem;
        line-height: 1.1;
        color: var(--ink);
        direction: ltr;
        text-align: right;
    }

    .thermo-read span {
        display: block;
        font-weight: 700;
        color: var(--accent);
        max-width: 150px;
        line-height: 1.5;
    }

.carbon-count {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--ink-2);
    background: #fff;
    border-radius: 999px;
    padding: .35em 1em;
    box-shadow: var(--sh-sm);
}

.habits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-content: center;
}

.habit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1.5px solid var(--line);
    background: #fff;
    text-align: start;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .2s, background .2s, transform .15s;
}

    .habit:hover {
        border-color: var(--g-500);
        transform: translateY(-2px);
    }

    .habit .hi {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: var(--p-climate);
        color: var(--c-climate);
        flex-shrink: 0;
        transition: .2s;
    }

    .habit .ht {
        flex: 1;
        line-height: 1.5;
        font-size: .95rem;
    }

    .habit .hc {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 2px solid var(--line);
        display: grid;
        place-items: center;
        color: transparent;
        flex-shrink: 0;
        transition: .2s;
    }

        .habit .hc .lucide {
            width: 15px;
            height: 15px;
        }

    .habit.on {
        border-color: var(--g-500);
        background: var(--g-50);
    }

        .habit.on .hi {
            background: var(--g-500);
            color: #fff;
        }

        .habit.on .hc {
            background: var(--g-500);
            border-color: var(--g-500);
            color: #fff;
            animation: pop .3s ease;
        }

@media (max-width: 900px) {
    .carbon {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .tube {
        height: 130px;
    }
}

/* ---------- «أعِد الحياة للأرض» ---------- */
.land-sim {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--sh-sm);
}

.land-scene {
    --h: 15;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    border-radius: 24px;
    background: linear-gradient(180deg, color-mix(in srgb, #bfe3f8 calc(var(--h) * 1%), #f6dfb4) 0%, #f4f9fc 58%);
    transition: background .8s;
}

    .land-scene .sun {
        position: absolute;
        top: 26px;
        right: 30px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: radial-gradient(circle, #ffd76a 50%, rgba(255, 196, 64, .35) 70%, transparent 72%);
        box-shadow: 0 0 60px rgba(255, 190, 60, calc(.9 - var(--h) / 120));
        transition: .8s;
    }

.rain {
    position: absolute;
    inset: 0 0 40% 0;
    pointer-events: none;
}

    .rain i {
        position: absolute;
        top: -20px;
        width: 3px;
        height: 16px;
        border-radius: 3px;
        background: rgba(31, 134, 214, .55);
        animation: drop 1.1s linear infinite;
    }

        .rain i:nth-child(odd) {
            animation-duration: .9s;
        }

        .rain i:nth-child(1) {
            left: 8%;
            animation-delay: -.2s;
        }

        .rain i:nth-child(2) {
            left: 15%;
            animation-delay: -.7s;
        }

        .rain i:nth-child(3) {
            left: 22%;
            animation-delay: -.4s;
        }

        .rain i:nth-child(4) {
            left: 29%;
            animation-delay: -.9s;
        }

        .rain i:nth-child(5) {
            left: 36%;
            animation-delay: -.1s;
        }

        .rain i:nth-child(6) {
            left: 43%;
            animation-delay: -.6s;
        }

        .rain i:nth-child(7) {
            left: 50%;
            animation-delay: -.3s;
        }

        .rain i:nth-child(8) {
            left: 57%;
            animation-delay: -.8s;
        }

        .rain i:nth-child(9) {
            left: 64%;
            animation-delay: -.5s;
        }

        .rain i:nth-child(10) {
            left: 71%;
            animation-delay: -.15s;
        }

        .rain i:nth-child(11) {
            left: 78%;
            animation-delay: -.65s;
        }

        .rain i:nth-child(12) {
            left: 85%;
            animation-delay: -.35s;
        }

        .rain i:nth-child(13) {
            left: 92%;
            animation-delay: -.85s;
        }

        .rain i:nth-child(14) {
            left: 4%;
            animation-delay: -.45s;
        }

@keyframes drop {
    to {
        transform: translateY(260px);
        opacity: .2;
    }
}

.land-ground {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 0;
    height: 58%;
    border-radius: 50% 50% 0 0 / 22% 22% 0 0;
    background: color-mix(in srgb, #78c257 calc(var(--h) * 1%), #e6c48a);
    transition: background .8s;
}

.cracks {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: calc(1 - var(--h) / 55);
    transition: opacity .8s;
    background: linear-gradient(115deg, transparent 47%, rgba(140, 95, 40, .22) 48%, rgba(140, 95, 40, .22) 49%, transparent 50%) 0 0 / 120px 70px, linear-gradient(35deg, transparent 47%, rgba(140, 95, 40, .18) 48%, rgba(140, 95, 40, .18) 49%, transparent 50%) 30px 20px / 90px 80px;
}

.sprout {
    position: absolute;
    width: 38px;
    height: 38px;
    translate: -50% -100%;
    scale: 0;
    transform-origin: 50% 100%;
    transition: scale .5s cubic-bezier(.3, 1.6, .5, 1);
    filter: drop-shadow(0 4px 4px rgba(0,0,0,.15));
}

    .sprout.up {
        scale: 1;
    }

    .sprout:nth-child(3n) {
        width: 50px;
        height: 50px;
    }

.land-status {
    position: absolute;
    top: 18px;
    left: 18px;
    width: min(260px, 70%);
    background: rgba(255,255,255,.92);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: var(--sh-sm);
    backdrop-filter: blur(6px);
}

    .land-status strong {
        font-family: var(--font-head);
        font-size: 1.1rem;
        color: var(--ink);
        display: block;
        margin-bottom: 6px;
    }

    .land-status .pbar {
        height: 10px;
    }

        .land-status .pbar span {
            background: linear-gradient(to left, #78c257, #d9a64e);
        }

    .land-status small {
        display: block;
        color: var(--ink-3);
        margin-top: 4px;
        font-weight: 700;
    }

.land-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.la-group h4 {
    display: flex;
    align-items: center;
    gap: .4em;
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--g-700);
}

.la-group.bad h4 {
    color: #b4462a;
}

.la-group {
    display: grid;
    gap: 8px;
}

.la-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: #fff;
    text-align: start;
    font-weight: 600;
    color: var(--ink);
    transition: .2s;
}

    .la-btn .lucide {
        color: var(--g-600);
    }

    .la-btn span {
        flex: 1;
    }

    .la-btn b {
        font-family: var(--font-head);
        color: var(--g-600);
        direction: ltr;
    }

    .la-btn:hover:not(:disabled) {
        border-color: var(--g-500);
        background: var(--g-50);
        transform: translateX(-3px);
    }

    .la-btn.bad .lucide, .la-btn.bad b {
        color: #c0392b;
    }

    .la-btn.bad:hover {
        border-color: #e98a6b;
        background: #fdf0ec;
    }

    .la-btn.used {
        background: var(--g-50);
        border-color: var(--g-100);
        opacity: .7;
    }

        .la-btn.used b::after {
            content: " ✓";
        }

    .la-btn.nope {
        animation: shake .4s;
    }

.land-msg {
    min-height: 60px;
}

@media (max-width: 900px) {
    .land-sim {
        grid-template-columns: minmax(0, 1fr);
    }

    .land-scene {
        min-height: 300px;
    }
}

/* Greater Amman Municipality-inspired palette and refreshed topic cards */
:root {
    --c-green: #4f8125;
    --p-green: #eff6df;
    --c-air: #7a0734;
    --p-air: #faeaf0;
    --c-energy: #d49b00;
    --p-energy: #fff6d9;
}

[data-topic="green"] {
    --accent: var(--c-green);
    --pastel: var(--p-green);
}

[data-topic="air"] {
    --accent: var(--c-air);
    --pastel: var(--p-air);
}

[data-topic="energy"] {
    --accent: var(--c-energy);
    --pastel: var(--p-energy);
}

.t-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
}

.t-card, .t-card.wide {
    grid-column: span 2;
}

    .t-card:nth-child(4), .t-card:nth-child(5) {
        grid-column: span 3;
    }

    .t-card .t-art {
        height: 195px;
        padding: 0;
        background: #f4f5ee;
        overflow: hidden;
    }

        .t-card .t-art img {
            display: block;
            width: 100%;
            height: 100%;
            max-height: none;
            object-fit: cover;
            mix-blend-mode: normal;
        }

    .t-card .t-foot {
        padding: 18px 22px 24px;
        align-items: flex-end;
        flex: 1;
    }

        .t-card .t-foot h3 {
            font-size: clamp(1.05rem,1.5vw,1.26rem);
        }

        .t-card .t-foot p {
            display: block;
        }

.brand {
    flex-direction: row;
    align-items: center;
    gap: 11px;
}

    .brand .municipal-logo {
        height: 56px;
        width: 56px;
        object-fit: contain;
        flex-shrink: 0;
        background: white;
        border-radius: 12px;
    }

    .brand .brand-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .brand .brand-word {
        font-size: 1.02rem;
    }

        .brand .brand-word b {
            color: #6c7f13;
        }

    .brand small {
        font-size: .66rem;
        text-align: right;
    }

.site-footer .brand .municipal-logo {
    width: 52px;
    height: 52px;
}

.topic-hero .th-card img {
    max-height: 280px;
    object-fit: contain;
}

@media(max-width:960px) {
    .t-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .t-card, .t-card.wide, .t-card:nth-child(4), .t-card:nth-child(5) {
        grid-column: span 1;
    }

        .t-card:first-child {
            grid-column: span 2;
        }
}

@media(max-width:560px) {
    .t-grid {
        grid-template-columns: 1fr;
    }

    .t-card, .t-card.wide, .t-card:first-child, .t-card:nth-child(4), .t-card:nth-child(5) {
        grid-column: span 1;
    }

        .t-card .t-art {
            height: 190px;
        }

        .t-card .t-foot {
            padding: 15px 18px 18px;
        }

            .t-card .t-foot h3 {
                font-size: 1.13rem;
            }

    .brand .municipal-logo {
        height: 44px;
        width: 44px;
    }
}

/* الإضافات التفاعلية لصفحات المحاور — تستخدم ألوان وبطاقات التصميم الأصلي */
.topic-activity-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--pastel);
    color: var(--accent);
    display: grid;
    place-items: center;
}

    .topic-activity-icon .lucide {
        width: 30px;
        height: 30px;
    }

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

.action-tip .action-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 17px;
}

.action-choices button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    min-width: 115px;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: white;
    color: var(--ink);
    font: 700 .9rem var(--font-head);
    cursor: pointer;
    transition: .2s;
}

    .action-choices button:hover:not(:disabled) {
        border-color: var(--accent);
        color: var(--accent);
    }

    .action-choices button:disabled {
        cursor: default;
        opacity: .7;
    }

.action-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--g-50);
    color: var(--g-800);
    font-size: .94rem;
}

.action-incorrect .action-feedback {
    background: #fdf0ec;
    color: #8a3214;
}

.action-correct {
    border-color: var(--g-500);
}

.action-incorrect {
    border-color: #f0b4a8;
}

.action-tip .action-feedback[hidden] {
    display: none;
}

@media(max-width:760px) {
    .action-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
}

    .stats-grid .stat {
        min-width: 0;
        padding: 24px 10px;
        border-top: 0;
    }

        .stats-grid .stat:last-child {
            grid-column: auto;
        }

        .stats-grid .stat strong {
            font-size: clamp(1.4rem, 2.2vw, 2.2rem);
        }

        .stats-grid .stat span {
            font-size: clamp(.75rem, 1vw, .92rem);
        }

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .stats-grid .stat {
            padding: 18px 8px;
        }
}