.classroom-games { --game-ink: #172b34; --game-green: #176b56; max-width: 1240px; margin: 0 auto; padding: 24px 12px 56px; color: var(--game-ink); }
.classroom-games [hidden] { display: none !important; }
.game-hub-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border: 1px solid #dce9e2; border-radius: 28px; background: radial-gradient(ellipse at right top, #dceee3, transparent 65%), #f5f9f3; }
.game-hub-back { display: inline-block; margin-bottom: 26px; color: #52665b; font-size: 13px; font-weight: 700; }
.game-hub-eyebrow { margin: 0 0 10px; font-size: 13px; color: #52665b; }
.game-hub-header h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.06em; line-height: 1.25; }
.game-hub-intro { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: #52665b; }
.game-hub-share { flex-shrink: 0; text-align: center; }
.game-hub-share-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 20px; border-radius: 14px; border: 1px solid var(--game-green); background: var(--game-green); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s; }
.game-hub-share-button:hover { background: #105440; }
.game-hub-share > p { max-width: 260px; margin: 10px auto 0; color: #52665b; font-size: 12px; line-height: 1.6; }
.game-hub-discovery { margin-top: 28px; }
.game-hub-search { display: flex; align-items: center; gap: 12px; max-width: 540px; min-height: 50px; border: 1px solid #d7e0df; border-radius: 14px; padding: 5px 7px 5px 16px; background: #fff; }
.game-hub-search:focus-within { outline: 2px solid var(--game-green); outline-offset: 2px; }
.game-hub-search label { color: #71817b; }
.game-hub-search input[type="search"] { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--game-ink); }
.game-hub-search button { flex-shrink: 0; padding: 9px 14px; border: 0; border-radius: 10px; background: #edf3ef; color: #385b4c; font-size: 13px; font-weight: 700; cursor: pointer; }
.game-hub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.game-hub-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 15px; border: 1px solid #dce3e1; border-radius: 999px; color: #51625e; background: #fff; font-size: 13px; font-weight: 700; }
.game-hub-filter span { color: inherit; opacity: .75; font-size: 11px; }
.game-hub-filter:hover { border-color: #76988a; }
.game-hub-filter.is-active { background: var(--game-ink); color: #fff; border-color: var(--game-ink); }
.game-hub-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 15px; }
.game-hub-results-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.game-hub-results-head p { margin: 0; font-size: 12px; color: #64766e; }
.game-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-hub-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e1e7e4; border-radius: 20px; transition: transform .15s, box-shadow .15s; }
.game-hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px #20362d12; }
.game-hub-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.game-hub-cover { aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; background: #e9eee8; }
.game-hub-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-hub-cover[data-cover-category="traditional"] { background: radial-gradient(circle at 30% 20%, #fff9df, transparent), #ecdfc3; }
.game-hub-cover-emoji { font-size: 64px; }
.game-hub-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 20px; }
.game-hub-category-label { padding: 4px 8px; background: #eef4ef; border-radius: 6px; color: #477359; font-size: 10px; font-weight: 800; }
.game-hub-card h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.4; font-weight: 800; letter-spacing: -.04em; }
.game-hub-card-body > p { margin: 0 0 20px; color: #5f706a; font-size: 13px; line-height: 1.7; }
.game-hub-play { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf0ee; color: var(--game-green); font-size: 12px; font-weight: 800; }
.game-hub-play > span { font-size: 18px; line-height: 1; }
.game-hub-empty { padding: 56px 20px; border: 1px dashed #cbd8d0; border-radius: 20px; text-align: center; }
.game-hub-empty > span { font-size: 34px; }
.game-hub-empty h3 { margin: 14px 0 8px; font-weight: 800; }
.game-hub-empty p { margin-bottom: 20px; font-size: 14px; color: #64766e; }
.game-hub-empty a { text-decoration: underline; text-underline-offset: 4px; color: var(--game-green); font-weight: 700; }
.game-hub-tip { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 18px 22px; border-radius: 16px; background: #f0f4f2; color: #53695e; }
.game-hub-tip > i { font-size: 24px; }
.game-hub-tip p { margin: 0; font-size: 12px; line-height: 1.8; }
.game-hub-tip strong { color: #324e40; margin-right: 8px; }
.classroom-games a:focus-visible, .classroom-games button:focus-visible { outline: 3px solid #269575; outline-offset: 3px; }
@media (min-width: 1400px) { .game-hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .game-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .game-hub-header { gap: 20px; padding: 26px; } }
@media (max-width: 600px) {
    .classroom-games { padding: 12px 0 32px; }
    .game-hub-header { flex-direction: column; align-items: stretch; padding: 22px; border-radius: 20px; gap: 22px; }
    .game-hub-back { margin-bottom: 22px; }
    .game-hub-share { text-align: left; }
    .game-hub-share-button { width: 100%; }
    .game-hub-share > p { max-width: none; text-align: center; }
    .game-hub-filters { gap: 7px; }
    .game-hub-filter { padding: 8px 12px; }
    .game-hub-card { border-radius: 14px; }
    .game-hub-card-body { padding: 12px; }
    .game-hub-card h3 { font-size: 15px; }
    .game-hub-card-body > p { font-size: 12px; }
    .game-hub-tip { align-items: flex-start; padding: 16px; }
}
@media (max-width: 360px) { .game-hub-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .game-hub-card, .game-hub-share-button { transition: none; } .game-hub-card:hover { transform: none; } }
.game-hub-learn{display:block;padding:10px 20px;text-align:center;border-top:1px solid #eee8f4;color:#77618c;font-size:13px;font-weight:700;min-height:44px;box-sizing:border-box}
