.fmos-galaxy,
.fmos-homework-app,
.fmos-dark-glow,
.fmos-profile-picker,
.fmos-parent-progress,
.fmos-learning-hub,
.fmos-pawquest {
  box-sizing: border-box;
  font-family: ui-rounded, "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fmos-galaxy *,
.fmos-homework-app *,
.fmos-dark-glow *,
.fmos-profile-picker *,
.fmos-parent-progress *,
.fmos-learning-hub *,
.fmos-pawquest * {
  box-sizing: border-box;
}

.fmos-quick-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 99997;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: min(760px, calc(100% - 24px));
  padding: 9px;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(3, 8, 24, .86);
  box-shadow: 0 16px 42px rgba(0,0,0,.38), 0 0 24px rgba(53, 214, 165, .18);
  backdrop-filter: blur(10px);
}

.fmos-quick-nav a {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: #dffcff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.fmos-quick-nav a:hover,
.fmos-quick-nav a:focus {
  color: #071323;
  background: #9aff2e;
  outline: none;
}

.fmos-learning-hub {
  min-height: 760px;
  padding: clamp(22px, 5vw, 58px);
  color: #fff;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 212, 59, .24), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(53, 214, 165, .22), transparent 24%),
    linear-gradient(135deg, #061225, #102f35 56%, #160d33);
}

.fmos-learning-hub header {
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: center;
}

.fmos-learning-hub header span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 15px;
  color: #071323;
  background: #9aff2e;
  border-radius: 999px;
  font-weight: 950;
  text-transform: uppercase;
}

.fmos-learning-hub h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .9;
  text-transform: uppercase;
  text-shadow: 0 7px 0 rgba(0,0,0,.45), 0 0 28px rgba(154,255,46,.25);
}

.fmos-learning-hub p {
  margin: 12px auto 0;
  max-width: 680px;
  color: #d9e6ff;
  font-size: 1.12rem;
  font-weight: 850;
}

.fmos-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.fmos-hub-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 170px;
  padding: 22px 16px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 3px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.fmos-hub-card:hover,
.fmos-hub-card:focus {
  transform: translateY(-7px);
  border-color: #9aff2e;
  background: rgba(154,255,46,.14);
  outline: none;
}

.fmos-hub-card span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071323;
  background: linear-gradient(135deg, #ffd43b, #35d6a5);
  font-size: 34px;
  font-weight: 950;
}

.fmos-hub-card strong {
  color: #fff;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.fmos-dark-glow {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px 16px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 196, 61, .2), transparent 12%),
    radial-gradient(circle at 78% 18%, rgba(73, 151, 255, .24), transparent 16%),
    radial-gradient(circle at 56% 78%, rgba(153, 255, 45, .16), transparent 18%),
    linear-gradient(145deg, #03050f, #071934 52%, #020715);
  color: #fff;
}

.fmos-dark-glow::before,
.fmos-dark-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fmos-dark-glow::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(153, 213, 255, .72) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 232, 148, .78) 0 1px, transparent 2px);
  background-size: 96px 96px, 148px 148px, 220px 220px;
  animation: fmos-login-stars 26s linear infinite;
  opacity: .9;
}

.fmos-dark-glow::after {
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(88, 122, 255, .16) 46% 48%, transparent 49%),
    linear-gradient(62deg, transparent 0 58%, rgba(153, 255, 45, .1) 59% 60%, transparent 61%);
  background-size: 360px 260px, 460px 320px;
  animation: fmos-login-lasers 18s linear infinite;
  opacity: .55;
}

.fmos-dark-confetti {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 196, 61, .9) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, rgba(73, 151, 255, .84) 0 5px, transparent 6px),
    radial-gradient(ellipse at 50% 50%, rgba(153, 255, 45, .7) 0 6px, transparent 7px);
  background-size: 260px 210px, 420px 310px, 520px 390px;
  animation: fmos-dark-confetti 22s linear infinite;
  opacity: .28;
  pointer-events: none;
}

.fmos-login-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  padding: clamp(24px, 5vw, 64px);
  border: 3px solid #99ff2d;
  border-radius: 8px;
  background: rgba(0, 13, 32, .92);
  box-shadow: 0 0 36px rgba(153, 255, 45, .42), inset 0 0 42px rgba(45, 117, 255, .12);
  text-align: center;
}

.fmos-login-card h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.fmos-login-card h3 {
  margin: 0 0 28px;
  color: #99ff2d;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.fmos-login-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid rgba(153, 255, 45, .34);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.fmos-login-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.fmos-login-tabs button.is-active {
  background: #99ff2d;
  color: #071323;
}

.fmos-login-card form {
  display: grid;
  gap: 16px;
}

.fmos-login-card form[hidden] {
  display: none;
}

.fmos-login-card input {
  width: 100%;
  min-height: 70px;
  border: 2px solid #214f93;
  border-radius: 8px;
  padding: 0 24px;
  background: #061426;
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
}

.fmos-login-card input:focus {
  outline: 3px solid rgba(153, 255, 45, .25);
  border-color: #99ff2d;
}

.fmos-big-red {
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #e92428;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 10px 0 rgba(0,0,0,.32);
}

.fmos-form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: #99ff2d;
  font-weight: 900;
}

.fmos-profile-picker {
  min-height: 720px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: clamp(26px, 5vw, 58px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 20%, rgba(25,130,196,.24), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(153,255,45,.12), transparent 22%),
    linear-gradient(135deg, #080a0f, #111318 60%, #090b11);
  color: #fff;
}

.fmos-picker-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0;
  text-align: center;
}

.fmos-picker-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
}

.fmos-picker-head p {
  margin: 6px 0 0;
  color: #a9adb7;
  font-weight: 800;
}

.fmos-profile-actions,
.fmos-profile-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fmos-profile-actions .fmos-btn {
  min-width: 190px;
  border-color: #99ff2d;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.fmos-profile-actions .fmos-primary {
  background: #99ff2d;
  color: #071323;
}

.fmos-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  width: min(980px, 100%);
}

.fmos-profile-card {
  border: 0;
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #858891;
  box-shadow: none;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, color .18s ease;
}

.fmos-profile-card.is-active {
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.fmos-profile-card > span {
  width: min(180px, 30vw);
  max-width: 180px;
  min-width: 132px;
  aspect-ratio: 1;
  height: auto;
  display: grid;
  place-items: center;
  border: 4px solid #242832;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(135deg, #1677ff, #26d6a2);
  font-size: clamp(3rem, 8vw, 5.4rem);
  box-shadow: inset 0 -18px 0 rgba(0,0,0,.16);
  transition: border-color .18s ease, transform .18s ease, filter .18s ease;
}

.fmos-profile-card:hover {
  color: #fff;
  transform: translateY(-4px);
}

.fmos-profile-card:hover > span,
.fmos-profile-card.is-active > span {
  border-color: #fff;
  filter: brightness(1.08);
}

.fmos-add-profile-card > span {
  border-radius: 50%;
  background: #72757d;
  color: #111318;
  font-size: clamp(3.6rem, 8vw, 6rem);
  box-shadow: none;
}

.fmos-profile-card h3 {
  margin: 0;
  color: currentColor;
  font-size: 1.15rem;
  font-weight: 800;
}

.fmos-profile-card p {
  margin: 0;
  color: currentColor;
  font-size: .9rem;
  font-weight: 700;
  opacity: .8;
}

.fmos-profile-manage-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.fmos-profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  width: min(980px, 100%);
  margin-top: 0;
  padding: 14px;
  border: 2px solid #323640;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.fmos-profile-form label {
  display: grid;
  gap: 5px;
  color: #c5c8d1;
  font-weight: 950;
}

.fmos-profile-form input,
.fmos-profile-form select {
  min-height: 42px;
  width: 100%;
  border: 2px solid #424856;
  border-radius: 8px;
  padding: 8px 10px;
  background: #0b0e14;
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.fmos-manage-profiles {
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid #777b86;
  border-radius: 0;
  background: transparent;
  color: #b8bbc4;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
  cursor: pointer;
}

.fmos-manage-profiles:hover,
.fmos-manage-profiles.is-active {
  border-color: #fff;
  color: #fff;
}

.fmos-galaxy {
  --mx: 0px;
  --my: 0px;
  position: relative;
  min-height: min(820px, 92vh);
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(174, 255, 113, .34), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(75, 210, 124, .28), transparent 18%),
    radial-gradient(circle at 50% 58%, rgba(20, 76, 48, .84), transparent 48%),
    linear-gradient(135deg, #183f27, #5eb174 48%, #244c35 100%);
  background-size: auto;
  color: #fff;
  box-shadow: 0 26px 70px rgba(2, 3, 10, .35);
  isolation: isolate;
}

.fmos-galaxy::before,
.fmos-galaxy::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.fmos-galaxy::before {
  z-index: 1;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.08) 50%, transparent 52%),
    linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 100%);
  background-size: 140px 140px, 100% 7px;
  opacity: .16;
  transform: perspective(700px) rotateX(62deg) translateY(22%);
  animation: fmos-grid-cruise 8s linear infinite;
}

.fmos-galaxy::after {
  z-index: 2;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 89, 94, .28), transparent 14%),
    radial-gradient(circle at 84% 18%, rgba(53, 214, 165, .22), transparent 16%),
    radial-gradient(circle at 74% 82%, rgba(132, 94, 247, .2), transparent 18%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--mx) * -0.25), calc(var(--my) * -0.25), 0);
  animation: fmos-nebula-pulse 5.4s ease-in-out infinite alternate;
}

.fmos-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,243,107,.9) 0 1px, transparent 2px);
  background-size: 46px 46px, 83px 83px;
  background-position: 0 0, 0 0, 18px 26px;
  opacity: .82;
  transform: translate3d(calc(var(--mx) * .2), calc(var(--my) * .2), 0);
  animation: fmos-star-drift 18s linear infinite, fmos-twinkle 1.5s steps(2, end) infinite;
}

.fmos-game-select {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) 0 64px;
}

.fmos-game-select-head {
  display: grid;
  justify-items: center;
  margin-bottom: clamp(18px, 3vw, 34px);
  text-align: center;
}

.fmos-game-select-head h2 {
  margin: 0;
  padding: 8px clamp(18px, 4vw, 48px);
  color: #a6ff1f;
  background: #030306;
  border: 5px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 0 rgba(0, 0, 0, .42), 0 0 28px rgba(166, 255, 31, .22);
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: .9;
  text-transform: uppercase;
  text-shadow: 0 5px 0 #4e5800, 0 0 16px rgba(255, 238, 78, .35);
}

.fmos-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.fmos-game-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: clamp(168px, 20vw, 238px);
  overflow: hidden;
  color: #111;
  text-decoration: none;
  background: #050507;
  border: 4px solid rgba(255, 255, 255, .2);
  box-shadow: 0 16px 22px rgba(0, 0, 0, .48);
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fmos-game-tile:hover,
.fmos-game-tile.is-launching {
  z-index: 3;
  transform: translateY(-8px) scale(1.035);
  border-color: #00a8ff;
  box-shadow: 0 0 0 6px rgba(0, 168, 255, .28), 0 22px 26px rgba(0, 0, 0, .55);
  filter: saturate(1.12);
}

.fmos-game-number {
  position: absolute;
  left: 0;
  bottom: 32px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 48px;
  padding: 0 8px;
  color: #fff;
  background: #1677ff;
  font-size: 2rem;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}

.fmos-game-art {
  display: grid;
  min-height: 0;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(135deg, #0a0c18, #141a36);
}

.fmos-game-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.fmos-game-art > span {
  display: grid;
  place-items: center;
  width: min(112px, 58%);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #101425;
  background: linear-gradient(135deg, #ffdf4a, #35d6a5);
  border: 5px solid rgba(255, 255, 255, .25);
  box-shadow: inset -16px -18px 0 rgba(0, 0, 0, .16), 0 12px 18px rgba(0, 0, 0, .34);
  font-size: clamp(1.5rem, 3.8vw, 3.1rem);
  font-weight: 950;
}

.fmos-game-tile strong {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 6px 10px;
  color: #202020;
  background: linear-gradient(#d6d7d8, #a7aaad);
  border-top: 3px solid #f1f1f1;
  font-size: clamp(.9rem, 1.35vw, 1.18rem);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.fmos-game-tile-math-arena .fmos-game-art > span { background: linear-gradient(135deg, #ffdf4a, #ff922b); }
.fmos-game-tile-tug-war .fmos-game-art > span { background: linear-gradient(135deg, #35d6a5, #8ac926); }
.fmos-game-tile-bullseye .fmos-game-art > span { background: linear-gradient(135deg, #ff595e, #ffdf4a); }
.fmos-game-tile-number-farm .fmos-game-art > span { background: linear-gradient(135deg, #8ac926, #74c0fc); }
.fmos-game-tile-safes .fmos-game-art > span { background: linear-gradient(135deg, #845ef7, #ffd43b); }
.fmos-game-tile-dash-racers .fmos-game-art > span { background: linear-gradient(135deg, #ff922b, #ff6b6b); }
.fmos-game-tile-brain-battle .fmos-game-art > span { background: linear-gradient(135deg, #4dabf7, #845ef7); color: #fff; }
.fmos-game-tile-pizza-shop .fmos-game-art > span { background: linear-gradient(135deg, #ffd43b, #ff6b6b); }
.fmos-game-tile-alphabet-train .fmos-game-art > span { background: linear-gradient(135deg, #f783ac, #74c0fc); }
.fmos-game-tile-picture-puzzle .fmos-game-art > span { background: linear-gradient(135deg, #22b8cf, #35d6a5); }

.fmos-galaxy-logo {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-6deg);
  display: grid;
  place-items: center;
  width: min(390px, 68vw);
  aspect-ratio: 1.7;
  text-align: center;
  color: #bffff2;
  text-shadow: 0 4px 0 #10203f, 0 0 26px rgba(53, 214, 165, .8);
  animation: fmos-logo-bob 3.8s ease-in-out infinite;
}

.fmos-galaxy-logo-image {
  top: 50%;
  width: clamp(118px, 13vw, 170px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: none;
  text-shadow: none;
}

.fmos-galaxy-logo-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 10px rgba(0,0,0,.62)) drop-shadow(0 0 14px rgba(53,214,165,.48));
}

.fmos-galaxy-logo::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 72%;
  border: 22px solid #ffca3a;
  border-left-color: #ff595e;
  border-right-color: #35d6a5;
  border-radius: 50%;
  transform: rotate(-22deg);
  box-shadow: 0 0 22px rgba(255, 202, 58, .75);
  animation: fmos-ring-spin 6s ease-in-out infinite alternate;
}

.fmos-galaxy-logo-image::before {
  display: none;
}

.fmos-galaxy-logo span,
.fmos-galaxy-logo strong {
  position: relative;
  z-index: 1;
  display: block;
  line-height: .9;
  letter-spacing: 0;
}

.fmos-galaxy-logo span {
  font-size: clamp(2rem, 7vw, 4.8rem);
  font-weight: 950;
}

.fmos-galaxy-logo strong {
  font-size: clamp(3.2rem, 12vw, 8rem);
  text-transform: uppercase;
}

.fmos-planets {
  position: relative;
  z-index: 3;
  min-height: min(820px, 92vh);
  transform: translate3d(calc(var(--mx) * .12), calc(var(--my) * .12), 0);
}

.fmos-planet {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff36b;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #111;
  transform: translate3d(0, 0, 0);
  animation: fmos-planet-float 4.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform .18s ease, filter .18s ease;
  will-change: transform;
}

.fmos-planet:hover {
  transform: translateY(-10px) scale(1.08) rotate(-2deg);
  filter: brightness(1.12);
}

.fmos-planet:hover .fmos-planet-icon {
  animation: fmos-icon-wobble .52s ease both;
  box-shadow:
    inset -14px -16px 0 rgba(0,0,0,.18),
    0 12px 18px rgba(0,0,0,.45),
    0 0 28px rgba(255, 243, 107, .82);
}

.fmos-planet.is-launching .fmos-planet-icon {
  animation: fmos-launch-pop .62s ease both;
}

.fmos-planet.is-launching .fmos-planet-title {
  background: #fff36b;
  color: #101425;
  text-shadow: none;
}

.fmos-planet-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 10vw, 122px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.22);
  color: #111;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  box-shadow: inset -14px -16px 0 rgba(0,0,0,.18), 0 12px 18px rgba(0,0,0,.45);
}

.fmos-planet-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.fmos-planet-icon::after {
  content: "";
  position: absolute;
  inset: 11% 18% auto auto;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  filter: blur(2px);
}

.fmos-planet-title {
  max-width: 190px;
  font-size: clamp(.88rem, 2vw, 1.2rem);
  text-align: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  box-shadow: 0 0 16px rgba(255,243,107,.28);
}

.fmos-planet-kyzah { left: 8%; top: 18%; --delay: -1.7s; }
.fmos-planet-kyzah .fmos-planet-icon { background: #ffca3a; }
.fmos-planet-math-arena { left: 28%; top: 7%; --delay: -.4s; }
.fmos-planet-math-arena .fmos-planet-icon { background: #ffca3a; }
.fmos-planet-tug-war { left: 49%; top: 9%; --delay: -2.2s; }
.fmos-planet-tug-war .fmos-planet-icon { background: #35d6a5; }
.fmos-planet-bullseye { right: 23%; top: 9%; --delay: -1.1s; }
.fmos-planet-bullseye .fmos-planet-icon { background: #ff595e; color: #fff; }
.fmos-planet-number-farm { right: 6%; top: 22%; --delay: -3.1s; }
.fmos-planet-number-farm .fmos-planet-icon { background: #8ac926; }
.fmos-planet-safes { right: 10%; top: 52%; --delay: -2.6s; }
.fmos-planet-safes .fmos-planet-icon { background: #845ef7; color: #fff; }
.fmos-planet-dash-racers { right: 28%; bottom: 7%; --delay: -.9s; }
.fmos-planet-dash-racers .fmos-planet-icon { background: #ff922b; }
.fmos-planet-brain-battle { left: 46%; bottom: 3%; --delay: -3.6s; }
.fmos-planet-brain-battle .fmos-planet-icon { background: #4dabf7; color: #fff; }
.fmos-planet-pizza-shop { left: 23%; bottom: 8%; --delay: -1.9s; }
.fmos-planet-pizza-shop .fmos-planet-icon { background: #ffd43b; }
.fmos-planet-alphabet-train { left: 6%; top: 52%; --delay: -2.8s; }
.fmos-planet-alphabet-train .fmos-planet-icon { background: #f783ac; }
.fmos-planet-picture-puzzle { left: 23%; top: 38%; --delay: -1.4s; }
.fmos-planet-picture-puzzle .fmos-planet-icon { background: #22b8cf; color: #fff; }
.fmos-planet-rocket-builder { left: 39%; top: 41%; --delay: -2.9s; }
.fmos-planet-rocket-builder .fmos-planet-icon { background: #4dabf7; color: #fff; }
.fmos-planet-dragon-fights { right: 42%; top: 22%; --delay: -3.4s; }
.fmos-planet-dragon-fights .fmos-planet-icon { background: #7431a8; color: #fff; }
.fmos-planet-negative-numbers { right: 43%; bottom: 21%; --delay: -1.2s; }
.fmos-planet-negative-numbers .fmos-planet-icon { background: #ff6b6b; color: #fff; }
.fmos-planet-million-dollar-quiz { left: 36%; bottom: 21%; --delay: -2.5s; }
.fmos-planet-million-dollar-quiz .fmos-planet-icon { background: #ffd43b; }
.fmos-planet-pawquest-100 { right: 7%; bottom: 22%; --delay: -1.6s; }
.fmos-planet-pawquest-100 .fmos-planet-icon {
  background: radial-gradient(circle at 35% 30%, #fff7ad, #ff8cc6 46%, #5b7cfa 100%);
  color: #fff;
}

.fmos-galaxy-panel {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  width: min(430px, calc(100% - 36px));
  padding: 14px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(77,171,247,.24);
}

.fmos-galaxy-panel strong {
  display: block;
  margin-bottom: 10px;
}

.fmos-galaxy.is-pressed .fmos-galaxy-logo,
.fmos-galaxy.is-pressed .fmos-planet {
  animation-duration: 1.25s;
}

.fmos-galaxy.is-pressed .fmos-galaxy-logo-image {
  animation: none;
}

@keyframes fmos-star-drift {
  to { background-position: 92px 92px, -83px 83px, 110px -66px; }
}

@keyframes fmos-dark-confetti {
  to { background-position: 120px 320px, -180px 260px, 95px 220px; }
}

@keyframes fmos-login-stars {
  to { background-position: 96px 120px, -148px 180px, 220px -160px; }
}

@keyframes fmos-login-lasers {
  to { background-position: 360px 260px, -460px 320px; }
}

@keyframes fmos-twinkle {
  50% { opacity: .58; }
}

@keyframes fmos-grid-cruise {
  to { background-position: 0 140px, 0 28px; }
}

@keyframes fmos-nebula-pulse {
  from { opacity: .42; }
  to { opacity: .72; }
}

@keyframes fmos-logo-bob {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
  50% { transform: translate(calc(-50% + var(--mx) * .08), calc(-50% + var(--my) * .08 - 10px)) rotate(-4deg) scale(1.025); }
}

@keyframes fmos-ring-spin {
  from { transform: rotate(-25deg) scale(.98); }
  to { transform: rotate(-13deg) scale(1.03); }
}

@keyframes fmos-planet-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

@keyframes fmos-icon-wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-7deg) scale(1.06); }
  55% { transform: rotate(6deg) scale(1.08); }
  80% { transform: rotate(-3deg) scale(1.04); }
}

@keyframes fmos-launch-pop {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(1.22); filter: brightness(1.35); }
  100% { transform: scale(1); filter: brightness(1); }
}

.fmos-homework-app {
  --ink: #1c2430;
  --muted: #667085;
  --navy: #202a44;
  --line: #d9e0ea;
  --sun: #ffc43d;
  --mint: #35d6a5;
  --mint-dark: #09956d;
  --sky: #4dabf7;
  --coral: #ff6b6b;
  position: relative;
  color: var(--ink);
  padding: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,196,61,.32) 0 7rem, transparent 7.2rem),
    radial-gradient(circle at 90% 18%, rgba(77,171,247,.24) 0 8rem, transparent 8.2rem),
    linear-gradient(135deg, #fff4d6 0%, #f6fbff 45%, #fff2f2 100%);
}

.fmos-homework-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.fmos-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid var(--navy);
  background: conic-gradient(var(--sun), var(--coral), var(--sky), var(--mint), var(--sun));
  font-size: 30px;
}

.fmos-homework-app h2,
.fmos-homework-app h3,
.fmos-homework-app p {
  margin: 0;
}

.fmos-homework-app h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: .95;
}

.fmos-homework-app p {
  color: var(--muted);
  font-weight: 800;
}

.fmos-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.fmos-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid #202a44;
  border-radius: 8px;
  background: #fff;
  color: #202a44;
  box-shadow: 0 5px 0 #202a44;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.fmos-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #202a44;
}

.fmos-primary {
  background: var(--sun);
}

.fmos-homework-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(320px, .75fr);
  gap: 18px;
  align-items: start;
}

.fmos-board,
.fmos-card {
  border: 2px solid rgba(32,42,68,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 50px rgba(32,42,68,.16);
}

.fmos-board {
  padding: 16px;
}

.fmos-board-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.fmos-pill {
  display: inline-flex;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #c9ffed;
  color: #072e23;
  font-weight: 950;
}

.fmos-board h3 {
  margin-top: 10px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  line-height: 1;
}

.fmos-ring {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.fmos-stats,
.fmos-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fmos-stats div,
.fmos-mini-stats div {
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fmos-stats strong,
.fmos-mini-stats strong {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.fmos-stats span,
.fmos-mini-stats span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
}

.fmos-meter {
  height: 18px;
  margin: 16px 0;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #edf1f7;
}

.fmos-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--mint), var(--sky));
  transition: width .25s ease;
}

.fmos-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
}

.fmos-day {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fmos-day.is-complete {
  border-color: var(--mint-dark);
  box-shadow: 0 8px 0 rgba(9,149,109,.22);
}

.fmos-day header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}

.fmos-day header span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f7;
  font-weight: 950;
}

.fmos-day.is-complete header span {
  background: var(--mint);
}

.fmos-day button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--ink);
  text-align: left;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.fmos-day button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #a8b4c5;
  background: #fff;
}

.fmos-day button.is-done {
  background: #e9fff6;
  border-color: rgba(9,149,109,.28);
}

.fmos-day button.is-done span {
  background: var(--mint);
  border-color: var(--mint-dark);
}

.fmos-day-reward {
  margin-top: auto;
  min-height: 64px;
  padding: 9px;
  border: 2px dashed #e0a500;
  border-radius: 8px;
  background: #fff8dc;
  color: #1c2430;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.fmos-day-reward small {
  display: block;
  color: #9c6a00;
  text-transform: uppercase;
}

.fmos-day:not(.is-complete) .fmos-day-reward {
  filter: grayscale(.9);
  opacity: .58;
}

.fmos-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
}

.fmos-card {
  padding: 15px;
}

.fmos-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

.fmos-streak {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px solid #ffd45c;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe8a3, #fff, #d9fff2);
}

.fmos-streak span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  font-size: 30px;
}

.fmos-streak strong {
  color: var(--navy);
  font-size: 1.8rem;
}

.fmos-mini-stats {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 10px;
}

.fmos-trophy {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  margin-bottom: 8px;
}

.fmos-trophy > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d8dee9;
  filter: grayscale(1);
}

.fmos-trophy.is-unlocked {
  border-color: #e0a500;
  background: #fff8dc;
}

.fmos-trophy.is-unlocked > span {
  background: var(--sun);
  filter: none;
}

.fmos-trophy b,
.fmos-trophy small {
  display: block;
}

.fmos-trophy em {
  padding: 5px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 950;
}

.fmos-reward-fields {
  display: grid;
  gap: 10px;
}

.fmos-reward-fields label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 950;
}

.fmos-reward-fields input {
  min-height: 40px;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
}

.fmos-card.is-unlocked {
  border-color: var(--mint-dark);
  background: #dffff4;
}

.fmos-parent-progress {
  --parent-ink: #18233f;
  --parent-muted: #67728a;
  --parent-line: #d9e1ee;
  min-height: 680px;
  padding: clamp(18px, 3vw, 34px);
  color: var(--parent-ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 196, 61, .24), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(53, 214, 165, .18), transparent 26%),
    linear-gradient(135deg, #fff7dc, #eef9ff 72%, #fff);
}

.fmos-parent-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.fmos-parent-progress-head span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #cffff0;
  color: #064433;
  font-weight: 950;
  text-transform: uppercase;
}

.fmos-parent-progress h2 {
  margin: 0;
  color: var(--parent-ink);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .95;
}

.fmos-parent-progress p {
  margin: 8px 0 0;
  color: var(--parent-muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.fmos-parent-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.fmos-parent-child-card {
  padding: 18px;
  border: 2px solid var(--parent-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(24, 35, 63, .12);
}

.fmos-parent-child-card header {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.fmos-parent-child-card header > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f80ff, #35d6a5);
  font-size: 34px;
}

.fmos-parent-child-card h3 {
  margin: 0;
  color: var(--parent-ink);
  font-size: 1.55rem;
}

.fmos-parent-child-card header strong {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid var(--parent-ink);
  border-radius: 50%;
  color: var(--parent-ink);
  font-size: 1.15rem;
}

.fmos-parent-meter {
  height: 16px;
  margin: 18px 0;
  overflow: hidden;
  border: 2px solid var(--parent-ink);
  border-radius: 999px;
  background: #eef3fb;
}

.fmos-parent-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #35d6a5, #ffc43d, #ff6b6b);
}

.fmos-parent-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fmos-parent-stats div {
  padding: 10px;
  border: 2px solid var(--parent-line);
  border-radius: 8px;
  background: #f8fbff;
}

.fmos-parent-stats strong,
.fmos-parent-stats span {
  display: block;
}

.fmos-parent-stats strong {
  color: var(--parent-ink);
  font-size: 1.45rem;
}

.fmos-parent-stats span {
  color: var(--parent-muted);
  font-size: .86rem;
  font-weight: 900;
}

.fmos-parent-trophies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.fmos-parent-trophies span {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 950;
}

.fmos-parent-trophies .is-unlocked {
  color: #3b2900;
  background: #ffe08a;
}

.fmos-parent-trophies .is-locked {
  color: #687284;
  background: #edf1f7;
  filter: grayscale(1);
}

.fmos-parent-child-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 12px;
  margin: 16px 0 0;
}

.fmos-parent-child-card dt {
  color: var(--parent-muted);
  font-weight: 950;
}

.fmos-parent-child-card dd {
  margin: 0;
  font-weight: 850;
}

.fmos-pawquest {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(18px, 4vw, 46px);
  color: #17213c;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 212, 59, .42), transparent 20%),
    radial-gradient(circle at 84% 20%, rgba(255, 140, 198, .36), transparent 22%),
    linear-gradient(135deg, #dff9ff 0%, #fff7d8 52%, #ffe6f2 100%);
}

.fmos-pawquest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(64,119,255,.38) 0 2px, transparent 3px);
  background-size: 92px 92px, 146px 146px;
  animation: fmos-paw-stars 24s linear infinite;
  pointer-events: none;
}

.fmos-paw-sky {
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 34%;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(53,214,165,.34), transparent 40%),
    radial-gradient(ellipse at 78% 65%, rgba(255,196,61,.32), transparent 42%);
  pointer-events: none;
}

.fmos-paw-head,
.fmos-paw-grid,
.fmos-paw-evolutions,
.fmos-paw-login {
  position: relative;
  z-index: 1;
}

.fmos-paw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto 22px;
}

.fmos-paw-head span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 8px 13px;
  color: #071323;
  background: #9aff2e;
  border: 2px solid #17213c;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fmos-paw-head h2 {
  margin: 0;
  color: #17213c;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: .88;
  text-transform: uppercase;
}

.fmos-paw-head p {
  max-width: 660px;
  margin: 10px 0 0;
  color: #59647d;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 850;
}

.fmos-paw-clock {
  min-width: 170px;
  padding: 16px 20px;
  color: #fff;
  text-align: center;
  border: 3px solid #17213c;
  border-radius: 8px;
  background: linear-gradient(135deg, #17213c, #384cff);
  box-shadow: 0 8px 0 #17213c;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 950;
}

.fmos-paw-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fmos-paw-home {
  min-height: 58px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  color: #17213c;
  text-decoration: none;
  border: 3px solid #17213c;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 0 #17213c;
  font-weight: 950;
  text-transform: uppercase;
}

.fmos-paw-home:hover,
.fmos-paw-home:focus {
  transform: translateY(-2px);
  background: #e7fff8;
  outline: none;
}

.fmos-paw-login,
.fmos-paw-grid > *,
.fmos-paw-evolutions {
  border: 3px solid rgba(23,33,60,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 20px 48px rgba(52,70,113,.22);
}

.fmos-paw-login {
  width: min(720px, 100%);
  margin: 80px auto;
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
}

.fmos-paw-grid {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(360px, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.fmos-paw-stage-card,
.fmos-paw-panel {
  padding: clamp(16px, 3vw, 26px);
}

.fmos-paw-room {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #17213c;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.72), transparent 24%),
    linear-gradient(135deg, #ffeec6 0%, #ffd49d 48%, #ffc178 100%);
  box-shadow: inset 0 -18px 0 rgba(23,33,60,.08);
}

.fmos-paw-room::before,
.fmos-paw-room::after {
  content: none;
}

.fmos-paw-room::before {
  width: 120px;
  height: 42px;
  left: 9%;
  top: 14%;
  box-shadow: 48px 2px 0 -6px rgba(255,255,255,.82);
}

.fmos-paw-room::after {
  width: 92px;
  height: 34px;
  right: 12%;
  top: 22%;
}

.fmos-paw-pet {
  position: relative;
  width: 160px;
  aspect-ratio: 1;
  border: 5px solid #17213c;
  border-radius: 54% 54% 48% 48%;
  background: linear-gradient(145deg, #fff, #ffd6a5);
  box-shadow: 0 18px 0 rgba(23,33,60,.14);
  transform-origin: 50% 100%;
  animation: fmos-paw-breathe 2.2s ease-in-out infinite;
}

.fmos-paw-pet.is-egg {
  border-radius: 52% 52% 48% 48%;
  background: radial-gradient(circle at 35% 25%, #fff, #9af1ff 42%, #8f74ff 100%);
}

.fmos-paw-pet.is-dog { background: linear-gradient(145deg, #fff5d8, #ffb86b); }
.fmos-paw-pet.is-cat { background: linear-gradient(145deg, #fff, #ffc8dd); }
.fmos-paw-pet.is-tiny { width: 184px; }
.fmos-paw-pet.is-playful { width: 206px; }
.fmos-paw-pet.is-adventurer { width: 228px; box-shadow: 0 18px 0 rgba(23,33,60,.14), 0 0 0 10px rgba(255,212,59,.24); }
.fmos-paw-pet.is-magical { width: 246px; box-shadow: 0 18px 0 rgba(23,33,60,.14), 0 0 28px rgba(132,94,247,.42); }
.fmos-paw-pet.is-legendary { width: 266px; box-shadow: 0 18px 0 rgba(23,33,60,.14), 0 0 34px rgba(255,196,61,.78); }

.fmos-paw-pet {
  width: min(360px, 86%);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: fmos-paw-breathe 2.2s ease-in-out infinite;
}

.fmos-paw-pet.is-tiny,
.fmos-paw-pet.is-playful,
.fmos-paw-pet.is-adventurer,
.fmos-paw-pet.is-magical,
.fmos-paw-pet.is-legendary {
  width: min(390px, 90%);
  box-shadow: none;
}

.fmos-paw-pet img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 18px rgba(23,33,60,.22));
}

.fmos-paw-pet.is-magical img {
  filter: drop-shadow(0 24px 18px rgba(23,33,60,.22)) drop-shadow(0 0 22px rgba(132,94,247,.42));
}

.fmos-paw-pet.is-legendary img {
  filter: drop-shadow(0 24px 18px rgba(23,33,60,.22)) drop-shadow(0 0 28px rgba(255,196,61,.62));
}

.fmos-paw-pet .fmos-paw-ears,
.fmos-paw-pet .fmos-paw-face,
.fmos-paw-pet .fmos-paw-tail {
  display: none;
}

.fmos-paw-ears {
  position: absolute;
  inset: -38px 18px auto;
  height: 64px;
}

.fmos-paw-ears::before,
.fmos-paw-ears::after {
  content: "";
  position: absolute;
  top: 0;
  width: 58px;
  height: 58px;
  border: 5px solid #17213c;
  background: inherit;
}

.fmos-paw-ears::before {
  left: 0;
  border-radius: 80% 20% 55% 25%;
  transform: rotate(-24deg);
}

.fmos-paw-ears::after {
  right: 0;
  border-radius: 20% 80% 25% 55%;
  transform: rotate(24deg);
}

.fmos-paw-pet.is-dog .fmos-paw-ears::before,
.fmos-paw-pet.is-dog .fmos-paw-ears::after {
  height: 78px;
  border-radius: 50% 50% 62% 62%;
  transform: rotate(0);
}

.fmos-paw-pet.is-egg .fmos-paw-ears,
.fmos-paw-pet.is-egg .fmos-paw-tail {
  display: none;
}

.fmos-paw-face {
  position: absolute;
  inset: 42% 20% auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: 32px;
}

.fmos-paw-face i {
  width: 18px;
  height: 22px;
  border-radius: 50%;
  background: #17213c;
  box-shadow: inset 4px 4px 0 rgba(255,255,255,.6);
}

.fmos-paw-face b {
  grid-column: 1 / -1;
  width: 42px;
  height: 20px;
  margin-top: 5px;
  border-bottom: 5px solid #17213c;
  border-radius: 0 0 999px 999px;
}

.fmos-paw-tail {
  position: absolute;
  right: -52px;
  bottom: 32px;
  width: 78px;
  height: 28px;
  border: 5px solid #17213c;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: inherit;
  transform: rotate(-16deg);
}

.fmos-paw-speech {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  color: #17213c;
  border: 3px solid #17213c;
  border-radius: 8px;
  background: #fff;
  font-weight: 950;
  text-align: center;
}

.fmos-paw-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.fmos-paw-bars > div {
  display: grid;
  grid-template-columns: 70px 52px 1fr;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.fmos-paw-bars em {
  height: 16px;
  overflow: hidden;
  border: 2px solid #17213c;
  border-radius: 999px;
  background: #eef4ff;
}

.fmos-paw-bars i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #35d6a5, #ffd43b, #ff8cc6);
}

.fmos-paw-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fmos-paw-stats div,
.fmos-paw-start,
.fmos-paw-question,
.fmos-paw-care-actions,
.fmos-paw-wait,
.fmos-paw-complete {
  padding: 14px;
  border: 3px solid #d8dfed;
  border-radius: 8px;
  background: #fff;
}

.fmos-paw-stats strong {
  display: block;
  color: #17213c;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.fmos-paw-stats strong[data-paw-stage] {
  font-size: clamp(1.35rem, 3vw, 2.45rem);
  line-height: .95;
  overflow-wrap: anywhere;
}

.fmos-paw-stats span {
  color: #66718a;
  font-weight: 900;
  text-transform: uppercase;
}

.fmos-paw-start h3,
.fmos-paw-question h3,
.fmos-paw-care-actions h3,
.fmos-paw-wait h3,
.fmos-paw-complete h3,
.fmos-paw-evolutions h3 {
  margin: 0 0 12px;
  color: #17213c;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.fmos-paw-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.fmos-paw-choices button,
.fmos-paw-care-actions button {
  min-height: 76px;
  padding: 12px;
  color: #17213c;
  border: 3px solid #17213c;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #e7fff8);
  box-shadow: 0 6px 0 #17213c;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}

.fmos-paw-choices button img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 6px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(23,33,60,.18));
}

.fmos-paw-choices button strong {
  display: block;
}

.fmos-paw-start label {
  display: grid;
  gap: 7px;
  color: #66718a;
  font-weight: 950;
}

.fmos-paw-start select,
.fmos-paw-question input {
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 3px solid #d8dfed;
  border-radius: 8px;
  color: #17213c;
  background: #fff;
  font: inherit;
  font-weight: 950;
}

.fmos-paw-question span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 11px;
  color: #071323;
  background: #ffd43b;
  border-radius: 999px;
  font-weight: 950;
}

.fmos-paw-question form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.fmos-paw-question p,
.fmos-paw-care-actions p,
.fmos-paw-wait p,
.fmos-paw-start p {
  margin: 12px 0 0;
  color: #66718a;
  font-weight: 850;
}

.fmos-paw-wait {
  text-align: center;
  background: linear-gradient(135deg, #fff, #eef7ff);
}

.fmos-paw-wait strong {
  display: block;
  margin-top: 14px;
  color: #3346d3;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
}

.fmos-paw-care-actions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fmos-paw-care-actions button.is-done {
  color: #0b513d;
  background: #bff8df;
  transform: translateY(5px);
  box-shadow: 0 1px 0 #17213c;
}

.fmos-paw-evolutions {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: clamp(16px, 3vw, 24px);
}

.fmos-paw-evolutions > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.fmos-paw-evolutions article {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 10px;
  border: 3px solid #d8dfed;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.fmos-paw-evolutions h4 {
  margin: 18px 0 10px;
  color: #59647d;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fmos-paw-evolutions article img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(23,33,60,.16));
}

.fmos-paw-evolutions strong {
  color: #17213c;
  font-weight: 950;
}

.fmos-paw-evolutions small {
  color: #66718a;
  font-weight: 850;
}

.fmos-paw-mini {
  display: block;
  width: 58px;
  aspect-ratio: 1;
  border: 3px solid #17213c;
  border-radius: 52%;
  background: radial-gradient(circle at 35% 28%, #fff, #9af1ff 42%, #8f74ff);
}

.fmos-paw-mini.is-newborn { background: #ffc8dd; transform: scale(.82); }
.fmos-paw-mini.is-tiny { background: #ffda9e; }
.fmos-paw-mini.is-playful { background: #bff8df; transform: scale(1.08); }
.fmos-paw-mini.is-adventurer { background: #ffd43b; transform: scale(1.16); }
.fmos-paw-mini.is-magical { background: #c6b3ff; transform: scale(1.22); box-shadow: 0 0 18px rgba(132,94,247,.48); }
.fmos-paw-mini.is-legendary { background: linear-gradient(135deg, #ffd43b, #ff8cc6, #7df9ff); transform: scale(1.3); box-shadow: 0 0 22px rgba(255,196,61,.68); }

@keyframes fmos-paw-stars {
  to { background-position: 92px 92px, -146px 146px; }
}

@keyframes fmos-paw-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.025); }
}

@media (max-width: 820px) {
  .fmos-pawquest {
    padding: 16px 12px 82px;
  }

  .fmos-paw-head {
    display: grid;
  }

  .fmos-paw-clock {
    width: 100%;
  }

  .fmos-paw-head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .fmos-paw-home {
    width: 100%;
  }

  .fmos-paw-grid {
    grid-template-columns: 1fr;
  }

  .fmos-paw-room {
    min-height: 330px;
  }

  .fmos-paw-pet {
    width: min(290px, 88%);
  }

  .fmos-paw-pet.is-tiny,
  .fmos-paw-pet.is-playful,
  .fmos-paw-pet.is-adventurer,
  .fmos-paw-pet.is-magical,
  .fmos-paw-pet.is-legendary {
    width: min(310px, 92%);
  }

  .fmos-paw-stats,
  .fmos-paw-choices,
  .fmos-paw-question form,
  .fmos-paw-care-actions > div {
    grid-template-columns: 1fr;
  }
}

.fmos-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 99999;
  width: min(540px, calc(100% - 28px));
  padding: 14px 16px;
  border: 2px solid #202a44;
  border-radius: 8px;
  background: #fff;
  color: #202a44;
  box-shadow: 0 8px 0 #202a44;
  font-weight: 950;
  text-align: center;
  transform: translate(-50%, 150%);
  transition: transform .25s ease;
}

.fmos-toast.is-visible {
  transform: translate(-50%, 0);
}

.fmos-confetti {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  overflow: hidden;
}

.fmos-confetti i {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 18px;
  border-radius: 3px;
  animation: fmos-fall 2.4s linear forwards;
}

@keyframes fmos-fall {
  to {
    transform: translate3d(var(--x), 110vh, 0) rotate(var(--r));
  }
}

@media (max-width: 980px) {
  .fmos-homework-top,
  .fmos-homework-grid,
  .fmos-board-head {
    grid-template-columns: 1fr;
  }

  .fmos-actions {
    justify-content: flex-start;
  }

  .fmos-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fmos-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fmos-game-tile {
    min-height: 190px;
  }

  .fmos-planet-kyzah { left: 7%; top: 11%; }
  .fmos-planet-math-arena { left: 42%; top: 7%; }
  .fmos-planet-tug-war { right: 7%; top: 14%; }
  .fmos-planet-bullseye { left: 10%; top: 31%; }
  .fmos-planet-number-farm { right: 10%; top: 34%; }
  .fmos-planet-safes { left: 7%; top: 55%; }
  .fmos-planet-dash-racers { right: 8%; top: 57%; }
  .fmos-planet-brain-battle { left: 39%; bottom: 2%; }
  .fmos-planet-pizza-shop { left: 5%; bottom: 13%; }
  .fmos-planet-alphabet-train { right: 7%; bottom: 13%; }
  .fmos-planet-picture-puzzle { left: 39%; top: 31%; }
}

@media (max-width: 620px) {
  .fmos-quick-nav {
    bottom: 8px;
    gap: 5px;
    padding: 7px;
    border-radius: 18px;
  }

  .fmos-quick-nav a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .fmos-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fmos-hub-card {
    min-height: 140px;
  }

  .fmos-homework-app {
    padding: 12px;
  }

  .fmos-homework-top {
    grid-template-columns: auto 1fr;
  }

  .fmos-actions,
  .fmos-stats,
  .fmos-days,
  .fmos-mini-stats {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .fmos-actions {
    display: grid;
  }

  .fmos-trophy {
    grid-template-columns: 42px 1fr;
  }

  .fmos-trophy em {
    grid-column: 2;
    width: max-content;
  }

  .fmos-galaxy {
    min-height: 760px;
  }

  .fmos-game-select {
    width: min(100%, calc(100% - 18px));
    padding-top: 16px;
  }

  .fmos-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fmos-game-tile {
    min-height: 168px;
    border-width: 3px;
  }

  .fmos-game-number {
    bottom: 34px;
    min-width: 34px;
    height: 38px;
    font-size: 1.4rem;
  }

  .fmos-game-select-head h2 {
    border-width: 3px;
  }

  .fmos-game-tile strong {
    min-height: 40px;
    font-size: .78rem;
  }

  .fmos-login-card {
    padding: 22px;
  }

  .fmos-login-card input,
  .fmos-big-red {
    min-height: 58px;
  }

  .fmos-picker-head,
  .fmos-profile-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fmos-profile-picker {
    min-height: 680px;
  }

  .fmos-profile-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .fmos-profile-actions {
    width: 100%;
  }

  .fmos-profile-actions .fmos-btn {
    width: 100%;
  }

  .fmos-parent-progress-head {
    display: grid;
    align-items: start;
  }

  .fmos-parent-progress-head .fmos-btn {
    width: 100%;
  }

  .fmos-parent-progress-grid {
    grid-template-columns: 1fr;
  }

  .fmos-parent-child-card header {
    grid-template-columns: 54px 1fr;
  }

  .fmos-parent-child-card header > span,
  .fmos-parent-child-card header strong {
    width: 54px;
    height: 54px;
  }

  .fmos-parent-child-card header strong {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 8px;
  }

  .fmos-parent-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fmos-parent-child-card dl {
    grid-template-columns: 1fr;
  }
}

.fmos-trial-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, #101a3d, #04261d);
  border: 2px solid #9aff2e;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 22px rgba(154, 255, 46, 0.32);
  font-family: inherit;
}

.fmos-trial-pill span {
  color: #bdfcff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.fmos-trial-pill strong {
  color: #ffcc3d;
  font-size: 22px;
  line-height: 1;
}

.fmos-trial-overlay,
.fmos-trial-expired {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 16%, rgba(20, 184, 176, 0.28), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(128, 235, 229, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(232, 249, 247, 0.96), rgba(255, 255, 255, 0.98));
}

.fmos-trial-expired {
  position: relative;
}

.fmos-trial-modal,
.fmos-trial-expired-card {
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 54px);
  color: #0e3d43;
  text-align: center;
  background: #fff;
  border: 3px solid #14b8b0;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(13, 79, 84, 0.18), 0 0 36px rgba(20, 184, 176, 0.2);
}

.fmos-trial-modal > span,
.fmos-trial-expired-card > span {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: #fff;
  background: #14b8b0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.fmos-trial-modal h2,
.fmos-trial-expired-card h2 {
  margin: 0 0 16px;
  color: #0e3d43;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

.fmos-trial-modal p,
.fmos-trial-expired-card p {
  margin: 0 auto 26px;
  max-width: 560px;
  color: #4f7377;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.45;
}

.fmos-trial-modal .fmos-big-red,
.fmos-trial-expired-card .fmos-big-red {
  color: #fff;
  background: linear-gradient(180deg, #1fcfc5, #14b8b0);
  box-shadow: 0 10px 0 #0a6b6e, 0 18px 38px rgba(20, 184, 176, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .fmos-galaxy,
  .fmos-galaxy::before,
  .fmos-galaxy::after,
  .fmos-stars,
  .fmos-galaxy-logo,
  .fmos-galaxy-logo::before,
  .fmos-planet,
  .fmos-planet:hover .fmos-planet-icon,
  .fmos-planet.is-launching .fmos-planet-icon {
    animation: none;
    transition: none;
  }

  .fmos-stars,
  .fmos-planets {
    transform: none;
  }
}
