* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --bg: #fffcf5;
    --ink: #173b2e;
    --muted: #465748;
    --green: #20513d;
    --line: #e9dec8;
    font: 100%/1.45 system-ui,sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
}

a:focus-visible,button:focus-visible,summary:focus-visible,select:focus-visible {
    outline: 3px solid #22657c;
    outline-offset: 4px;
}

a[href],button,summary {
    cursor: pointer;
}

button {
    font: inherit;
}

.shell {
    width: 100%;
    max-width: 1364px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 40px);
}

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

.head {
    min-height: 81px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.28;
}

.brand img {
    flex: none;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 1.375rem;
}

.brand small {
    color: var(--muted);
    font-size: .8125rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 30px);
}

.nav a,.nav summary {
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--muted);
    padding-block: 9px;
    white-space: nowrap;
}

.nav a[aria-current="page"] {
    color: var(--ink);
    box-shadow: 0 2px var(--green);
}

.mobile-nav {
    display: none;
}

h1,h2 {
    font-family: "Noto Serif",Georgia,serif;
    font-weight: 400;
    margin: 0;
    line-height: 1.18;
}

h1 {
    font-size: clamp(2rem,4.2vw,3.3125rem);
}

.intro {
    padding-block: 30px 27px;
}

.intro p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 1.125rem;
}

.feature-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.feature-stage .hero {
    grid-area: 1 / 1;
    background: var(--feature-bg, #f9df85);
    color: var(--ink);
    text-decoration: none;
}

.feature-stage .hero[inert] {
    visibility: hidden;
}

.feature-stage .hero:not([inert]) {
    animation: feature-in .32s ease-out;
}

@keyframes feature-in {
    from { opacity: .55; }
    to { opacity: 1; }
}

.feature-stage .category-read {
    --feature-bg: #ece2fb;
}

.feature-stage .category-memory {
    --feature-bg: #d3efe5;
}

.feature-stage .category-math {
    --feature-bg: #dce9ff;
}

.feature-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.feature-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.feature-controls button {
    border: 1px solid #c2ceb9;
    border-radius: 9px;
    background: #fffef9;
    color: var(--green);
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
}

.feature-picker {
    flex: 0 1 15rem;
    min-width: 0;
    min-height: 44px;
    padding: 5px 10px;
    border: 1px solid #c2ceb9;
    border-radius: 9px;
    background: #fffef9;
    color: var(--green);
    font: inherit;
    font-size: .875rem;
    text-overflow: ellipsis;
}

.feature-chevron {
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}

.feature-chevron.prev {
    transform: rotate(-135deg);
}

.feature-playback::before {
    content: '';
    width: 10px;
    height: 12px;
    border-inline: 3px solid currentColor;
}

.feature-playback[data-paused]::before {
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-right: 0;
    border-left: 10px solid currentColor;
}

@media (max-width: 280px) {
    .feature-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-picker {
        order: 1;
        flex-basis: 100%;
    }
}

.hero {
    background: #f9df85;
    border-radius: 15px;
    padding: 11px;
    min-height: clamp(250px, 21vw, 296px);
    display: grid;
    grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
    gap: 10px;
    color: #382e16;
}

.hero-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px 17px 19px;
}

.hero-action {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
}

.hero h2 {
    font-size: clamp(1.85rem,3.2vw,2.6875rem);
    margin: 14px 0 14px;
}

.hero p {
    font-size: 1.1875rem;
    max-width: 38ch;
    margin: 0 0 10px;
}

.hero strong {
    font-size: .9375rem;
}

.pill {
    background: #fff1bc;
    color: #654a19;
    font-size: .875rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 20px;
}

.cta {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 20px;
    margin-top: auto;
    flex-shrink: 0;
    background: var(--green);
    border-radius: 8px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.market-art {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 0;
}

.market-art>img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: 55% 50%;
}

.market-art::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: radial-gradient(ellipse 12% 23% at 26% 7%,#fff4a85e,transparent 85%),radial-gradient(ellipse 15% 24% at 50% 7%,#fff4a85e,transparent 85%),radial-gradient(ellipse 12% 22% at 76% 7%,#ffe68b55,transparent 85%);
    opacity: 0;
    pointer-events: none;
    animation: market-light 1.85s ease-in-out both;
}

@keyframes market-light {
    45% {
        opacity: .85;
    }
}

.list {
    position: absolute;
    inset: 19px auto auto 19px;
    z-index: 2;
    width: 181px;
    background: #fff9e6;
    border: 2px solid #e0b97b;
    box-shadow: 2px 3px #503a28;
    border-radius: 8px;
    padding: 7px 10px 10px;
    font-size: .8125rem;
}

.list strong {
    display: block;
    border-bottom: 1px solid #e9d1a3;
    padding-bottom: 5px;
    margin-bottom: 7px;
}

.list span {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.list i {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid #96764d;
    border-radius: 3px;
}

.list i.on {
    background: #d7edc9;
    border-color: #20513d;
}

.list i.on:after {
    content: "";
    width: 6px;
    height: 3px;
    border: solid #20513d;
    border-width: 0 0 2px 2px;
    transform: translateY(-1px) rotate(-45deg);
    animation: check-in .6s .56s both;
}

@keyframes check-in {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0);
    }
}

.library {
    padding-block: 34px 32px;
}

.library h2 {
    font-size: clamp(1.875rem,3.2vw,2.3125rem);
    margin-bottom: 20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.filters button {
    border: 1px solid transparent;
    font-size: .9375rem;
    font-weight: 700;
    background: var(--tone);
    color: var(--chip-ink);
    border-radius: 22px;
    padding: 8px 17px;
    min-height: 43px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.filters button[data-filter="all"] {
    color: white;
}

.filters button[aria-pressed="true"] {
    border-color: currentColor;
}

.filters button[data-filter="all"][aria-pressed="false"] {
    background: #edf2ea;
    color: var(--green);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: clamp(12px, 1.5vw, 21px);
}

.card {
    position: relative;
    border: 1px solid var(--edge);
    border-radius: 14px;
    background: var(--card);
    padding: 9px;
    min-width: 0;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
}

.card-copy {
    padding: 9px 7px 5px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card p {
    font-size: .9375rem;
    color: var(--muted);
    margin: 0 0 6px;
}

.card p.category,.card-foot {
    font-size: .8125rem;
    font-weight: 700;
    color: var(--card-ink);
}

.card h3 {
    font-size: 1.5625rem;
    line-height: 1.2;
    margin: 0 0 4px;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 8px;
    align-items: center;
    margin-top: auto;
}

.card-foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
}

.card-foot a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 14px;
}

@media (hover: hover) {
    .card:hover {
        border-color: var(--card-ink);
    }

    .hero:hover .cta,
    .tool-link:hover .tool-action {
        background: #173f30;
    }
}

@media (max-width: 1050px) {
    .head {
        min-height: 70px;
        gap: 14px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand strong {
        font-size: 1.125rem;
    }

    .intro {
        padding-block: 22px;
    }

    .hero-copy {
        padding: 12px;
    }

    .hero h2 {
        margin-block: 10px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero strong {
        margin-bottom: 10px;
    }
}

@media (max-width: 759px) {
    .head {
        min-height: 60px;
    }

    .nav {
        display: none;
    }

    .mobile-nav {
        flex: none;
        max-width: 45%;
        position: relative;
        display: block;
        z-index: 3;
    }

    .mobile-nav summary {
        border-radius: 8px;
        background: #f0ebde;
        padding: 10px 12px;
        min-height: 44px;
        font-weight: 700;
        list-style: none;
        overflow-wrap: anywhere;
    }

    .mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav[open] nav {
        position: absolute;
        right: 0;
        top: calc(100% + 5px);
        display: grid;
        width: min(236px, calc(100vw - 32px));
        max-height: 75vh;
        overflow-y: auto;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 8px;
    }

    .mobile-nav nav a {
        padding: 9px;
        font-weight: 700;
        min-height: 44px;
    }

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

@media (max-width: 599px) {
    .intro {
        padding-block: 15px 13px;
    }

    .intro h1 {
        font-size: clamp(1.45rem, 6.5vw, 2rem);
    }

    .intro p {
        margin-top: 5px;
        font-size: 1rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 7px;
        gap: 0;
    }

    .market-art {
        grid-row: 1;
        height: clamp(112px, 36vw, 184px);
        border-radius: 10px;
    }

    .list {
        inset: 8px auto auto 8px;
        width: min(120px, calc(100% - 16px));
        padding: 3px 6px;
        font-size: 12px;
    }

    .list strong {
        font-size: inherit;
        padding-bottom: 2px;
        margin-bottom: 4px;
    }

    .list span {
        margin-bottom: 2px;
    }

    .hero-copy {
        min-width: 0;
        overflow-wrap: anywhere;
        padding: 9px 7px 5px;
    }

    .hero-action {
        flex: none;
        flex-flow: row wrap;
        align-items: center;
    }

    .hero-action strong {
        flex: 1 1 8rem;
        min-width: 0;
    }

    .hero-copy .pill {
        display: none;
    }

    .hero h2 {
        margin: 0 0 4px;
        font-size: 1.5rem;
    }

    .hero p {
        margin: 0 0 8px;
        max-width: none;
        line-height: 1.35;
    }

    .hero strong {
        margin: 0;
        font-size: .875rem;
    }

    .cta {
        min-height: 44px;
        margin-top: 0;
        padding-inline: 12px;
    }

    .library {
        padding-top: 16px;
    }

    .library h2 {
        margin-bottom: 9px;
        font-size: 1.5rem;
    }

    .filters {
        gap: 4px 6px;
        margin-bottom: 13px;
    }

    .filters button {
        padding: 5px 9px;
        min-height: 44px;
        font-size: .875rem;
    }

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

    .card-foot strong {
        flex: 1 1 8rem;
        min-width: 0;
    }
}

[hidden] {
    display: none!important;
}

body:has(.content-section:target) .games-container {
    display: none;
}

.game-art {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 10px;
    min-height: 147px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    gap: 9px;
    padding: 11px 8px;
    background: var(--sample);
    color: var(--sample-ink,var(--card-ink));
}

.game-art.feature-art {
    border-radius: 12px;
    justify-content: center;
    background: var(--sample);
    gap: 14px;
}

.feature-art .preview-prompt {
    font-size: clamp(1rem, 2.15vw, 1.9rem);
}

.feature-art .preview-choice {
    width: clamp(42px, 11vw, 142px);
    max-width: min(29%, 142px);
}

.feature-art .preview-pairs .preview-choice {
    max-width: 22%;
}

.feature-art .preview-row .compact {
    width: min(26%, 82px);
    height: auto;
    max-height: 70px;
}

.feature-art .correct {
    border: 2px solid var(--card-ink);
}

.feature-art .correct .mark {
    opacity: 1;
}

@media (max-width: 599px) {
    .game-art.feature-art {
        grid-row: 1;
        min-height: clamp(112px, 36vw, 184px);
        gap: 6px;
        padding-block: 7px;
    }

    .feature-art .preview-choice {
        width: clamp(40px, 17vw, 90px);
    }

    .feature-art .preview-row .compact {
        height: clamp(34px, 12vw, 48px);
    }

    .feature-art .preview-paper {
        padding: 5px 9px;
        font-size: .8125rem;
        line-height: 1.25;
    }
}

.category-math .game-art {
    --sample: #203e71;
    --sample-ink: #fff1b8;
}

.card[data-category="market"] .game-art {
    display: block;
    height: 147px;
    padding: 0;
}

.game-art .shop {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-prompt {
    font-size: 1rem;
    font-weight: 750;
    text-align: center;
    line-height: 1.2;
}

.preview-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(3px, 0.8vw, 10px);
    flex-wrap: wrap;
    width: 100%;
}

.preview-row span {
    display: grid;
    place-items: center;
    min-width: 0;
}

.preview-choice {
    position: relative;
    display: grid;
    width: clamp(48px,19vw,86px);
    max-width: 26%;
    aspect-ratio: 1;
    place-items: center;
    color: var(--card-ink);
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 9px;
    font-size: 1.45rem;
    font-weight: 750;
    overflow: hidden;
}

.preview-choice img {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-choice .mark {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--card-ink);
    color: white;
    font-size: 13px;
    opacity: 0;
}

.preview-choice.missing {
    background: #b5e3d9;
}

.preview-choice.missing img {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: white;
}

.preview-choice.missing b {
    font-size: 2.3rem;
}

.preview-word,.preview-number {
    min-width: 38px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 7px;
    font-weight: 750;
}

.preview-number {
    color: white;
    background: #3c5f98;
    border-color: #7291c1;
    font-size: 1.125rem;
}

.preview-number.question {
    background: #ffdf73;
    color: #213250;
    border-color: #f5c64e;
}

.preview-answers {
    gap: 7px;
    margin-top: -3px;
}

.preview-answers .preview-number {
    font-size: .8125rem;
    padding-block: 3px;
    background: #274a81;
}

.preview-shape {
    display: block;
    width: 37px;
    height: 37px;
    background: var(--shape,#4c6ed4);
}

.preview-shape.circle {
    border-radius: 50%;
}

.preview-shape.triangle {
    clip-path: polygon(50% 0,100% 100%,0 100%);
}

.preview-shape.square {
    border-radius: 4px;
}

.preview-cup {
    display: block;
    width: 47px;
    height: 56px;
    background: #983575;
    clip-path: polygon(14% 0,86% 0,100% 100%,0 100%);
    border-radius: 7px;
}

.preview-cup.has-ball {
    transform: translateY(-9px);
}

.preview-ball {
    position: absolute;
    bottom: 6px;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    background: #da941d;
    border: 1px solid #ab681a;
}

.preview-paper {
    width: min(240px,100%);
    padding: 9px 13px;
    background: white;
    border: 1px solid var(--edge);
    border-radius: 8px;
    text-align: left;
    font-size: .875rem;
    line-height: 1.35;
}

.preview-paper strong {
    display: block;
    margin-bottom: 5px;
}

.preview-choice.odd {
    transform: rotate(-11deg);
}

.preview-digit {
    font-size: 1.6rem;
    white-space: nowrap;
}

.preview-pairs .preview-choice {
    width: min(23%,72px);
}

.preview-row .compact {
    width: min(26%,82px);
    height: 56px;
}

.game-art .tile-emoji {
    font-size: 2rem;
}

.game-art .tile-emoji.covered {
    color: #fff;
    background: var(--card-ink);
}

.category-read {
    --card: #f7f0ff;
    --card-ink: #552886;
    --edge: #b99be8;
    --sample: #e9ddfb;
}

.category-memory {
    --card: #edf9f4;
    --card-ink: #145e53;
    --edge: #78c5b1;
    --sample: #ccf0e7;
}

.category-math {
    --card: #eef5ff;
    --card-ink: #214d92;
    --edge: #7fa8ed;
    --sample: #dce9ff;
}

.category-market {
    --card: #fff7df;
    --card-ink: #654a19;
    --edge: #e4cc8c;
    --sample: #f9df85;
}

.card:focus-within {
    border-color: var(--card-ink);
}

.card.is-playing .correct {
    animation: answer-choice .45s ease-out both;
}

.card.is-playing .correct .mark {
    animation: show-mark .3s .15s both;
}

.card.is-playing .missing img {
    animation: hide-object .45s .4s both;
}

.card.is-playing .question {
    animation: question-glow 1.15s ease-in-out;
}

@keyframes answer-choice {
    to {
        border-color: #7d4fba;
        box-shadow: 0 0 0 2px #7d4fba;
    }
}

@keyframes show-mark {
    to {
        opacity: 1;
    }
}

@keyframes hide-object {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes question-glow {
    50% {
        background: #fff4bf;
        box-shadow: 0 0 0 4px #ffdf7380;
    }
}

.site-tools {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.tool-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 13px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.worksheet-tool {
    background: #e0efe0;
    border: 1px solid #c8dfc9;
}

.tool-copy {
    flex: 1 1 7rem;
    min-width: 0;
}

.tool-copy strong,
.tool-copy small {
    display: block;
}

.tool-copy small {
    color: var(--muted);
    font-size: .875rem;
}

.tool-action {
    padding: 7px 12px;
    border-radius: 7px;
    background: var(--green);
    color: white;
    font-weight: 700;
}

.worksheet-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 37px;
    height: 42px;
    border: 1px solid #a6c0b1;
    border-radius: 6px;
    background: linear-gradient(#71a48d, #71a48d) center 7px / 22px 2px no-repeat, #fffef7;
    box-shadow: 2px 2px #c8dfc9;
    color: var(--green);
    font: 700 11px system-ui, sans-serif;
}

.solar-tool {
    background: #203c60;
    color: #fff;
}

.solar-tool small {
    color: #d4e7f5;
}

.solar-icon {
    flex: none;
    position: relative;
    width: 53px;
    height: 42px;
    display: grid;
    place-items: center;
}

.solar-sun {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #ffdb7d, #ecaa37);
}

.solar-orbit {
    position: absolute;
    width: 46px;
    height: 29px;
    border: 1px solid #718bb1;
    border-radius: 50%;
    --orbit-start: -21deg;
    --orbit-end: 339deg;
    transform: rotate(var(--orbit-start));
}

.solar-icon.is-visible .solar-orbit {
    animation: solar-turn 4s ease-in-out;
}

.solar-orbit.inner {
    width: 32px;
    height: 23px;
    --orbit-start: 21deg;
    --orbit-end: -339deg;
}

.solar-orbit::after {
    content: '';
    position: absolute;
    top: 0;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8dd7ea;
}

.solar-orbit.inner::after {
    top: auto;
    bottom: 0;
    right: auto;
    left: 3px;
    width: 5px;
    height: 5px;
    background: #ecae92;
}

@keyframes solar-turn {
    to { transform: rotate(var(--orbit-end)); }
}

@media (max-width: 599px) {
    .feature-controls {
        margin-top: 8px;
    }

    .site-tools {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        margin-top: 10px;
    }

    .tool-link {
        padding-block: 8px;
    }

    .tool-action {
        display: none;
    }
}

@media (max-width: 280px) {
    .tool-copy {
        flex-basis: 68px;
    }
}

.nav-menu {
    position: relative;
}

.nav-menu[open] nav {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 5;
    display: grid;
    width: max-content;
    max-width: calc(100vw - 36px);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    padding: 10px;
}

.nav-menu nav a {
    padding: 8px 12px;
}

.top details:not([open]) nav {
    display: none;
}

.brand {
    color: inherit;
    text-decoration: none;
}

.mobile-nav summary {
    cursor: pointer;
}

.category-tab,button {
    cursor: pointer;
}

.category-tab[aria-pressed="true"] {
    background: #633d8c;
    color: white;
}

.content-section:target {
    display: block;
}

@media (max-width: 360px) {
    .filters {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr));
    }

    .filters button {
        padding-inline: 5px;
        line-height: 1.15;
    }
}

@media (max-width: 340px) {
    .brand strong {
        font-size: 1.08rem;
    }
    .brand img {
        width: 43px;
    }
    .head {
        gap: 8px;
    }
    .preview-digit {
        font-size: 1.25rem;
    }
}

@media (max-width: 280px) {
    .head {
        gap: 6px;
        padding-block: 6px;
    }

    .brand {
        gap: 6px;
    }

    .brand img {
        width: 31px;
        height: 31px;
    }

    .brand small {
        display: none;
    }

    .mobile-nav summary {
        padding-inline: 8px;
    }

    .hero-action .cta {
        width: 100%;
        justify-content: center;
    }

    .filters {
        display: flex;
    }

    .filters button {
        padding-inline: 7px;
    }

    .card-foot {
        display: block;
    }

    .card-foot a {
        display: flex;
        width: fit-content;
    }

    .game-art {
        padding-inline: 5px;
    }

    .preview-number,
    .preview-arrow {
        font-size: .75rem;
    }

    .preview-word,
    .preview-number {
        max-width: 100%;
        padding-inline: 4px;
        text-align: center;
    }
}

@media(prefers-reduced-motion:reduce) {
    .market-art::before,.list i.on::after,.card.is-playing .game-art *,
    .feature-stage .hero:not([inert]), .solar-orbit {
        animation: none!important;
    }
    .content-section * {
        transition: none!important;
    }
}

.site-footer {
    margin-top: 24px;
    border-top: 1px solid #d8e2d2;
    background: #f0f1e9;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    padding-block: 14px;
    overflow-wrap: anywhere;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
}

.footer-brand img {
    object-fit: contain;
    flex: none;
}

.footer-contact {
    color: var(--green);
    font-size: .875rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

/* Content Sections */

.content-section {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.content-header {
    text-align: center;
    margin-bottom: 32px;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.content-header p {
    color: #6b7280;
    font-size: 1rem;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #9333ea;
}

.content-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h2 .icon {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.content-card p,
        .content-card li {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.content-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.content-card li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.content-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 24px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

@media (min-width: 1024px) {
    .content-header h1 {
        font-size: 2.5rem;
    }
}

/* Materials Section Styles */

.materials-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.category-tab {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-tab.active {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
}

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

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

@media (min-width: 1024px) {
    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.material-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.material-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 2rem;
}

.material-icon.pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.material-icon.ppt {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.material-icon.activity {
    background: linear-gradient(135deg, #10b981, #059669);
}

.material-icon.doc {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.material-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.material-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.material-card .material-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    margin-bottom: 12px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 1rem;
}
