/* GFK-2865: native horizontal scenes. Only the active, visible scene can animate. */
.student-world {
  padding-block: 64px 48px;
  color: #38244e;
  min-width: 0;
}
.student-world *,
.student-world *::before,
.student-world *::after {
  box-sizing: border-box;
}
.world-heading {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}
.world-eyebrow {
  color: #8050b7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.world-heading h2 {
  margin: 0;
  font:
    900 clamp(34px, 4vw, 54px) / 1.1 Nunito,
    sans-serif;
  letter-spacing: -0.025em;
}
.world-intro {
  margin: 16px auto 0;
  font-size: 18px;
  color: #796585;
  line-height: 1.5;
}
.world-stage {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 8% 8px 0;
  border-radius: 30px;
  overscroll-behavior-x: contain;
}
.world-stage::-webkit-scrollbar {
  display: none;
}
.world-panel {
  flex: 0 0 100%;
  min-width: 0;
  height: 490px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  scroll-snap-align: start;
  background: #d6ebec;
}
.world-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  z-index: -3;
}
.world-scenery {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #eff5f4 1%, #eff5f4ed 29%, #eff5f432 65%, #e0e8ef0a),
    linear-gradient(0deg, #4f426b30, transparent 45%);
}
.world-panel-collect .world-scenery {
  background:
    linear-gradient(90deg, #201a3ff5, #312751df 34%, #3a2a5960 80%),
    linear-gradient(0deg, #241537a8, transparent);
}
.world-panel-evolve .world-scenery {
  background:
    linear-gradient(90deg, #2c1c3df5, #38233ed9 35%, #41243b42 80%),
    linear-gradient(0deg, #361c3b90, transparent);
}
.world-panel-collect,
.world-panel-evolve {
  color: #fff3e7;
}
.world-copy {
  position: relative;
  z-index: 5;
  width: 39%;
  padding: 64px 0 0 40px;
  pointer-events: none;
}
.world-chapter {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  opacity: 0.6;
}
.world-copy h3 {
  font:
    900 clamp(31px, 3.2vw, 44px) / 1.1 Nunito,
    sans-serif;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
}
.world-copy p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  opacity: 0.8;
  max-width: 290px;
}
.world-art {
  position: absolute;
  width: 64%;
  height: 100%;
  top: 0;
  right: 0;
}
.world-art img {
  display: block;
  object-fit: contain;
  max-width: 100%;
}
.world-floor {
  position: absolute;
  left: 13%;
  right: 5%;
  bottom: 7%;
  height: 17%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #30223e3b, transparent 67%);
}
.world-chest {
  position: absolute;
  width: 64%;
  left: 17%;
  bottom: 0;
  z-index: 3;
}
.world-chest-closed {
  opacity: 0;
  width: 52%;
  left: 23%;
  bottom: 3%;
}
.world-treasure-light {
  position: absolute;
  inset: 14% 12% 3%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff5b8a0, transparent 65%);
}
.world-prize {
  position: absolute;
  z-index: 4;
}
.world-prize-card {
  width: 24%;
  left: 39%;
  top: 11%;
  rotate: -9deg;
}
.world-prize-coin {
  width: 17%;
  left: 11%;
  top: 34%;
  rotate: -17deg;
}
.world-prize-gem {
  width: 15%;
  right: 9%;
  top: 30%;
  rotate: 17deg;
}
.world-collectible {
  position: absolute;
  width: 28%;
  top: 12%;
  left: 5%;
  rotate: -12deg;
}
.world-collectible-1 {
  left: 34%;
  top: 8%;
  rotate: 0deg;
  z-index: 2;
}
.world-collectible-2 {
  left: 63%;
  rotate: 12deg;
}
.world-premium {
  position: relative;
  border-radius: 14px;
  box-shadow: 0 16px 20px #120e2838;
}
.world-premium > img {
  width: 100%;
  height: auto;
}
.world-card-name {
  position: absolute;
  top: 69%;
  left: 12%;
  right: 12%;
  color: #fff3d4;
  text-align: center;
  text-shadow: 0 1px 3px #34152a;
  font:
    900 20px / 1 Nunito,
    sans-serif;
}
.world-foil {
  position: absolute;
  inset: 3%;
  border-radius: 12%;
  background: linear-gradient(
    115deg,
    transparent 15%,
    #fff8d15c 27%,
    #b0e5ff12 33%,
    transparent 47%,
    #ffd48d40 70%,
    transparent 78%
  );
  opacity: 0.5;
}
.world-art .world-card-companion {
  position: absolute;
  width: 112%;
  max-width: none;
  left: -6%;
  bottom: -24%;
}
.world-incubation-ring {
  position: absolute;
  width: 69%;
  height: 22%;
  bottom: 16%;
  left: 15%;
  border: 2px solid #ba91eb;
  border-radius: 50%;
  background: radial-gradient(ellipse, #d7bbefaa, #fff7 55%, transparent 72%);
  box-shadow: 0 0 0 8px #dbc4ef40;
}
.world-egg-shell {
  position: absolute;
  width: 28%;
  max-width: 215px;
  left: 16%;
  bottom: 23%;
  z-index: 2;
}
.world-hatch-friend {
  position: absolute;
  width: 46%;
  max-width: 340px;
  right: 7%;
  bottom: 14%;
  z-index: 3;
}
.world-potion {
  position: absolute;
  width: 16%;
  max-width: 120px;
  right: 24%;
  top: 12%;
  rotate: 12deg;
  z-index: 4;
}
.world-potion-note {
  position: absolute;
  top: 9%;
  right: 8%;
  font-size: 11px;
  font-weight: 900;
  color: #70508b;
}
.world-wait {
  position: absolute;
  bottom: 6%;
  left: 18%;
  right: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #62457e;
  font-size: 12px;
  font-weight: 900;
}
.world-wait img {
  width: 33px;
  height: 33px;
}
.world-hatch-light {
  position: absolute;
  inset: 13% 10% 17%;
  background: radial-gradient(ellipse, #fff9d5bf, #b4f9f055 40%, transparent 65%);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 4;
}
.world-care-friend {
  position: absolute;
  width: 46%;
  max-width: 360px;
  left: 25%;
  bottom: 20%;
}
.world-berry {
  position: absolute;
  width: 20%;
  left: 2%;
  top: 43%;
  z-index: 4;
  rotate: -18deg;
}
.world-heart {
  position: absolute;
  width: 13%;
  right: 14%;
  top: 14%;
  rotate: 12deg;
}
.world-xp {
  position: absolute;
  bottom: 8%;
  left: 22%;
  width: 63%;
  background: #fff9edee;
  border: 1px solid #fff8;
  border-radius: 18px;
  padding: 14px 18px 14px 42px;
  color: #644270;
  box-shadow: 0 7px 20px #3424531a;
}
.world-xp > img {
  width: 40px;
  height: 50px;
  position: absolute;
  left: -7px;
  top: 4px;
}
.world-xp > span {
  display: block;
  font-size: 12px;
  font-weight: 900;
}
.world-xp i {
  display: block;
  background: #e7dae8;
  border-radius: 20px;
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
}
.world-xp b {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a577df, #d9b8ff);
  transform-origin: left;
}
.world-evolution {
  position: absolute;
}
.world-calderon {
  width: 46%;
  top: -5%;
  right: -2%;
  filter: brightness(0) opacity(0.36);
}
.world-mystery {
  position: absolute;
  right: 9%;
  top: 8%;
  color: #f6d6f7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  z-index: 2;
}
.world-brasqui {
  width: 52%;
  right: 13%;
  bottom: 10%;
  opacity: 0.88;
}
.world-fagui {
  width: 58%;
  left: 0;
  bottom: 5%;
  z-index: 4;
}
.world-magic {
  position: absolute;
  z-index: 3;
  inset: 23% 10% 7% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff5cf88, #ffc96b22 40%, transparent 68%);
  opacity: 0.3;
}
.world-lineage {
  position: absolute;
  bottom: 5%;
  left: 17%;
  right: 3%;
  margin: 0;
  text-align: center;
  color: #ffe7cb;
  font-weight: 900;
  font-size: 14px;
  z-index: 5;
}
.world-lineage span {
  color: #b596c6;
  padding-inline: 10px;
}
.world-spark {
  position: absolute;
  width: 13px;
  height: 13px;
  background: #fff6d9;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.65;
}
.world-spark-a {
  left: 20%;
  top: 23%;
}
.world-spark-b {
  right: 8%;
  top: 49%;
  width: 8px;
  height: 8px;
}
.world-spark-c {
  left: 16%;
  bottom: 15%;
  width: 7px;
  height: 7px;
}
.world-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
}
.world-hint {
  font-size: 12px;
  color: #8b759a;
  white-space: nowrap;
}
.world-hint span {
  margin-left: 12px;
}
.world-controls:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 20px;
}
.world-tabs {
  display: flex;
  gap: 7px;
}
.world-tabs button,
.world-play {
  border: 0;
  min-height: 44px;
  font:
    800 12px / 1.2 Nunito,
    sans-serif;
  cursor: pointer;
}
.world-tabs button {
  display: flex;
  gap: 7px;
  align-items: center;
  background: #f0e8f7;
  color: #846c95;
  padding: 10px 13px;
  border-radius: 24px;
}
.world-tab-number {
  font-size: 10px;
  opacity: 0.7;
}
.world-tabs [aria-selected="true"] {
  background: #7850b5;
  color: #fff;
}
.world-play {
  background: transparent;
  color: #806392;
  padding: 10px 2px;
  min-width: 52px;
}
.world-play:disabled {
  opacity: 0.6;
  cursor: default;
}
.student-world :is(button, .world-stage):focus-visible {
  outline: 3px solid #814fc0;
  outline-offset: 3px;
}
/* Animation names exist only on the active panel. Pausing freezes its composed state. */
.world-motion .is-active .world-chest-closed {
  animation: world-chest-close 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-chest-open {
  animation: world-chest-open 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-prize {
  animation: world-prize 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-prize-coin {
  animation-delay: 0.12s;
}
.world-motion .is-active .world-prize-gem {
  animation-delay: 0.24s;
}
.world-motion .is-active .world-collectible {
  animation: world-card-rise 6s ease-in-out infinite paused;
  animation-delay: var(--delay);
}
.world-motion .is-active .world-card-companion {
  animation: world-companion 6s ease-in-out infinite paused;
  animation-delay: var(--delay);
}
.world-motion .is-active .world-egg-shell {
  animation: world-egg 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-potion {
  animation: world-potion 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-hatch-friend {
  animation: world-hatch 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-hatch-light {
  animation: world-hatch-light 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-care-friend {
  animation: world-fed 6s ease-in-out infinite paused;
}
.world-motion .is-active .world-berry {
  animation: world-feed 6s ease-in-out infinite paused;
}
.world-motion .is-active .world-heart {
  animation: world-heart 6s ease-in-out infinite paused;
}
.world-motion .is-active .world-xp b {
  animation: world-xp 6s ease-in-out infinite paused;
}
.world-motion .is-active .world-fagui {
  animation: world-evolve-first 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-brasqui {
  animation: world-evolve-next 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-magic {
  animation: world-magic 7s ease-in-out infinite paused;
}
.world-motion .is-active .world-spark {
  animation: world-spark 4s ease-in-out infinite paused;
}
.world-running
  .is-active
  :is(
    .world-chest,
    .world-prize,
    .world-collectible,
    .world-card-companion,
    .world-egg-shell,
    .world-potion,
    .world-hatch-friend,
    .world-hatch-light,
    .world-care-friend,
    .world-berry,
    .world-heart,
    .world-xp b,
    .world-fagui,
    .world-brasqui,
    .world-magic,
    .world-spark
  ) {
  animation-play-state: running;
}
@keyframes world-egg {
  0%,
  16% {
    opacity: 1;
    transform: translateX(30%) rotate(0);
  }
  25%,
  39% {
    opacity: 1;
    transform: translateX(30%) rotate(-4deg);
  }
  30%,
  44% {
    opacity: 1;
    transform: translateX(30%) rotate(4deg);
  }
  51% {
    opacity: 1;
    transform: translateX(30%) scale(1.07);
  }
  58%,
  100% {
    opacity: 0;
    transform: translateX(30%) scale(0.55);
  }
}
@keyframes world-potion {
  0%,
  12% {
    opacity: 0;
    transform: translate(30%, -15%) scale(0.8);
  }
  22%,
  32% {
    opacity: 1;
    transform: translate(0, 0) rotate(-24deg);
  }
  44% {
    opacity: 1;
    transform: translate(-55%, 12%) rotate(-47deg);
  }
  54%,
  100% {
    opacity: 0;
    transform: translate(-65%, 18%) scale(0.7);
  }
}
@keyframes world-hatch {
  0%,
  49% {
    opacity: 0;
    transform: translateX(-22%) scale(0.65);
  }
  62%,
  90% {
    opacity: 1;
    transform: translateX(-22%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-22%) scale(0.98);
  }
}
@keyframes world-hatch-light {
  0%,
  33%,
  80%,
  100% {
    opacity: 0;
    transform: scale(0.65);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
  }
  65% {
    opacity: 0.3;
    transform: scale(1);
  }
}
@keyframes world-chest-close {
  0%,
  22% {
    opacity: 1;
    transform: rotate(0);
  }
  8%,
  16% {
    transform: rotate(-4deg);
  }
  12%,
  20% {
    transform: rotate(4deg);
  }
  28%,
  95% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
  }
}
@keyframes world-chest-open {
  0%,
  23% {
    opacity: 0;
    transform: scale(0.93);
  }
  33%,
  92% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}
@keyframes world-prize {
  0%,
  25% {
    opacity: 0;
    transform: translateY(110px) scale(0.4);
  }
  42%,
  84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
}
@keyframes world-card-rise {
  0%,
  32%,
  100% {
    transform: translateY(0) scale(0.95);
  }
  10%,
  24% {
    transform: translateY(-13px) scale(1.08);
  }
}
@keyframes world-companion {
  0%,
  32%,
  100% {
    transform: translateY(0) scale(0.9);
  }
  10%,
  24% {
    transform: translateY(-15px) scale(1.1);
  }
}
@keyframes world-fed {
  0%,
  30%,
  100% {
    transform: translateY(0);
  }
  40%,
  65% {
    transform: translateY(-11px) rotate(2deg);
  }
}
@keyframes world-feed {
  0%,
  12%,
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  40%,
  60% {
    opacity: 0;
    transform: translate(90%, -10%) scale(0.35);
  }
  80% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes world-heart {
  0%,
  27%,
  100% {
    opacity: 0;
    transform: translateY(18px) scale(0.6);
  }
  43%,
  70% {
    opacity: 1;
    transform: translateY(-7px) scale(1.1);
  }
  85% {
    opacity: 0;
    transform: translateY(-28px);
  }
}
@keyframes world-xp {
  0%,
  28%,
  100% {
    transform: scaleX(0.5);
  }
  55%,
  85% {
    transform: scaleX(1);
  }
}
@keyframes world-evolve-first {
  0%,
  22%,
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  46%,
  78% {
    opacity: 0.18;
    transform: translate(-8%, 5%) scale(0.8);
  }
}
@keyframes world-evolve-next {
  0%,
  22%,
  100% {
    transform: translate(0, 0) scale(0.9);
    opacity: 0.65;
  }
  46%,
  78% {
    transform: translate(-22%, 4%) scale(1.15);
    opacity: 1;
  }
}
@keyframes world-magic {
  0%,
  20%,
  65%,
  100% {
    opacity: 0;
    transform: scale(0.7);
  }
  35% {
    opacity: 1;
    transform: scale(1.18);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.3);
  }
}
@keyframes world-spark {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7) rotate(0);
  }
  50% {
    opacity: 0.85;
    transform: scale(1) rotate(35deg);
  }
}
@media (min-width: 1800px) {
  .world-panel {
    height: 540px;
  }
  .world-copy {
    padding-top: 80px;
  }
}
@media (max-width: 1000px) {
  .world-panel {
    height: 440px;
  }
  .world-copy {
    padding: 44px 0 0 28px;
  }
  .world-copy h3 {
    font-size: 34px;
  }
  .world-copy p {
    font-size: 15px;
  }
  .world-card-name {
    font-size: 16px;
  }
  .world-hint {
    display: none;
  }
  .world-bottom {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .student-world {
    padding-block: 40px 24px;
  }
  .world-heading {
    margin-bottom: 24px;
    text-align: left;
  }
  .world-heading h2 {
    font-size: 35px;
  }
  .world-intro {
    font-size: 15px;
    margin-top: 12px;
  }
  .world-stage {
    gap: 12px;
    padding-right: 6%;
    border-radius: 24px;
  }
  .world-panel {
    height: 472px;
    border-radius: 24px;
  }
  .world-landscape {
    object-position: 62% 50%;
  }
  .world-scenery {
    background: linear-gradient(180deg, #eff5f4 0%, #eff5f4ed 30%, #eff5f438 58%, #aca4bd24);
  }
  .world-panel-collect .world-scenery {
    background: linear-gradient(180deg, #241a40f5, #322346df 36%, #35274c70 75%, #25183999);
  }
  .world-panel-evolve .world-scenery {
    background: linear-gradient(180deg, #2c1c3df5, #38233ed9 35%, #41243b42 80%);
  }
  .world-copy {
    width: 100%;
    padding: 25px 23px 0;
  }
  .world-chapter {
    font-size: 9px;
  }
  .world-copy h3 {
    font-size: 30px;
    margin: 10px 0 9px;
    max-width: 260px;
  }
  .world-copy p {
    font-size: 14px;
    line-height: 1.45;
    max-width: 300px;
  }
  .world-art {
    width: 100%;
    height: 63%;
    bottom: 0;
    top: auto;
  }
  .world-chest {
    width: 72%;
    left: 14%;
    bottom: -2%;
  }
  .world-chest-closed {
    width: 58%;
    left: 21%;
    bottom: 2%;
  }
  .world-prize-card {
    width: 24%;
    top: 0;
  }
  .world-prize-coin {
    left: 9%;
    top: 27%;
  }
  .world-prize-gem {
    top: 23%;
    right: 9%;
  }
  .world-collectible {
    top: 13%;
    width: 32%;
    left: 1%;
  }
  .world-collectible-1 {
    left: 32%;
    top: 8%;
  }
  .world-collectible-2 {
    left: 63%;
  }
  .world-art .world-card-companion {
    bottom: -32%;
  }
  .world-card-name {
    font-size: 12px;
  }
  .world-egg-shell {
    width: 35%;
    left: 11%;
    bottom: 25%;
  }
  .world-hatch-friend {
    width: 48%;
    right: 5%;
    bottom: 19%;
  }
  .world-potion {
    width: 17%;
    top: 4%;
    right: 23%;
  }
  .world-potion-note {
    top: 0;
    right: 8%;
    font-size: 9px;
  }
  .world-wait {
    bottom: 7%;
    left: 8%;
    right: 8%;
    font-size: 11px;
  }
  .world-wait img {
    width: 27px;
    height: 27px;
  }
  .world-care-friend {
    width: 60%;
    left: 20%;
    bottom: 20%;
  }
  .world-heart {
    top: 7%;
  }
  .world-berry {
    top: 37%;
  }
  .world-xp {
    bottom: 7%;
    left: 17%;
    width: 73%;
    padding-block: 11px;
  }
  .world-xp > span {
    font-size: 11px;
  }
  .world-xp > img {
    height: 44px;
  }
  .world-calderon {
    width: 54%;
    right: 2%;
    top: -1%;
  }
  .world-mystery {
    top: 5%;
    right: 6%;
    font-size: 9px;
  }
  .world-fagui {
    width: 60%;
    bottom: 7%;
  }
  .world-brasqui {
    width: 59%;
    right: 2%;
    bottom: 19%;
  }
  .world-lineage {
    font-size: 12px;
    bottom: 6%;
    left: 10%;
  }
  .world-bottom {
    margin-top: 9px;
  }
  .world-controls:not([hidden]) {
    gap: 7px;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .world-tabs {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 6px;
  }
  .world-tabs button {
    flex: none;
    padding: 10px 12px;
    font-size: 12px;
    gap: 4px;
  }
  .world-tab-number {
    display: none;
  }
  .world-play {
    font-size: 12px;
    min-width: 52px;
    flex: none;
  }
}
@media (max-width: 359px) {
  .world-heading h2 {
    font-size: 31px;
  }
  .world-panel {
    height: 448px;
  }
  .world-copy {
    padding-inline: 20px;
  }
  .world-copy h3 {
    font-size: 27px;
  }
  .world-copy p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .student-world.world-motion .is-active * {
    animation: none;
    scroll-behavior: auto;
  }
}
