#educational-games{scroll-margin-top:5rem}
.cards.game-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}
.game-catalog .card{min-width:0;overflow-wrap:anywhere}
.game-catalog .card-preview{width:100%;aspect-ratio:16/9;min-height:0;height:auto;overflow:hidden}
.game-catalog .card-preview iframe{width:100%;height:100%;border:0}
.game-catalog .preview-play:focus-visible{outline:3px solid #ffe18e;outline-offset:-4px}
@media(max-width:940px){.cards.game-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){
 .cards.game-catalog{grid-template-columns:minmax(0,1fr);gap:1rem}
 #educational-games .section-heading{flex-wrap:wrap;align-items:flex-start;gap:.45rem}
 #educational-games .category-tabs{display:flex;flex-wrap:wrap;max-width:100%;gap:.45rem}
 #educational-games .category-tabs button,.game-catalog .card-body .button{min-height:44px}
}
.catalog-scene{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;isolation:isolate;
  background:radial-gradient(ellipse at 56% 25%,var(--scene-highlight),transparent 60%),var(--scene-dark);
  color:#fff;pointer-events:none}
.catalog-scene::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.24;
  background-image:linear-gradient(#fff4 1px,transparent 1px),linear-gradient(90deg,#fff4 1px,transparent 1px);
  background-size:18px 18px;transform:perspective(160px) rotateX(24deg) scale(1.35)}
.catalog-board{display:flex;align-items:center;justify-content:center;gap:clamp(.3rem,2vw,.7rem);width:90%;padding-bottom:13%}
.catalog-tile{display:grid;place-items:center;min-width:0;width:clamp(1.9rem,13%,3rem);aspect-ratio:1;
  border:1px solid #ffffff55;border-radius:.58rem;background:#0d182ea8;color:white;font:700 clamp(.84rem,3vw,1.3rem)/1 system-ui;
  box-shadow:0 .3rem .7rem #0005;animation:catalog-hop 2.8s ease-in-out infinite;animation-delay:var(--delay);animation-play-state:paused}
.catalog-tile:nth-child(3){background:var(--scene-highlight);border-color:#fff8}
.catalog-scene.is-visible .catalog-tile{animation-play-state:running}
@keyframes catalog-hop{0%,18%,70%,100%{transform:translateY(0)}38%{transform:translateY(-18%) scale(1.09);box-shadow:0 .45rem 1rem #fff5}}
@media(prefers-reduced-motion:reduce){.catalog-tile{animation:none}}
