/* The editor, sprite sheet, cards and each loose block own a depth wrapper.
   Keep the mock fixture's fox pixel-perfect; only the environment is new art. */
.maker-game { --world-tint: #d7eeff; }
.game-grid { left: -8%; top: 24%; width: 118%; height: 79%; z-index: 0; pointer-events: none; }
.game-grid > .maker-depth { height: 100%; }
.game-grid__plane { width: 100%; height: 100%; background-image: linear-gradient(#97d8fc55 1px, transparent 1px), linear-gradient(90deg, #97d8fc55 1px, transparent 1px); background-size: 3.6cqw 3.6cqw; transform: perspective(600px) rotateX(59deg) rotateZ(-17deg); mask-image: radial-gradient(ellipse, #000 25%, transparent 71%); }
.game-editor { left: 30%; top: 9%; width: 71%; z-index: 2; }
/* The proposal keeps the upright edges vertical while the landscape recedes
   down to the right. Pixel integrity comes from the native sprite grid. */
.game-editor__plane { background: #fff; padding: .7cqw; border-radius: 1.1cqw; box-shadow: 0 2cqw 4cqw #4674aa25, .5cqw .6cqw 0 #e6f0fd; transform: perspective(1600px) rotateY(-10deg) skewY(12deg); transform-origin: left center; }
.game-editor__bar { height: 3cqw; display: flex; align-items: center; gap: .8cqw; padding: 0 .5cqw .6cqw; color: #72839f; font: 400 1cqw/1 Collab UI, sans-serif; }
.game-editor__bar > img { width: 1.6cqw; height: 1.6cqw; }
.game-editor__bar b { color: #2c3951; }
.game-editor__bar span { margin-right: auto; }
.game-editor__bar .material-icons { font-size: 1.5cqw; }
.game-motion { display: grid; place-items: center; color: white; background: #0565ff; border: 0; border-radius: .3cqw; padding: .15cqw .6cqw; cursor: pointer; }
.game-motion:focus-visible { outline: 2px solid #0565ff; outline-offset: 3px; }
.game-editor__workspace { display: grid; grid-template-columns: 3.3cqw minmax(0, 1fr); gap: .6cqw; }
.game-editor__tools { display: flex; flex-direction: column; gap: 1.3cqw; align-items: center; padding-top: .6cqw; color: #7b8da9; }
.game-editor__tools .material-icons { font-size: 2cqw; }
.game-editor__tools .is-selected { color: #0565ff; background: #e9f2ff; padding: .4cqw; border-radius: .3cqw; }
.game-level { position: relative; aspect-ratio: 1.65; overflow: hidden; background: #71c5ff; }
.game-level__art { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.game-hearts { position: absolute; top: 3%; left: 5%; color: #ff2846; font: 800 3.1cqw/1 monospace; letter-spacing: -.2cqw; -webkit-text-stroke: .18cqw #37243b; paint-order: stroke fill; }
.game-jump { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-jump path { fill: none; stroke: #ffffffb8; stroke-width: 3; stroke-dasharray: 9 9; }
/* Left/top mark the fox's feet, so both run sections stay on the grass.
   The jump crosses the actual waterfall gap and lands on the right platform. */
.game-fox { position: absolute; left: 24%; top: 61%; width: 18%; aspect-ratio: 1; background: url('../img/makers/game-dev/fox-run.webp?v=20261014-fox-final') 0 0 / 800% 100%; image-rendering: pixelated; transform: translate(-50%, -96.875%); animation: game-fox-run 666.667ms steps(8) infinite, game-fox-path 8s linear infinite; }

.game-coin { display: inline-block; width: 1.9cqw; height: 2.6cqw; background: linear-gradient(90deg, #fff28b 0 18%, #ffc521 18% 75%, #ed9109 75%); border: .27cqw solid #ffdd55; outline: .16cqw solid #bd7619; box-shadow: inset -.2cqw -.15cqw #f19d09; clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%); }
.game-level .game-coin { position: absolute; }
.game-coin--one { left: 35%; top: 42%; }
.game-coin--two { left: 51%; top: 23%; }
.game-coin--three { left: 69%; top: 44%; }
.game-eniac { left: 0; top: 30%; width: 24%; z-index: 6; }
.game-block { z-index: 5; pointer-events: none; filter: drop-shadow(0 1cqw .7cqw #6481a412); }
.game-block--grass-one { width: 10%; left: 35%; top: 65%; }
.game-block--grass-two { width: 6%; left: 23%; top: 60%; }
.game-block--grass-three { width: 4.5%; left: 55%; top: 13%; }
.game-block--stone { width: 6%; left: 51%; top: 75%; }
.game-block--cube-one { width: 5%; left: 29%; top: 51%; }
.game-block--cube-two { width: 3.2%; left: 53%; top: 7%; }
.game-block--cube-three { width: 4.2%; left: 34%; top: 94%; }
.game-block--cube-four { width: 2.5%; left: 104%; top: 52%; }
.game-sprites { left: 0; bottom: -5%; width: 33%; z-index: 7; }
.game-sprites__sheet { background: white; padding: 1.3cqw; border-radius: .9cqw; box-shadow: 0 1.5cqw 3cqw #355a8320; transform: perspective(1100px) rotateX(24deg) rotateZ(19deg); }
.game-sprites__heading { display: flex; gap: .5cqw; align-items: center; padding-bottom: 1cqw; }
.game-sprites__heading > span { width: 1cqw; height: .35cqw; background: #75aeff; }
.game-sprites__heading small { font: 400 .9cqw/1 Collab UI, sans-serif; color: #8b9ebd; margin-left: auto; }
.game-sprites__frames { display: grid; grid-template-columns: repeat(3, 1fr); background-image: linear-gradient(#b6cae844 1px, transparent 1px), linear-gradient(90deg, #b6cae844 1px, transparent 1px); background-size: 1cqw 1cqw; }
.game-sprites__frames img { width: 100%; image-rendering: pixelated; padding: .65cqw .4cqw; border: 1px solid #d6e5fb; }
.game-sprites__frames img:last-child { border-color: #0565ff; background: #edf5ff44; }
.game-sprites__tiles { display: flex; gap: .7cqw; align-items: center; margin-top: 1cqw; }
.game-sprites__tiles img { width: 17%; height: 4.8cqw; object-fit: contain; background: #f4f8ff; }
.game-sprites__tiles .game-coin { margin-left: 1cqw; }
.maker-game .maker-docs { left: 0; right: auto; top: -6%; width: 29%; z-index: 10; transform: perspective(1100px) rotateY(3deg) rotateZ(-6deg); }
.maker-game .maker-post { left: auto; right: -4%; top: -6%; width: 33%; z-index: 10; transform: perspective(1100px) rotateY(-3deg) rotateZ(-4deg); }
.maker-game .maker-goals { right: auto; left: 43%; bottom: -12%; width: 29%; z-index: 10; transform: perspective(1100px) rotateY(-3deg) rotateZ(-4deg); }
.maker-game .maker-calendar { left: auto; right: -7%; bottom: -12%; width: 29%; z-index: 10; transform: perspective(1100px) rotateY(-3deg) rotateZ(-3deg); }
.maker-game .maker-card header { border-bottom: 0; padding-bottom: .5cqw; }
.maker-game .maker-card__body { padding-top: .8cqw; }
.game-collaborators { display: flex; align-items: center; margin-left: auto; padding-left: .5cqw; }
.game-collaborators .collab-avatar { width: 1.9cqw; height: 1.9cqw; border: 1px solid #fff; margin-left: -.45cqw; }
.game-collaborators small { font-size: .8cqw; padding-left: .3cqw; }
.maker-game .maker-card header > span { margin-left: .4cqw; }
.game-docs__folder { justify-content: start !important; }
.game-docs__folder .material-icons { font-size: 2.1cqw; color: #0565ff; margin-right: .5cqw; }
.game-docs__tree { list-style: none; padding: 0 0 0 2.2cqw; margin: 0; color: #61718d; font-size: 1.12cqw; }
.game-docs__tree li { display: flex; align-items: center; gap: .8cqw; padding: .35cqw .6cqw; }
.game-docs__tree li.is-selected { color: #3a5992; background: #eaf0ff; border-radius: .5cqw; }
.game-docs__tree img { width: 1.3cqw; height: 1.3cqw; opacity: .6; }
.game-post__body { display: grid; grid-template-columns: 37% minmax(0, 1fr); gap: 1.3cqw; align-items: center; }
.game-post__image { aspect-ratio: 1; display: grid; place-items: center; background: #c9efff url('../img/makers/game-dev/level.webp') left center / auto 100%; overflow: hidden; border-radius: .7cqw; }
.game-post__image img { width: 86%; image-rendering: pixelated; }
.maker-game .game-post__body h3 { font-size: 1.2cqw; }
.maker-game .game-post__body p { margin: .5cqw 0 1.2cqw; color: #8090ac; font-size: 1.1cqw; }
.maker-game .maker-reactions { gap: .7cqw; }
.maker-game .maker-reactions > span { background: none; padding: 0; }
.maker-game .maker-reactions img { width: 1.2cqw; height: 1.2cqw; }
.game-progress { font-size: 1.1cqw; font-weight: 400; color: #74829c; }
.maker-game .maker-checklist li { font-size: 1.07cqw; padding: .45cqw .4cqw; margin: .3cqw 0; background: #fafbfe; border-radius: .4cqw; }
.maker-game .maker-checklist li::before { border-radius: 50%; }
.maker-game .maker-checklist li.is-done::before { background: #00bf80; border-color: #00bf80; }
.game-event { display: flex; align-items: center; gap: 1.4cqw; }
.game-event__date { padding: .7cqw 1cqw; text-align: center; background: #f4f6fb; border-radius: .5cqw; }
.game-event__date b { font: 700 2.3cqw/1.1 Collab UI, sans-serif; color: #25314b; }
.game-event__footer { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin-top: 1.2cqw; }
.game-event__footer .game-collaborators { margin-left: 0; }
.game-event__invite { display: flex; gap: .6cqw; align-items: center; padding: .5cqw .6cqw; font-size: .95cqw; color: #566885; }
.game-event__invite img { width: 1.25cqw; height: 1.25cqw; }
.maker-game .maker-pointer--emma { left: 22%; top: 23%; z-index: 12; }
.maker-game .maker-pointer--leo { left: 73%; right: auto; top: 70%; z-index: 12; }
.home-makers[data-motion-paused] .game-fox,
.maker-game[data-fox-paused] .game-fox { animation-play-state: paused; }
/* Background-position percentages use the image/container size difference. */
@keyframes game-fox-run { to { background-position: 114.285714% 0; } }
@keyframes game-fox-path {
  0% { left: 22%; top: 61%; transform: translate(-50%, -96.875%) scaleX(1); }
  13% { left: 39%; top: 61%; }
  18% { left: 47%; top: 35%; }
  23% { left: 56%; top: 25%; }
  28% { left: 65%; top: 36%; }
  34% { left: 76%; top: 63%; }
  49.99% { left: 89%; top: 63%; transform: translate(-50%, -96.875%) scaleX(1); }
  50% { left: 89%; top: 63%; transform: translate(-50%, -96.875%) scaleX(-1); }
  63% { left: 76%; top: 63%; }
  68% { left: 65%; top: 36%; }
  73% { left: 56%; top: 25%; }
  78% { left: 47%; top: 35%; }
  84% { left: 39%; top: 61%; }
  99.99% { left: 22%; top: 61%; transform: translate(-50%, -96.875%) scaleX(-1); }
  100% { left: 22%; top: 61%; transform: translate(-50%, -96.875%) scaleX(1); }
}
@media (max-width: 1200px) and (min-width: 561px) {
  .game-editor { top: 31%; }
  .game-eniac { top: 39%; }
  .maker-game .maker-docs, .maker-game .maker-post { top: 0; }
  .game-sprites { bottom: 4%; }
  .maker-game .maker-goals, .maker-game .maker-calendar { bottom: -1%; }
  .game-block--grass-one { top: 61%; }
  .game-block--grass-two { top: 56%; }
  .game-block--stone { top: 69%; }
  .game-block--cube-three { top: 79%; }
}
@media (max-width: 560px) {
  .maker-game .maker-docs { width: 44%; top: 0; left: 0; }
  .maker-game .maker-post { width: 53%; top: 0; right: -1%; }
  .game-editor { left: 19%; top: 35%; width: 81%; }
  .game-eniac { left: -1%; top: 31%; width: 30%; }
  .game-sprites { left: 0; bottom: 26%; width: 45%; }
  .game-grid { top: 31%; height: 48%; }
  .game-block--grass-one { width: 12%; left: 42%; top: 63%; }
  .game-block--grass-two { left: 11%; top: 56%; }
  .game-block--grass-three { left: 52%; top: 27%; }
  .game-block--stone { left: 64%; top: 64%; }
  .game-block--cube-one { left: 30%; top: 34%; }
  .game-block--cube-two { top: 23%; }
  .game-block--cube-three { top: 73%; left: 36%; }
  .game-block--cube-four { left: 95%; top: 59%; }
  .maker-game .maker-goals { width: 49%; left: 0; bottom: 0; }
  .maker-game .maker-calendar { width: 49%; right: -1%; bottom: 0; }
  .game-collaborators .collab-avatar { width: 3cqw; height: 3cqw; margin-left: -.8cqw; }
  .game-collaborators small { font-size: 1.4cqw; }
  .game-docs__folder .material-icons { font-size: 3cqw; }
  .game-docs__tree { font-size: 1.8cqw; }
  .game-docs__tree li { padding: .7cqw; }
  .game-docs__tree img { width: 2cqw; height: 2cqw; }
  .maker-game .game-post__body h3 { font-size: 2cqw; }
  .maker-game .game-post__body p { font-size: 1.7cqw; }
  .maker-game .maker-reactions { gap: .8cqw; font-size: 1.8cqw; }
  .maker-game .maker-reactions small { font-size: 1.6cqw; }
  .maker-game .maker-reactions img { width: 2cqw; height: 2cqw; }
  .maker-game .maker-checklist li { font-size: 1.75cqw; padding: .7cqw; }
  .game-progress { font-size: 1.8cqw; }
  .game-event__date b { font-size: 4cqw; }
  .game-event__invite { font-size: 1.6cqw; }
  .game-event__invite img { width: 2cqw; height: 2cqw; }
  .maker-game .maker-pointer--emma { left: 26%; top: 26%; }
  .maker-game .maker-pointer--leo { left: 69%; top: 61%; }
}
@media (prefers-reduced-motion: reduce) { .game-fox { animation: none; } .game-motion { display: none; } }
