/* Learning games card: Platform Pals played live. Boro climbs, a science question pops, the right answer fires a jetpack boost. */
body #students .mini.gx[data-game] {
  padding: 0;
  gap: 0;
  display: block;
  background: linear-gradient(#bcd5d9, #c7d9d7 40%, #d9dacb);
  isolation: isolate;
}
body #students .mini.gx[data-game] * {
  box-sizing: border-box;
}
body #students .mini.gx[data-game] .gw {
  position: absolute;
  inset: 0;
  will-change: transform;
}
body #students .mini.gx[data-game] .pf {
  position: absolute;
  left: 0;
  top: 0;
  width: 24%;
  height: 12px;
  margin-left: -12%;
  border-radius: 2px;
  background: linear-gradient(#86b98a 0 3px, #5d9a5b 3px 5px, #4c7d49 5px);
  box-shadow: 3px 4px 0 rgba(70, 95, 100, 0.18);
}
body #students .mini.gx[data-game] .pf::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: -1px;
  height: 2px;
  background: radial-gradient(circle, #a9d3a6 1px, transparent 1.6px) 0 0/14% 2px repeat-x;
}
body #students .mini.gx[data-game] .cl {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 43px;
  margin-left: -48px;
  background: url(https://assets-dev.capyodev.com/images/marketing-site/03dddc8a40b34d199e6aaae436494a8d5ac9133801b55dc4893ab75762671af4.png) center/contain no-repeat;
  opacity: 0.95;
}
body #students .mini.gx[data-game] .cn {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 18px;
  margin: -9px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 32%, #fff6b8 0 14%, #ffd23c 34%, #e9a514 78%);
  box-shadow: inset -2px -2px 0 rgba(170, 100, 0, 0.35);
}
body #students .mini.gx[data-game] .cn.got {
  opacity: 0;
  transform: translateY(-14px) scale(1.6);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
body #students .mini.gx[data-game] .boro {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 62px;
  margin-left: -29px;
  will-change: transform;
}
body #students .mini.gx[data-game] .boro img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: auto;
  margin-left: -30px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 0 rgba(60, 40, 20, 0.18));
}
body #students .mini.gx[data-game] .hud {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
body #students .mini.gx[data-game] .hud span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  color: #2b3a3a;
  font-variant-numeric: tabular-nums;
}
body #students .mini.gx[data-game] .hud .hc::before {
  content: '';
  width: 10px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 32%, #fff6b8 0 14%, #ffd23c 34%, #e9a514 78%);
}
body #students .mini.gx[data-game] .pop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  font-size: 18px;
  font-weight: 800;
  color: #f2a300;
  text-shadow: 0 1px 0 #fff;
  opacity: 0;
  pointer-events: none;
}
body #students .mini.gx[data-game] .pop.on {
  animation: gx-pop 1.1s ease-out forwards;
}
@keyframes gx-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -34px) scale(1);
  }
}
/* question: the game's own card, stacked answers with letter keys */
body #students .mini.gx[data-game] .b-trail {
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 18px;
  height: 52px;
  margin-left: -9px;
  border-radius: 9px 9px 50% 50%;
  background: linear-gradient(
    #fff6c4,
    #ffc23a 35%,
    rgba(240, 120, 20, 0.55) 70%,
    rgba(240, 120, 20, 0)
  );
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: 50% 0;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}
body #students .mini.gx[data-game].jet .b-trail {
  opacity: 1;
  transform: scaleY(1);
  animation: gx-flick 0.14s steps(2) infinite;
}
body #students .mini.gx[data-game].jet .boro img {
  transform: rotate(-6deg);
}
@keyframes gx-flick {
  50% {
    transform: scaleY(0.86);
  }
}
/* boost label: belongs to the game world, shows only once he is flying */
body #students .mini.gx[data-game] .g-boost {
  position: absolute;
  left: 50%;
  top: 13px;
  z-index: 3;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(156, 63, 0, 0.85),
    0 0 14px rgba(255, 170, 40, 0.6);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
  pointer-events: none;
}
body #students .mini.gx[data-game].boost .g-boost {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
/* the question: the same quiz card the game itself pops, over a dimmed and blurred level */
body #students .mini.gx[data-game] .dim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(20, 26, 30, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
body #students .mini.gx[data-game].ask .dim {
  opacity: 1;
}
body #students .mini.gx[data-game] .hud {
  transition: opacity 0.25s ease;
}
body #students .mini.gx[data-game].ask .hud {
  opacity: 0;
}
body #students .mini.gx[data-game] .g-q {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: block;
  width: calc(100% - 40px);
  max-width: 292px;
  padding: 14px 14px 14px;
  border-radius: 14px;
  background: #fbf6e4;
  color: #1b170e;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
body #students .mini.gx[data-game].ask .g-q {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
body #students .mini.gx[data-game] .g-qh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 16px;
  color: var(--orange);
  white-space: nowrap;
}
body #students .mini.gx[data-game] .g-qh span {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
}
body #students .mini.gx[data-game] .g-qh span::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
body #students .mini.gx[data-game] .g-tm {
  flex: none;
  width: 44px;
  height: 4px;
  border-radius: 3px;
  background: rgba(27, 23, 14, 0.1);
  overflow: hidden;
}
body #students .mini.gx[data-game] .g-tm i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--orange);
  transform-origin: 0 50%;
  transform: scaleX(1);
}
body #students .mini.gx[data-game].ask .g-tm i {
  transform: scaleX(0.42);
  transition: transform 1.7s linear 0.3s;
}
body #students .mini.gx[data-game][dir='rtl'] .g-tm i {
  transform-origin: 100% 50%;
}
body #students .mini.gx[data-game] .g-q p {
  margin: 6px 0 10px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1b170e;
  text-wrap: balance;
}
body #students .mini.gx[data-game] .g-os {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  counter-reset: gk;
}
body #students .mini.gx[data-game] .g-os span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(27, 23, 14, 0.14);
  font-size: 13px;
  font-weight: 500;
  color: #1b170e;
  counter-increment: gk;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease,
    opacity 0.25s ease;
}
body #students .mini.gx[data-game] .g-os span::before {
  content: counter(gk, upper-alpha);
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(27, 23, 14, 0.06);
  font-size: 10px;
  font-weight: 600;
  color: rgba(27, 23, 14, 0.55);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
body #students .mini.gx[data-game].tap .g-os .ok {
  transform: scale(0.97);
  box-shadow: inset 0 0 0 1px var(--orange);
  background: rgba(211, 84, 0, 0.06);
}
body #students .mini.gx[data-game].ok .g-os .ok {
  background: rgba(72, 156, 102, 0.18);
  color: #1f4e2a;
  box-shadow: inset 0 0 0 1px #2d6a3a;
}
body #students .mini.gx[data-game].ok .g-os .ok::before {
  background: #2d6a3a;
  color: #fff;
}
body #students .mini.gx[data-game].ok .g-os span:not(.ok) {
  opacity: 0.45;
}
body #students .mini.gx[data-game].now * {
  transition: none !important;
}
body #students .mini.gx[data-game].boost .hud {
  opacity: 0;
}
/* answers stacked in one column with A-D keys, like the Capyo Jump quiz card (Max 10-29 review) */
body #students .mini.gx[data-game] .g-q {
  height: auto;
  width: calc(100% - 36px);
  max-width: 300px;
  padding: 12px 13px 13px;
}
body #students .mini.gx[data-game] .g-q p {
  margin: 5px 0 9px;
}
body #students .mini.gx[data-game] .g-os {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
body #students .mini.gx[data-game] .g-os span {
  flex: none;
  height: 28px;
  padding: 0 8px;
  font-size: 13px;
}
/* Capyo world: painted village-to-sky backdrop (parallax), grassy platforms and soft clouds drawn in the same style (Max 10-29 review 2) */
body #students .mini.gx[data-game] {
  background: #a9d4f0;
}
body #students .mini.gx[data-game] .sky {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
  pointer-events: none;
}
body #students .mini.gx[data-game] .sky img {
  display: block;
  width: 100%;
  height: auto;
}
body #students .mini.gx[data-game] .pf {
  width: 28%;
  height: auto;
  aspect-ratio: 420/50;
  margin-left: -14%;
  margin-top: -3px;
  border-radius: 0;
  background: url(https://assets-dev.capyodev.com/images/marketing-site/2934508939d6dd94d0f0faa4be61fa65cf473d3e0be32251ba9a4100d4c41507.webp) center/100% 100% no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 3px 2px rgba(40, 60, 30, 0.25));
}
body #students .mini.gx[data-game] .pf::before {
  display: none;
}
body #students .mini.gx[data-game] .cl {
  width: 104px;
  height: 53px;
  margin-left: -52px;
  background-image: url(https://assets-dev.capyodev.com/images/marketing-site/6e6b4c7b2632c894d1dd499d0ec7fe8329ff4f5d9974bd845762a8ac4d262d7f.webp);
  opacity: 0.92;
}
/* the painted backdrop carries its own clouds; the old world clouds doubled up over the village */
body #students .mini.gx[data-game] .cl {
  display: none;
}
/* question card drawn like the game around it: cream panel, dark-brown cartoon outline, solid chunky shadows, vertical answer buttons (Max 10-29 review 3) */
body #students .mini.gx[data-game] .dim {
  background: rgba(52, 34, 18, 0.32);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
body #students .mini.gx[data-game] .g-q {
  width: calc(100% - 30px);
  max-width: 310px;
  padding: 11px 12px 13px;
  border-radius: 18px;
  background: #fff6e2;
  color: #3a2414;
  border: 3px solid #4a2c17;
  box-shadow: 0 5px 0 #4a2c17;
}
body #students .mini.gx[data-game] .g-qh {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 15px;
}
body #students .mini.gx[data-game] .g-qh span {
  padding: 2px 9px;
  border-radius: 999px;
  background: #ef8a2b;
  border: 2px solid #4a2c17;
  gap: 0;
}
body #students .mini.gx[data-game] .g-qh span::before {
  display: none;
}
body #students .mini.gx[data-game] .g-tm {
  width: 46px;
  height: 9px;
  border-radius: 6px;
  background: #f3dfbd;
  border: 2px solid #4a2c17;
}
body #students .mini.gx[data-game] .g-tm i {
  border-radius: 4px;
  background: #ef8a2b;
}
body #students .mini.gx[data-game] .g-q p {
  margin: 7px 0 9px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #3a2414;
}
body #students .mini.gx[data-game] .g-os {
  gap: 6px;
}
body #students .mini.gx[data-game] .g-os span {
  height: 27px;
  padding: 0 8px 0 5px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 #4a2c17;
  border: 2px solid #4a2c17;
  font-size: 13px;
  font-weight: 700;
  color: #3a2414;
}
body #students .mini.gx[data-game] .g-os span::before {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #ffd98a;
  color: #4a2c17;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px #4a2c17;
}
body #students .mini.gx[data-game].tap .g-os .ok {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #4a2c17;
  background: #fff1d6;
}
body #students .mini.gx[data-game].ok .g-os .ok {
  background: #a6dc6a;
  color: #24400f;
  box-shadow: 0 3px 0 #4a2c17;
}
body #students .mini.gx[data-game].ok .g-os .ok::before {
  background: #5aa133;
  color: #fff;
}
body #students .mini.gx[data-game].ok .g-os span:not(.ok) {
  opacity: 0.5;
}
