.games-shell{--game-ink:var(--st-ink);--game-paper:var(--st-paper);--game-line:var(--st-line);--game-muted:var(--st-muted);max-width:850px;margin:0 auto 3rem;color:var(--game-ink)}
.games-shell h1{font-weight:800;letter-spacing:-.04em;margin:12px 0 20px}.games-shell h2{font-size:1.5rem;font-weight:750}.games-eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.13em;margin-bottom:6px}.games-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}.games-heading a{color:inherit}.game-library-art{height:130px;display:grid;place-items:center;font-size:80px;font-weight:800;color:#ffc166;background:radial-gradient(ellipse at top right,#244871,#0c1c36 65%)}
.game-tile{display:block;max-width:560px;border-radius:24px;overflow:hidden;color:inherit!important;text-decoration:none!important;background:var(--game-paper);border:1px solid var(--game-line)}.game-tile-text{padding:24px}.game-tile:hover{box-shadow:0 8px 28px #152e5020}.moon-game{max-width:620px}.moon-game>.moon-scene{border-radius:24px 24px 0 0}
.moon-scene{--robot:#ffba56;position:relative;isolation:isolate;height:230px;background:radial-gradient(ellipse at top right,#244871,#0c1c36 65%);color:#fff;overflow:hidden}.robot-blue{--robot:#74bce9}.robot-green{--robot:#83cfaa}.moon-earth{position:absolute;right:10%;top:22px;width:48px;height:48px;border-radius:50%;background:radial-gradient(ellipse at 30% 30%,#acd8c3 5%,#50acbc 30%,#2869a3 60%);box-shadow:0 0 24px #9cdcff40}.moon-stars{position:absolute;top:20px;left:8%;color:#b1c8dd;letter-spacing:18px;font-size:26px;white-space:nowrap}
.moon-ground{position:absolute;bottom:-58px;left:-15%;width:130%;height:160px;border-radius:50%;background:radial-gradient(ellipse at 30% 30%,#667183 0 4%,transparent 4.5%),radial-gradient(ellipse at 75% 55%,#687487 0 8%,transparent 8.5%),#8592a3;transform:rotate(-4deg)}
.moon-base{position:absolute;right:7%;bottom:54px;display:flex;gap:8px}.moon-module{width:66px;height:62px;border:2px dashed #91a5c0;border-radius:28px 28px 5px 5px;color:#afc2d9;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#192e48;opacity:.7}.moon-module span{font-size:26px}.moon-module small{font-size:10px}.moon-module.built{border:2px solid #d3e4e8;background:#b9d4db;color:#143b50;opacity:1;box-shadow:inset 0 -9px #83acb9}
.moon-robot{position:absolute;bottom:37px;left:9%;width:76px;transform:rotate(-5deg)}.robot-head{background:var(--robot);border-radius:17px;padding:15px 10px;display:flex;gap:11px;justify-content:center;border:3px solid #e9f1f6;box-shadow:0 4px 0 #0a1c30}.robot-head span{width:13px;height:16px;border-radius:6px;background:#142b42;box-shadow:inset 3px 3px #6bd5d6}.robot-aerial{width:4px;height:13px;background:#ccdce8;margin:auto}.robot-aerial:before{content:"";display:block;width:10px;height:10px;border-radius:50%;background:#6cddd1;transform:translate(-3px,-5px)}.robot-body{margin:5px 12px 0;background:var(--robot);height:36px;border-radius:9px;border:3px solid #dbe5e9;display:grid;place-items:center}.robot-body i{width:21px;height:10px;border-radius:4px;background:#142b42}.robot-wheels{margin:0 7px;background:#23344c;height:13px;border-radius:7px;box-shadow:inset 0 -3px #101c2b}.moon-caption{position:absolute;bottom:10px;left:18px;font-size:12px;font-weight:700;color:#102239;background:#dce5ed;padding:4px 10px;border-radius:9px}.moon-decoration{position:absolute;bottom:24px;right:8%;font-size:28px}
.game-dashboard,.game-play,.game-result{padding:24px;background:var(--game-paper);border:1px solid var(--game-line);border-top:0;border-radius:0 0 24px 24px}.game-stats{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:0 0 24px}.game-stats span{font-size:12px}.game-stats strong{font-size:24px;display:block;font-variant-numeric:tabular-nums}.game-fact{padding:12px 16px;border-left:4px solid #d98a29;background:#ffbe4820;font-size:14px}.game-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 16px;border:2px solid var(--game-line);border-radius:13px;background:var(--game-paper);color:var(--game-ink);font-weight:700;touch-action:manipulation}.game-button:focus-visible,.game-settings summary:focus-visible{outline:3px solid #2287b9;outline-offset:3px}.game-button:disabled{cursor:default}.game-button[aria-pressed=true]{border-color:#2287b9;background:#2287b920}.game-primary{width:100%;background:#ffc166;color:#222f42;border-color:#ecac4f;box-shadow:0 4px 0 #c48a38;margin:8px 0 12px}.game-primary:disabled{opacity:.65}.game-settings{margin-top:18px;border-top:1px solid var(--game-line);padding-top:14px}.game-settings summary,.game-exit summary,.game-missed summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}.game-settings fieldset{border:0;padding:0;margin:12px 0}.game-settings legend{font-size:16px;font-weight:700}.game-options{display:flex;flex-wrap:wrap;gap:10px}.game-options label,.game-check{display:flex;gap:9px;align-items:center;min-height:44px}.game-options label{padding:8px 12px;background:#5482a317;border-radius:10px}.game-field{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-weight:650}.game-field select,.game-field input{width:100%;min-width:0;min-height:48px;border:1px solid var(--game-line);border-radius:10px;background:var(--game-paper);color:inherit;font-size:16px;padding:10px}.game-muted{font-size:13px;color:var(--game-muted)}.game-history{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--game-line);background:transparent;color:inherit;padding:12px 0}.game-history span{font-size:13px}.game-success{color:#136549;font-weight:700}.game-error{padding:15px;background:#ffefef;color:#8b2737;border-radius:12px;margin-bottom:16px}
.game-play-status{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:14px}.game-clock{border-radius:8px;background:#193854;color:#fff;padding:4px 10px;font-variant-numeric:tabular-nums}.game-play progress{width:100%;height:8px;accent-color:#3688a5;margin-top:12px}.game-equation{font-size:clamp(28px,7vw,46px);font-weight:800;text-align:center;margin:24px 0;letter-spacing:.02em}.game-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.game-answers .game-button{min-height:72px;font-size:28px;border-bottom-width:5px}.game-answers .answer-correct{background:#c6eddb;color:#174d38;border-color:#388467}.game-answers .answer-wrong{background:#f8d9dd;color:#7a2438;border-color:#b54962}.game-feedback{min-height:48px;margin-top:18px;text-align:center;font-weight:600;font-size:15px}.game-feedback.correct{color:#136549}.game-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.game-keypad button{font-size:22px}.game-answer-field input{text-align:center;font-size:28px}.game-exit{font-size:13px;margin-top:10px}.game-exit a{color:inherit}.game-missed{padding:12px 0;border-bottom:1px solid var(--game-line)}.game-missed>strong,.game-missed>span{display:block}.game-missed>span{font-size:14px;color:var(--game-muted)}
html[data-theme=dark] .games-shell,.dark-mode .games-shell{--game-ink:var(--st-ink);--game-paper:var(--st-paper);--game-line:var(--st-line);--game-muted:var(--st-muted)}html[data-theme=dark] .game-success,html[data-theme=dark] .game-feedback.correct{color:#88d6ad}
@media(max-width:480px){.game-dashboard,.game-play,.game-result{padding:18px 14px}.moon-scene{height:200px}.moon-base{right:4%;gap:5px}.moon-module{width:52px;height:56px}.moon-robot{left:6%;width:64px}.game-stats strong{font-size:21px}}
.is-playing h1{font-size:24px;margin:8px 0 12px}.is-playing .moon-scene{height:120px}.is-playing .moon-earth{width:30px;height:30px;top:10px}.is-playing .moon-stars{top:4px;font-size:16px}.is-playing .moon-robot{transform:scale(.65) rotate(-5deg);transform-origin:bottom left;bottom:26px}.is-playing .moon-base{transform:scale(.75);transform-origin:bottom right;bottom:32px}.is-playing .moon-caption{bottom:5px}.is-playing .moon-decoration{bottom:17px;font-size:20px}.is-playing .game-equation{margin:16px 0}.is-playing .game-answer-field{margin:8px 0}.is-playing .game-keypad button{min-height:44px;padding:5px}.is-playing .game-feedback{margin-top:12px}
@media(prefers-reduced-motion:no-preference){.game-answers .answer-correct{animation:answer-pop .25s ease-out}@keyframes answer-pop{50%{transform:scale(1.04)}}}
