/* Classroom Games: quiet navigation, editorial hero, playful game collections. */
.classroom-games { --game-ink: #282736; --game-green: #6552c7; width: 100%; min-width: 0; padding-top: 18px; }
/* Cream, lavender and sage echo the classroom's clay characters. */
.game-hub-topbar { position: fixed; inset: 0 0 auto; z-index: 160; height: 72px; background: #fffaf3f5; border-bottom: 1px solid #e9dfd4; box-shadow: 0 3px 16px #71533f08; backdrop-filter: blur(18px); }
.game-hub-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 38px; }
.game-hub-product-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: #51405d; font-size: 21px; font-weight: 850; letter-spacing: -.05em; line-height: 1.2; }
.game-hub-product-brand small { display: block; margin-top: 5px; color: #978474; font-size: 10px; font-weight: 600; letter-spacing: -.015em; }
.game-hub-brand-symbol { position: relative; isolation: isolate; display: grid; place-items: center; width: 52px; height: 54px; }
.game-hub-brand-symbol::before { content: ''; position: absolute; z-index: -1; width: 44px; height: 44px; border: 1px solid #eadcf3; border-radius: 17px; background: linear-gradient(145deg, #f9efff, #ebdcf4); transform: rotate(-8deg); box-shadow: inset 0 2px 2px #fff9; }
.game-hub-brand-symbol img { display: block; width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 1px #75588822); transition: transform .25s ease; }
.game-hub-product-brand:hover .game-hub-brand-symbol img { transform: rotate(-7deg) translateY(-2px); }
.game-hub-topbar-links { display: flex; gap: 5px; align-items: center; padding: 5px; border: 1px solid #e9e0d7; border-radius: 18px; background: #f2ece4; box-shadow: inset 0 2px 3px #856b5110, 0 1px 0 #fff; }
.game-hub-topbar-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 35px; padding: 8px 16px; border: 1px solid transparent; border-radius: 13px; color: #76685f; font-size: 12px; font-weight: 750; transition: color .2s, background .2s, box-shadow .2s; }
.game-hub-topbar-links a i { color: #a18abc; font-size: 12px; }
.game-hub-topbar-links a:last-child i { color: #82a58d; }
.game-hub-topbar-links a:hover, .game-hub-topbar-links a:focus-visible { background: #fffaf4; color: #6d5091; border-color: #e9dded; box-shadow: 0 2px 4px #70533e0a; }
.game-hub-topbar-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.game-hub-topbar-manage { display: inline-flex; align-items: center; gap: 7px; color: #735989; font-size: 11px; font-weight: 750; }
.game-hub-topbar-manage i { font-size: 13px; }
.game-hub-topbar-home { display: inline-flex; align-items: center; gap: 7px; color: #8b796c; font-size: 11px; font-weight: 600; }
.game-hub-topbar-home i { color: #ab9580; font-size: 12px; }
.game-hub-topbar-home:hover { color: #6e547f; }
.game-hub-topbar-invite { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 17px; border-radius: 15px; border: 1px solid #c8aad9; background: linear-gradient(180deg, #e5d3f3, #ceb1e3); color: #4f346c; text-shadow: 0 1px 0 #ffffff60; box-shadow: inset 0 1px 1px #ffffff90, 0 3px 0 #b194c8, 0 5px 10px #9271b51b; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.game-hub-topbar-invite:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: inset 0 1px 1px #ffffff70, 0 4px 0 #b194c8, 0 7px 13px #9271b526; }
.game-hub-topbar-invite:active { transform: translateY(2px); box-shadow: inset 0 1px 1px #ffffff70, 0 1px 0 #b194c8; }
.game-hub-topbar-account { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e4d8e9; border-radius: 14px; background: #fbf5ff; color: #9479ac; font-size: 14px; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #e8dfed; }
.game-hub-topbar a:focus-visible, .game-hub-topbar button:focus-visible { outline: 2px solid #8662ac; outline-offset: 4px; }
.game-hub-editorial .game-hub-header { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 20px; min-height: 420px; padding: 42px 48px; overflow: hidden; border: 1px solid #ece8e5; border-radius: 24px; background: linear-gradient(120deg, #fdfcf9, #f6f3f7); color: #282736; box-shadow: none; }
.game-hub-editorial .game-hub-header::before { content: none; }
.game-hub-editorial .game-hub-hero-copy { position: relative; z-index: 1; min-width: 0; max-width: none; }
.game-hub-editorial .game-hub-eyebrow { display: block; margin: 0 0 18px; color: #807087; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.game-hub-editorial .game-hub-header h1 { display: block; margin: 0 0 20px; color: #282736; font-size: clamp(40px, 4.6vw, 60px); font-weight: 850; letter-spacing: -.055em; line-height: 1.18; text-shadow: none; }
.game-hub-editorial .game-hub-header h1 > span { color: #7460c8; }
.game-hub-editorial .game-hub-intro { margin: 0; max-width: 430px; color: #756d80; font-size: 13px; line-height: 1.85; }
.game-hub-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.game-hub-explore-button { display: inline-flex; align-items: center; justify-content: center; gap: 27px; min-height: 46px; padding: 13px 18px; border: 1px solid #6854c7; border-radius: 10px; background: #6854c7; color: #fff; font-size: 13px; font-weight: 750; transition: transform .2s, background .2s; }
.game-hub-explore-button:hover { transform: translateY(-2px); background: #5843b7; }
.game-hub-editorial .game-hub-share { width: auto; max-width: 100%; text-align: left; }
.game-hub-editorial .game-hub-share-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 13px 16px; border: 1px solid #e0d9e7; border-radius: 10px; background: #ffffffc9; color: #746582; box-shadow: none; font-size: 12px; font-weight: 700; transition: border-color .2s, background .2s; }
.game-hub-editorial .game-hub-share-button:hover { background: #fff; border-color: #baaad0; transform: none; box-shadow: none; }
.game-hub-editorial .game-hub-share-button::after { content: none; }
.game-hub-hero-helper { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; color: #807389; font-size: 10px; line-height: 1.6; }
.game-hub-hero-helper > i { color: #b9a7d1; }
.game-hub-hero-visual { position: relative; min-width: 0; height: auto; aspect-ratio: 16 / 9; }
.game-hub-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 20px; transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0); transition: transform .6s ease-out; }
.game-hub-art img { display: block; width: 100%; height: 100%; object-fit: cover; animation: game-world-drift 12s ease-in-out infinite alternate; }
.game-hub-editorial .game-hub-motion { display: inline-flex; align-items: center; gap: 6px; position: absolute; top: auto; right: 20px; bottom: 16px; z-index: 2; padding: 7px 9px; border: 0; background: transparent; color: #a295af; font-size: 10px; cursor: pointer; }
.game-hub-worlds { margin-top: 32px; min-width: 0; }
.game-hub-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.game-hub-section-heading > div > p { margin: 0 0 6px; color: #8c75c1; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.game-hub-section-heading h2 { margin: 0; color: var(--game-ink); font-size: 21px; font-weight: 900; letter-spacing: -.045em; }
.game-hub-section-heading > span { color: #8a84a4; font-size: 11px; }
.game-hub-world-grid { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; padding: 4px 2px 12px; }
.game-hub-world { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; aspect-ratio: auto; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid #e7dfed; box-shadow: 0 4px 12px #19154408; transition: transform .25s, box-shadow .25s; }
.game-hub-world > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .55s cubic-bezier(.2,.6,.2,1); }
.game-hub-world::after { content: none; }
.game-hub-world > div { position: relative; z-index: 1; padding: 13px 14px; background: #fff; color: #493b59; }
.game-hub-world h3 { display: flex; justify-content: space-between; gap: 5px; align-items: center; margin: 0 0 5px; font-size: 15px; font-weight: 800; letter-spacing: -.04em; }
.game-hub-world h3 > span { font-size: 16px; color: #8e72bd; }
.game-hub-world p { margin: 0; font-size: 10px; line-height: 1.6; color: #8b7c97; }
.game-hub-world-count { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 5px 8px; border: 1px solid #ffffffaa; border-radius: 999px; background: #fffef3dc; color: #776184; backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; }
.game-hub-world:hover { transform: translateY(-6px); box-shadow: 0 12px 24px #4e3b8d30; }
.game-hub-world:hover > img { transform: scale(1.09); }
.game-hub-world.is-active { outline: 3px solid #8d6deb; outline-offset: 2px; }
.game-hub-discovery { margin: 18px 0 0; padding: 23px; background: #ffffffd9; border: 1px solid #e8e2f3; border-radius: 22px; box-shadow: 0 4px 20px #29205a05; }
.game-hub-discovery-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.game-hub-discovery-copy { display: flex; align-items: center; gap: 12px; }
.game-hub-discovery-copy > span { color: #9677e8; font-size: 30px; }
.game-hub-discovery-copy h2 { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: -.035em; }
.game-hub-discovery-copy p { margin: 5px 0 0; font-size: 11px; color: #88849b; }
.game-hub-search { width: 43%; max-width: 460px; min-height: 46px; background: #f7f6fc; border-color: #e9e4f2; }
.game-hub-search button { background: #ebe6fb; color: #6951b5; }
.game-hub-search input[type="search"] { font-size: 12px; }
.game-hub-filters { margin-top: 20px; gap: 8px; }
.game-hub-filter { min-height: 38px; padding: 8px 14px; border-color: #e9e4f2; color: #726a8a; font-size: 12px; transition: background .2s, color .2s, transform .2s; }
.game-hub-filter:hover { border-color: #a58add; transform: translateY(-2px); }
.game-hub-filter.is-active { background: #6951dd; border-color: #6951dd; color: #fff; box-shadow: 0 4px 12px #6951dd22; }
.game-hub-results-head { margin-top: 29px; }
.game-hub-results-head h2 { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 900; }
.game-hub-results-head h2 > span { color: #9677e8; }
.game-hub-results-head p { color: #8a809f; }
.game-hub-card { position: relative; border-color: #e6e1f1; border-radius: 20px; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .25s ease, box-shadow .25s, border-color .25s; }
.game-hub-card:hover, .game-hub-card:focus-within { transform: perspective(900px) translateY(-7px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); box-shadow: 0 16px 36px #41316f22; border-color: #b5a0ec; }
.game-hub-card.is-revealed { animation: game-card-in .65s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--reveal-order, 0) * 55ms); }
.game-hub-cover { position: relative; }
.game-hub-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 30%), #fff3, transparent 60%); opacity: 0; transition: opacity .3s; }
.game-hub-card:hover .game-hub-cover::after { opacity: 1; }
.game-hub-cover img { transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.game-hub-card:hover .game-hub-cover img { transform: scale(1.065); }
.game-hub-category-label { font-size: 10px; background: #eee9fb; color: #7052b5; }
.game-hub-card[data-category="thinking"] .game-hub-category-label { background: #e8f4ff; color: #3979af; }
.game-hub-card[data-category="music"] .game-hub-category-label { background: #fff0f5; color: #b84e81; }
.game-hub-card[data-category="reflex"] .game-hub-category-label { background: #fff5dd; color: #9c731a; }
.game-hub-card[data-category="traditional"] .game-hub-category-label { background: #e9f5ec; color: #4c8055; }
.game-hub-card h3 { color: #2a2543; }
.game-hub-card-body > p { color: #746d80; }
.game-hub-play { color: #7356d5; border-color: #f0ecf6; font-size: 11px; }
.game-hub-play > span { display: grid; place-items: center; width: 27px; height: 27px; background: #f0ebfc; color: #886ad8; border-radius: 50%; font-size: 10px; transition: background .2s, color .2s, transform .2s; }
.game-hub-card:hover .game-hub-play > span { background: #8062df; color: #fff; transform: rotate(-10deg); }
.game-hub-tip { background: #ece8f6; color: #766887; }
.game-hub-tip strong { color: #604e83; }
.classroom-games a:focus-visible, .classroom-games button:focus-visible { outline-color: #b796ff; }

.game-hub-student { max-width: 1260px; padding: 28px 26px 60px; }
.game-hub-student .game-hub-results-head h2 { color: #282736; }
.game-hub-student .game-hub-results-head p { color: #998caa; }
.game-hub-discovery, #game-worlds, #student-game-catalog { scroll-margin-top: 94px; }
@keyframes game-world-drift { from { transform: scale(1.025) translateY(1px); } to { transform: scale(1.055) translateY(-2px); } }
@keyframes game-card-in { from { opacity: .3; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.classroom-games[data-motion="off"] *, .classroom-games[data-motion="off"] *::before, .classroom-games[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.classroom-games[data-motion="off"] .game-hub-art, .classroom-games[data-motion="off"] .game-hub-card, .classroom-games[data-motion="off"] .game-hub-world, .classroom-games[data-motion="off"] .game-hub-cover img, .classroom-games[data-motion="off"] .game-hub-world > img, .classroom-games[data-motion="off"] .game-hub-share-button, .classroom-games[data-motion="off"] .game-hub-explore-button { transform: none !important; }
.game-hub-header.is-paused *, .game-hub-header.is-paused *::after, .classroom-games.is-motion-paused *, .classroom-games.is-motion-paused *::after { animation-play-state: paused !important; }
@media (max-width: 1100px) {
    .game-hub-editorial .game-hub-header { padding: 34px; min-height: 390px; }
    .game-hub-editorial .game-hub-header h1 { font-size: 47px; }
    .game-hub-topbar-links { gap: 3px; }
    .game-hub-topbar-links a { padding: 8px 12px; }
    .game-hub-topbar-home { display: none; }
    .game-hub-world-grid { gap: 10px; }
    .game-hub-world > div { padding: 11px; }
    .game-hub-world h3 { font-size: 13px; }
    .game-hub-world p { font-size: 9px; }
}
@media (max-width: 900px) {
    .game-hub-topbar-links { display: none; }
}
@media (max-width: 760px) {
    .game-hub-topbar-manage { display: grid; place-items: center; width: 32px; height: 38px; }
    .game-hub-topbar-manage span { display: none; }
    .game-hub-editorial .game-hub-header { grid-template-columns: 1fr .9fr; padding: 28px; gap: 0; }
    .game-hub-editorial .game-hub-header h1 { font-size: 40px; }
    .game-hub-hero-visual { height: auto; }
    .game-hub-section-heading > span { display: none; }
    .game-hub-world-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 3px 14px; scrollbar-width: thin; scrollbar-color: #c3b3df transparent; }
    .game-hub-world { flex: 0 0 180px; aspect-ratio: auto; scroll-snap-align: start; }
    .game-hub-discovery-top { align-items: stretch; flex-direction: column; gap: 17px; }
    .game-hub-search { width: 100%; max-width: none; }
    .game-hub-discovery-copy h2 { font-size: 14px; }
    .game-hub-world p { font-size: 10px; }
    .game-hub-card-body { padding: 15px; }
}
@media (max-width: 600px) {
    .game-hub-topbar { height: 64px; }
    .game-hub-topbar-inner { padding: 0 16px; gap: 10px; }
    .game-hub-product-brand { gap: 8px; font-size: 17px; }
    .game-hub-product-brand small { font-size: 9px; margin-top: 4px; }
    .game-hub-brand-symbol { width: 43px; height: 46px; }
    .game-hub-brand-symbol img { width: 46px; height: 46px; }
    .game-hub-brand-symbol::before { width: 37px; height: 37px; border-radius: 14px; }
    .game-hub-topbar-actions { gap: 6px; }
    .game-hub-topbar-manage { width: 28px; }
    .game-hub-topbar-invite { min-height: 38px; padding: 9px 12px; border-radius: 13px; font-size: 11px; gap: 7px; }
    .game-hub-topbar-account { width: 28px; height: 35px; border-radius: 12px; }
    .classroom-games { padding-top: 12px; }
    .game-hub-editorial .game-hub-header { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 28px 25px 33px; border-radius: 20px; gap: 0; }
    .game-hub-editorial .game-hub-header h1 { margin-bottom: 16px; font-size: 42px; line-height: 1.19; }
    .game-hub-editorial .game-hub-eyebrow { margin-bottom: 15px; font-size: 11px; }
    .game-hub-editorial .game-hub-intro { font-size: 12px; }
    .game-hub-editorial .game-hub-intro br { display: none; }
    .game-hub-hero-actions { gap: 8px; margin-top: 20px; }
    .game-hub-explore-button { min-height: 44px; padding: 12px 14px; font-size: 12px; gap: 20px; }
    .game-hub-editorial .game-hub-share-button { min-height: 44px; padding: 12px 13px; font-size: 11px; gap: 7px; }
    .game-hub-hero-helper { margin-top: 13px; font-size: 9px; }
    .game-hub-hero-visual { width: 100%; height: auto; margin-top: 12px; }
    .game-hub-art { inset: 0; border-radius: 14px; }
    .game-hub-editorial .game-hub-motion { bottom: 8px; right: 13px; font-size: 9px; }
    .game-hub-section-heading h2 { font-size: 20px; }
    .game-hub-worlds { margin-top: 25px; }
    .game-hub-discovery { padding: 18px; border-radius: 18px; margin-top: 15px; }
    .game-hub-filters { margin-top: 16px; gap: 6px; }
    .game-hub-filter { padding: 7px 10px; min-height: 36px; font-size: 11px; }
    .game-hub-card-body { padding: 13px; }
    .game-hub-card h3 { font-size: 15px; }
    .game-hub-card-body > p { font-size: 12px; }
    .game-hub-student { padding: 14px 16px 40px; }
}
@media (max-width: 360px) {
    .game-hub-hero-actions { flex-direction: column; align-items: stretch; }
    .game-hub-editorial .game-hub-share, .game-hub-editorial .game-hub-share-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .game-hub-topbar *, .game-hub-topbar *::before { transition: none !important; }
    .game-hub-topbar a:hover, .game-hub-product-brand:hover .game-hub-brand-symbol img { transform: none; }
    .classroom-games:not([data-motion="on"]) *, .classroom-games:not([data-motion="on"]) *::before, .classroom-games:not([data-motion="on"]) *::after { animation: none !important; transition: none !important; }
    .classroom-games:not([data-motion="on"]) .game-hub-card, .classroom-games:not([data-motion="on"]) .game-hub-world, .classroom-games:not([data-motion="on"]) .game-hub-art { transform: none !important; }
}

.game-hub-student-discovery { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; padding: 20px; border: 1px solid #e8e2f3; border-radius: 20px; background: #fffaf6; }
.game-hub-student-discovery > label { font-size: 13px; font-weight: 750; color: #6e567e; }
.game-hub-student-discovery > input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #e5dcea; border-radius: 12px; background: #fff; font-size: 13px; }
.game-hub-student-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; width: 100%; }
.game-hub-student-filters > span { margin-right: 4px; color: #86758e; font-size: 12px; }
.game-hub-student-filters button { min-height: 36px; padding: 7px 12px; border: 1px solid #e7dfed; border-radius: 12px; background: #fff; color: #796786; font-size: 12px; cursor: pointer; }
.game-hub-student-filters button[aria-pressed="true"] { background: #eee3f7; border-color: #c9afd9; color: #664284; }
.upcoming-classroom-games{margin:1.5rem 0 2.5rem;padding:1.25rem 1.5rem;border:1px solid #dbe4d7;border-radius:20px;background:#f5f8f1;color:#294a3c}
.upcoming-classroom-games h2{margin:0 0 .8rem;font-size:1.1rem;font-weight:800}
.upcoming-classroom-games-list{display:flex;flex-wrap:wrap;gap:.65rem;margin:0;padding:0;list-style:none}
.upcoming-classroom-games-list li{display:flex;align-items:center;gap:.75rem;min-height:42px;padding:.55rem .85rem;border:1px solid #dce6d8;border-radius:12px;background:#fff;font-size:.95rem}
.upcoming-classroom-games-list span{color:#637663;font-size:.8rem;font-weight:700}
@media(max-width:600px){.upcoming-classroom-games{padding:1rem;margin:1rem 0 2rem}.upcoming-classroom-games-list li{justify-content:space-between;width:100%}}

/* Teacher-facing selection cues stay legible at classroom and phone sizes. */
.game-hub-card-body > p { margin-bottom: 0; }
.game-hub-teacher-guide { align-self: stretch; display: grid; gap: 3px; margin-top: 12px; padding: 10px 11px; border-radius: 12px; background: #f5f2ff; color: #413579; }
.game-hub-teacher-guide span { font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.game-hub-teacher-guide strong { font-size: 14px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.game-hub-setup { display: flex; align-items: flex-start; gap: 6px; margin-top: 9px; color: #514b63; font-size: 14px; font-weight: 700; line-height: 1.4; }
.game-hub-setup i { flex: none; margin-top: .18em; color: #755bd0; }
@media (max-width: 600px) { .game-hub-teacher-guide { padding: 9px 10px; } .game-hub-teacher-guide strong { font-size: 14px; } }

/* Keep search and the game list in the first view for teachers and students. */
.game-hub-editorial .game-hub-header--compact { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; min-height: 0; padding: 16px 20px; }
.game-hub-editorial .game-hub-header--compact h1 { flex: 0 0 auto; margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; white-space: nowrap; }
.game-hub-header-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.game-hub-service-favorite svg { display: block; width: 1.1rem; height: 1.1rem; fill: currentColor; }
.game-hub-editorial .game-hub-header--compact .game-hub-motion { position: static; flex: none; }
.game-hub-student-discovery { margin-top: 14px; }
@media (max-width: 600px) {
    .game-hub-editorial .game-hub-header--compact { padding: 14px 16px; border-radius: 16px; }
    .game-hub-editorial .game-hub-header--compact h1 { font-size: 24px; }
    .game-hub-header-actions { justify-content: flex-start; }
    .game-hub-student-discovery { padding: 14px; gap: 8px; }
}
@media (max-width: 360px) { .game-hub-editorial .game-hub-header--compact { flex-wrap: wrap; } }

/* Title-bearing covers remain complete even during hover. */
.game-hub-editorial .game-hub-cover img{object-fit:contain}
.game-hub-editorial .game-hub-card:hover .game-hub-cover img{transform:none}
/* Keep teacher favorites in the category row, clear of illustrated title logos. */
.game-hub-editorial .game-hub-card:has(> .game-hub-service-favorite){container-type:inline-size}
.game-hub-editorial .game-hub-card:has(> .game-hub-service-favorite) .game-hub-card-body{padding-top:24px}
.game-hub-editorial .game-hub-card:has(> .game-hub-service-favorite) .game-hub-category-label{max-width:calc(100% - 52px)}
.game-hub-editorial .game-hub-card > .game-hub-service-favorite{top:calc(56.25cqw + 12px);right:12px;min-width:44px;min-height:44px;width:44px;height:44px}

/* Existing photo artwork, with readable activity text at every card width. */
.game-hub-card[data-activity-kind="photo"] h3{font-size:18px}
.game-hub-card[data-activity-kind="photo"] .game-hub-category-label,
.game-hub-card[data-activity-kind="photo"] .game-hub-card-body > p,
.game-hub-card[data-activity-kind="photo"] .game-hub-teacher-guide span,
.game-hub-card[data-activity-kind="photo"] .game-hub-play,
.game-hub-card[data-activity-kind="photo"] .game-hub-play > span,
.game-hub-card[data-activity-kind="photo"] .sr-only{font-size:14px}
.game-hub-card[data-activity-kind="photo"] .game-hub-play > span{color:inherit}
