:root {
  font-family: "Trebuchet MS", "DejaVu Sans", sans-serif;
  color: #302952;
  background: #faf8ff;
  font-synthesis: none;
  --purple: #7055d9;
  --ink: #302952;
  --muted: #665f7f;
  --line: #e8e1f6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 4px solid #137f88;
  outline-offset: 5px;
}
button {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.65;
}
.topbar {
  min-height: 104px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 2px solid #efe9fa;
}
.brand {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #4d3c82;
}
.brand strong {
  color: #9a4dd2;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1px;
  font-weight: 600;
  color: #77708c;
  margin-top: 3px;
}
.brand-mark {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 49px;
  height: 43px;
  border-radius: 16px;
  background: #65d6c5;
  border: 3px solid #2cb6a6;
  box-shadow: 0 4px 0 #d5f6ed;
  transform: rotate(-7deg);
}
.brand-mark:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  background: #2cb6a6;
  left: 20px;
  top: -11px;
  border-radius: 3px;
}
.brand-mark:after {
  content: "";
  position: absolute;
  height: 6px;
  width: 13px;
  border-bottom: 3px solid #28486c;
  border-radius: 50%;
  bottom: 6px;
}
.brand-mark span {
  height: 9px;
  width: 7px;
  background: #28486c;
  border-radius: 50%;
  margin-top: -3px;
}
.topbar nav {
  display: flex;
  gap: 10px;
}
.topbar nav button {
  background: none;
  border: 0;
  border-radius: 15px;
  padding: 12px 23px;
  min-height: 48px;
  font-size: 17px;
  font-weight: 800;
}
.topbar nav .nav-active {
  background: #f0e9ff;
  color: #6e4acb;
}
.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #ffdf99;
  background: #fff3d5;
  color: #82551a;
  font-weight: 900;
  font-size: 20px;
}
.profile-chip small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #726887;
  margin-bottom: 5px;
}
.profile-chip strong {
  font-size: 15px;
}
.dashboard {
  max-width: 1240px;
  padding: 30px;
  margin: auto;
}
.mission-content {
  min-width: 0;
}
.welcome {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 33px 48px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 80% 65%, #d9f6f1 0, transparent 35%),
    linear-gradient(115deg, #f0e7ff, #f4edff 50%, #e7f8fc);
  overflow: hidden;
  min-height: 328px;
}
.welcome:before,
.welcome:after {
  position: absolute;
  content: "";
  width: 110px;
  height: 42px;
  border-radius: 100px;
  background: #ffffff85;
  right: -25px;
  top: 45px;
  transform: rotate(-12deg);
}
.welcome:after {
  left: 44%;
  top: auto;
  bottom: -21px;
  width: 150px;
}
.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}
.eyebrow {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  color: #6955a3;
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow > span {
  color: #d99516;
  font-size: 21px;
}
.welcome h1 {
  font-size: clamp(42px, 4.4vw, 60px);
  line-height: 1.13;
  letter-spacing: -2.5px;
  margin: 12px 0 17px;
  font-weight: 900;
}
.welcome h1 > span {
  color: #7b4acb;
}
.welcome p {
  font-size: 18px;
  color: #5e547c;
  max-width: 420px;
  margin: 0 0 20px;
}
.hero-chips {
  display: flex;
  gap: 12px;
}
.hero-chips span {
  background: #ffffffb3;
  border: 1px solid #ffffff;
  border-radius: 30px;
  padding: 8px 16px;
  color: #6d568a;
  font-size: 14px;
  font-weight: 800;
}
.hero-art {
  width: 340px;
  height: 300px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.pip-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-pip {
  width: 340px;
  height: 340px;
  position: absolute;
  bottom: -25px;
  left: -5px;
  filter: drop-shadow(0 12px 10px #7770ad20);
}
.hero-speech {
  position: absolute;
  right: 10px;
  top: -7px;
  background: white;
  padding: 12px 19px;
  border-radius: 19px 19px 19px 3px;
  transform: rotate(7deg);
  font-size: 17px;
  font-weight: 800;
  color: #7953ba;
  z-index: 2;
  box-shadow: 0 4px 0 #d8ccf34f;
}
.hero-star {
  position: absolute;
  color: #f5b842;
  z-index: 3;
  font-size: 34px;
  text-shadow: 0 3px 0 #e4a3243b;
}
.star-one {
  left: -20px;
  top: 18px;
  transform: rotate(-16deg);
}
.star-two {
  right: -9px;
  bottom: 55px;
  color: #e88ca4;
  font-size: 45px;
}
.star-three {
  left: 10px;
  bottom: 28px;
  color: #1caeae;
  font-size: 40px;
}
.mission-banner {
  display: flex;
  align-items: center;
  gap: 21px;
  background: white;
  border: 2px solid #e9e0fb;
  border-bottom: 6px solid #e9e0fb;
  border-radius: 23px;
  padding: 24px;
  margin: 23px 0 35px;
}
.mission-number {
  display: grid;
  place-items: center;
  width: 68px;
  height: 70px;
  border-radius: 20px;
  background: #f0e6ff;
  color: #8654cc;
  font-size: 37px;
  font-weight: 900;
  border: 2px solid #e4d6fb;
  transform: rotate(-5deg);
  flex-shrink: 0;
}
.mission-description {
  flex: 1;
}
.mission-description small,
.new-keys > small {
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: #796c96;
}
.mission-description h2 {
  font-size: 25px;
  margin: 5px 0 7px;
  letter-spacing: -0.6px;
}
.mission-description p {
  font-size: 16px;
  color: #655a7d;
  margin: 0;
}
.new-keys {
  text-align: center;
  margin-right: 8px;
  max-width: 190px;
}
.new-keys > div {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.mini-key {
  display: grid;
  place-items: center;
  width: 36px;
  height: 39px;
  font-size: 23px;
  color: #8560bd;
  background: #faf5ff;
  border: 2px solid #e0d1f4;
  border-bottom-width: 5px;
  border-radius: 8px;
  font-weight: 700;
}
.primary,
.secondary {
  border-radius: 15px;
  min-height: 52px;
  padding: 14px 22px;
  font-size: 18px;
  font-weight: 800;
  border: 2px solid #7054d0;
  border-bottom: 5px solid #5a3cb8;
  background: #8060e4;
  color: #fff;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}
.primary:active {
  transform: translateY(2px);
}
.primary:disabled {
  opacity: 0.55;
}
.secondary {
  background: #fff;
  color: #7054b0;
  border-color: #ded2f2;
  border-bottom-color: #cdbde9;
}
.secondary:hover {
  background: #f5efff;
}
.big-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 205px;
  font-size: 23px;
  min-height: 68px;
  flex-shrink: 0;
}
.big-play > span {
  font-size: 28px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.section-label h2,
.trail-heading h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 7px;
}
.section-label p,
.trail-heading p {
  font-size: 16px;
  color: #736585;
  margin: 0;
}
.progress-pill {
  border-radius: 30px;
  padding: 11px 17px;
  background: #fff0c9;
  color: #765419;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.activities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.activity-card {
  padding: 0;
  border: 2px solid var(--card-border, #dfcff7);
  border-bottom-width: 6px;
  border-radius: 23px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  position: relative;
  display: flex;
  flex-direction: column;
  --card-border: #dfcff7;
  --card-color: #754dbd;
}
.activity-card:hover:not(:disabled) {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 0 10px 18px #7869a51a;
}
.activity-card:disabled {
  opacity: 1;
}
.activity-copy {
  padding: 20px 21px 14px;
  flex: 1;
}
.activity-copy small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--card-color);
}
.activity-copy h3 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 6px 0 9px;
}
.activity-copy p {
  font-size: 16px;
  color: #665e78;
  margin: 0;
}
.card-status {
  display: block;
  margin: 0 20px 19px;
  padding: 11px 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--card-color);
  background: var(--card-pale, #f2eaff);
  border-radius: 11px;
  text-align: center;
}
.activity-card:disabled .card-status {
  background: #f4f1f7;
  color: #71677e;
  font-size: 14px;
}
.completed .card-status {
  color: #237461;
  background: #e0f5e9;
}
.activity-1 {
  --card-border: #acdfe9;
  --card-color: #23758b;
  --card-pale: #e4f8fc;
}
.activity-2 {
  --card-border: #f5c99b;
  --card-color: #8b581f;
  --card-pale: #fff0da;
}
.activity-3 {
  --card-border: #b3e2c8;
  --card-color: #287455;
  --card-pale: #e4f7ec;
}
.activity-4 {
  --card-border: #edbfd3;
  --card-color: #a54578;
  --card-pale: #fceaf3;
}
.activity-5 {
  --card-border: #d5c5f5;
  --card-color: #7650ae;
  --card-pale: #f1eaff;
}
.activity-6 {
  --card-border: #eacd80;
  --card-color: #805b1e;
  --card-pale: #fff4d4;
}
.wide-card {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  background: #fffcf2;
}
.wide-card .activity-art {
  height: 170px;
  width: 230px;
  flex-shrink: 0;
}
.wide-card .activity-copy {
  padding: 20px 28px;
}
.wide-card .card-status {
  margin: 20px 28px 20px 10px;
  min-width: 190px;
}
.activity-art {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
  isolation: isolate;
  background: #efe5ff;
}
.art-1 {
  background: linear-gradient(150deg, #dff5fc, #cceef5);
}
.art-2 {
  background: linear-gradient(#fff1d6, #ffdfb0);
}
.art-3 {
  background: linear-gradient(#d8f8ec, #e7f9df);
}
.art-4 {
  background: linear-gradient(#ffe4ed, #ffedf2);
}
.art-5 {
  background: linear-gradient(#ece2ff, #f6ebff);
}
.art-6 {
  background: #fff3ca;
}
.art-spark {
  position: absolute;
  width: 20px;
  height: 25px;
  background: #ffce52;
  clip-path: polygon(
    50% 0,
    62% 35%,
    100% 50%,
    62% 62%,
    50% 100%,
    37% 65%,
    0 50%,
    37% 35%
  );
}
.spark-a {
  left: 18%;
  top: 19%;
  transform: rotate(-14deg);
}
.spark-b {
  right: 19%;
  bottom: 15%;
  width: 14px;
  height: 20px;
  background: #fb9d9f;
}
.toy-keyboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  width: 168px;
  padding: 13px;
  background: #9c7ddd;
  border: 3px solid #8460c9;
  border-bottom: 9px solid #7855b9;
  border-radius: 17px;
  transform: translate(-50%, -50%) rotate(-10deg);
  position: absolute;
  left: 50%;
  top: 52%;
  box-shadow: 0 12px 0 #cab8eb4f;
}
.toy-keyboard > span {
  background: #fff7d3;
  color: #8365b7;
  border-bottom: 3px solid #dec88e;
  border-radius: 5px;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  height: 27px;
}
.toy-keyboard > span:nth-child(3n) {
  background: #9ce7da;
  border-color: #60c2b4;
}
.toy-keyboard > span:nth-child(4n) {
  background: #ffc2d8;
  border-color: #e593b4;
}
.toy-bubble {
  display: grid;
  place-items: center;
  position: absolute;
  border-radius: 50%;
  color: #297c9b;
  font-weight: 900;
  font-size: 27px;
  border: 3px solid #88d5ee;
  background: radial-gradient(
    circle at 30% 25%,
    #fff 0,
    #ffffffaa 10%,
    #a4e3f1aa 35%,
    #70cbe5c9 95%
  );
  box-shadow:
    inset -4px -6px 0 #4eaec91a,
    0 6px 0 #6bafca18;
}
.bubble-1 {
  width: 70px;
  height: 70px;
  left: 18%;
  top: 52px;
}
.bubble-2 {
  width: 86px;
  height: 86px;
  left: 44%;
  top: 15px;
  color: #9663c0;
  border-color: #bfb0ea;
  background: radial-gradient(
    circle at 30% 25%,
    #fff,
    #d9c8f8cc 35%,
    #b7a0e5cc
  );
}
.bubble-3 {
  width: 43px;
  height: 43px;
  left: 68%;
  top: 95px;
  font-size: 18px;
}
.bubble-4 {
  width: 30px;
  height: 30px;
  left: 14%;
  top: 16px;
  font-size: 13px;
}
.bubble-5 {
  width: 24px;
  height: 24px;
  left: 80%;
  top: 38px;
  font-size: 12px;
}
.dirt-hill {
  width: 115%;
  height: 80px;
  background: #d99b69;
  border-radius: 50% 50% 0 0;
  position: absolute;
  bottom: -43px;
  left: -8%;
  border-top: 8px solid #e8b88a;
}
.toy-crystal {
  position: absolute;
  width: 58px;
  height: 95px;
  background: linear-gradient(
    100deg,
    #7fbff1 0 40%,
    #c3edff 40% 63%,
    #9f88e6 63%
  );
  clip-path: polygon(50% 0, 100% 27%, 86% 82%, 50% 100%, 14% 82%, 0 27%);
  bottom: 20px;
  left: calc(50% - 28px);
  transform: rotate(8deg);
  filter: drop-shadow(0 5px 0 #794aca30);
}
.crystal-two {
  width: 43px;
  height: 68px;
  transform: rotate(-24deg);
  left: calc(50% - 66px);
  background: linear-gradient(
    100deg,
    #c794e9 40%,
    #eed3ff 40% 63%,
    #a17add 63%
  );
}
.crystal-three {
  width: 35px;
  height: 57px;
  left: calc(50% + 28px);
  transform: rotate(27deg);
  background: linear-gradient(
    100deg,
    #66d7c2 40%,
    #c3fff0 40% 63%,
    #3bb8ac 63%
  );
}
.toy-cloud {
  position: absolute;
  width: 70px;
  height: 23px;
  background: #ffffffb8;
  border-radius: 30px;
}
.toy-cloud:before,
.toy-cloud:after {
  content: "";
  position: absolute;
  width: 35px;
  height: 32px;
  border-radius: 50%;
  background: inherit;
  bottom: 0;
  left: 10px;
}
.toy-cloud:after {
  width: 27px;
  height: 25px;
  left: 33px;
}
.cloud-one {
  left: 10%;
  top: 32px;
}
.cloud-two {
  right: 7%;
  top: 70px;
  transform: scale(0.7);
}
.toy-drone {
  position: absolute;
  width: 90px;
  height: 44px;
  border-radius: 20px;
  background: #ffcd58;
  border: 3px solid #e9aa35;
  left: calc(50% - 45px);
  top: 45px;
  box-shadow: inset 0 -6px 0 #efb33f;
  transform: rotate(-5deg);
  z-index: 2;
}
.propeller {
  position: absolute;
  width: 60px;
  height: 8px;
  background: #7f7ab7;
  top: -15px;
  border-radius: 50%;
  left: -22px;
}
.propeller:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 14px;
  background: #9d91bf;
  left: 27px;
  top: 0;
  z-index: -1;
}
.propeller-right {
  left: 43px;
}
.drone-eye {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #594a6d;
  top: 12px;
  left: 24px;
}
.drone-eye.eye-right {
  left: 51px;
}
.drone-parcel {
  position: absolute;
  width: 37px;
  height: 32px;
  background: #ee9a72;
  border: 2px solid #d67d57;
  left: 24px;
  top: 48px;
  border-radius: 5px;
}
.drone-parcel:before {
  content: "";
  position: absolute;
  width: 6px;
  top: 0;
  bottom: 0;
  left: 13px;
  background: #ffd9a4;
}
.drone-parcel:after {
  content: "";
  position: absolute;
  height: 6px;
  left: 0;
  right: 0;
  top: 11px;
  background: #ffd9a4;
}
.toy-hill {
  position: absolute;
  bottom: -50px;
  left: -10%;
  width: 120%;
  height: 65px;
  background: #b6dfb5;
  border-radius: 50%;
}
.toy-mailbox {
  position: absolute;
  left: calc(50% - 23px);
  top: 36px;
  width: 80px;
  height: 75px;
  border-radius: 40px 40px 9px 9px;
  background: #63c8bf;
  border: 3px solid #36a89f;
  box-shadow: 5px 3px 0 #4cb0a8;
}
.toy-mailbox:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 50px;
  top: 70px;
  left: 32px;
  background: #c69a7d;
  z-index: -1;
}
.mailbox-face {
  position: absolute;
  top: 21px;
  left: 13px;
  width: 49px;
  height: 44px;
  border: 2px solid #3aa89c;
  border-radius: 25px 25px 4px 4px;
  background: #b1eee0;
}
.mailbox-flag {
  position: absolute;
  height: 42px;
  width: 5px;
  right: -7px;
  top: -16px;
  background: #df7188;
  border-radius: 4px;
}
.mailbox-flag:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 18px;
  background: #f18fa2;
  border-radius: 0 4px 4px 0;
}
.toy-envelope {
  position: absolute;
  width: 71px;
  height: 49px;
  background: #fff1c5;
  border: 2px solid #edc46c;
  border-radius: 7px;
  top: 72px;
  left: calc(50% - 80px);
  transform: rotate(-17deg);
  display: grid;
  place-items: center;
  color: #e87995;
  font-size: 28px;
  box-shadow: 0 5px 0 #dba7a02b;
}
.toy-envelope:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 4px;
  width: 56px;
  height: 29px;
  border-bottom: 2px solid #edc46c;
  transform: rotate(-2deg);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background: #ffdf9d;
  z-index: -1;
}
.toy-rainbow {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 175px;
  height: 110px;
  border: 14px solid #f29bb3;
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
  box-shadow: inset 0 0 0 12px #ffc965;
  overflow: hidden;
}
.rainbow-band {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 125px;
  height: 90px;
  border: 13px solid #78d4bc;
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
}
.rainbow-inner {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 99px;
  height: 80px;
  border: 12px solid #aaa1e6;
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
}
.art-5 .cloud-one {
  top: 115px;
  left: 16%;
  z-index: 3;
}
.art-5 .cloud-two {
  top: 117px;
  right: 16%;
  z-index: 3;
  transform: scale(1);
}
.toy-trophy {
  position: absolute;
  width: 75px;
  height: 70px;
  background: linear-gradient(90deg, #ffcf54 50%, #ffe78b 50%);
  border: 3px solid #e9b43d;
  border-radius: 8px 8px 30px 30px;
  left: calc(50% - 37px);
  top: 28px;
  display: grid;
  place-items: center;
  color: #d19723;
  font-size: 38px;
  z-index: 1;
}
.toy-trophy:before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 114px;
  height: 40px;
  border: 8px solid #efb942;
  border-radius: 9px 9px 30px 30px;
  z-index: -1;
}
.toy-trophy:after {
  content: "";
  position: absolute;
  width: 53px;
  height: 37px;
  background: linear-gradient(#e9b43d 0 75%, #ffd460 75%);
  clip-path: polygon(
    35% 0,
    65% 0,
    65% 75%,
    100% 75%,
    100% 100%,
    0 100%,
    0 75%,
    35% 75%
  );
  bottom: -37px;
  left: 8px;
}
.trophy-confetti {
  width: 8px;
  height: 15px;
  background: #bd97e0;
  position: absolute;
  left: 20%;
  bottom: 21px;
  transform: rotate(30deg);
  box-shadow:
    110px -67px 0 #74cfbe,
    120px 12px 0 #ef92a7;
}
.level-trail {
  border: 2px solid #e8dff5;
  background: white;
  border-radius: 25px;
  padding: 28px;
  margin-top: 30px;
}
.trail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.lesson-list {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 9px;
}
.lesson-button {
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.lesson-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #dfd6ec;
  border-bottom: 5px solid #d4c9e4;
  background: #f1edf7;
  color: #8c809c;
  font-size: 20px;
  font-weight: 900;
}
.lesson-button.selected .lesson-number {
  background: #8b68e5;
  border-color: #7956d4;
  border-bottom-color: #6240b5;
  color: white;
  box-shadow: 0 0 0 5px #f0e7ff;
}
.lesson-button.level-done .lesson-number {
  background: #fff1ba;
  border-color: #efcd64;
  color: #a47716;
}
.level-name {
  font-size: 9px;
  color: #7f718f;
  font-weight: 700;
  white-space: nowrap;
}
.lesson-button:disabled .lesson-number {
  background: #f5f2fa;
}
.bottom-panels {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.tip-panel {
  background: #eaf6f1;
  border: 2px solid #d7eadf;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 20px;
  border-radius: 24px;
}
.tip-pip {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.tip-panel h3,
.goals-panel h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.tip-panel p {
  color: #47675e;
  font-size: 16px;
  margin: 0;
}
.goals-panel {
  padding: 25px;
  border: 2px solid #e8dff5;
  border-radius: 24px;
  background: #fff;
}
.goals {
  display: flex;
  gap: 30px;
  margin-bottom: 12px;
}
.stat strong {
  display: block;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
}
.stat small {
  font-size: 13px;
  color: #736783;
  display: block;
  margin-top: 5px;
}
.text-button {
  background: none;
  border: 0;
  color: #7453b7;
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 0;
}
.completion {
  font-size: 23px;
  text-align: center;
  background: #fff0bd;
  border: 2px solid #eacc6e;
  padding: 25px;
  border-radius: 20px;
  color: #72571f;
  margin-top: 25px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid #ede6f8;
  padding: 24px max(28px, calc((100vw - 1180px) / 2));
  font-size: 12px;
  line-height: 1.8;
  color: #736883;
  background: #fff;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30a384;
  display: inline-block;
  margin-right: 7px;
}
.warning {
  background: #bf8228;
}
.notice {
  background: #fff1c5;
  font-size: 16px;
  padding: 18px;
  margin: 0;
}
.training {
  max-width: 1080px;
  margin: auto;
  padding: 34px 30px 45px;
  min-height: calc(100vh - 185px);
}
.training-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.training-header small {
  font-size: 13px;
  font-weight: 800;
  color: #817097;
}
.training h1 {
  font-size: 35px;
  letter-spacing: -1.1px;
  margin: 8px 0 0;
}
.session-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  text-align: center;
  background: #fff;
  border: 2px solid #e9e0f6;
  border-radius: 20px;
  padding: 20px;
}
.session-stats .stat:nth-child(1) strong {
  color: #9464c9;
}
.session-stats .stat:nth-child(2) strong {
  color: #2c947e;
}
.session-stats .stat:nth-child(3) strong {
  color: #ba7e2e;
}
.game-scene {
  margin: 22px 0;
  background: #e9e2ff;
  border: 2px solid #dfd3f9;
  border-radius: 25px;
  overflow: hidden;
  text-align: center;
  position: relative;
}
.game-scene > p {
  font-size: 18px;
  font-weight: 700;
  color: #64507e;
  background: #ffffffa6;
  margin: 0;
  padding: 13px 20px;
  border-top: 2px solid #ffffff70;
}
.scene-1 {
  background: #ddf5fc;
  border-color: #b8e3ed;
}
.scene-2 {
  background: #ffedcf;
  border-color: #f1d4a7;
}
.scene-3 {
  background: #e0f8ed;
  border-color: #bce6d0;
}
.scene-4 {
  background: #ffebf1;
  border-color: #f0cbd9;
}
.scene-5 {
  background: #f0e7ff;
}
.scene-6 {
  background: #fff0c1;
  border-color: #ecd080;
}
.lesson-scene,
.bubble-scene,
.dig-scene,
.drone-scene,
.relay-scene,
.circuit-scene,
.challenge-scene {
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
}
.scene-pip {
  width: 190px;
  height: 190px;
}
.scene-key {
  display: grid;
  place-items: center;
  min-width: 90px;
  height: 90px;
  padding: 5px 14px;
  font-size: 55px;
  border-radius: 20px;
  background: white;
  border: 3px solid #c6b2ed;
  border-bottom: 8px solid #baa2e4;
  box-shadow: 0 8px 0 #a17bc412;
  color: #8252b7;
  font-weight: 800;
  transform: rotate(7deg);
}
.scene-cheer {
  font-size: 25px;
  font-weight: 900;
  color: #8060a5;
  transform: rotate(-4deg);
}
.signal-bubble {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 3px solid #7cc7e5;
  border-radius: 50%;
  font-size: 37px;
  font-weight: 800;
  color: #2d7d9f;
  background: radial-gradient(circle at 30% 20%, #fff, #c0f0f8 40%, #8bd0e9);
  box-shadow:
    inset -6px -7px 0 #7ec4db33,
    0 8px 0 #a3ccda22;
  transform: translateY(calc((var(--i) - 2.5) * -9px));
  transition: all 0.2s;
}
.signal-bubble:nth-child(even) {
  background: radial-gradient(circle at 30% 20%, #fff, #e3d2ff 40%, #bda2e8);
  border-color: #baa2dd;
  color: #7f58a8;
}
.signal-bubble.caught {
  background: #fff0a9;
  border-color: #f0cf6b;
  color: #b1842a;
  transform: scale(0.7);
}
.dig-scene {
  overflow: hidden;
}
.dig-scene .activity-art {
  height: 190px;
  width: 360px;
  background: none;
}
.dig-scene .toy-crystal {
  width: 76px;
  height: 140px;
  bottom: 22px;
}
.dig-scene .crystal-two {
  width: 60px;
  height: 100px;
  left: calc(50% - 85px);
}
.dig-scene .crystal-three {
  width: 55px;
  height: 90px;
  left: calc(50% + 37px);
}
.rock-cover {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    160deg,
    #e8bb89 0 26px,
    #e1b27d 26px 54px
  );
  border-left: 5px solid #f2cfa1;
  transition: width 0.2s;
  border-radius: 10px 0 0 10px;
}
.treasure-counter {
  position: absolute;
  bottom: 12px;
  left: 22px;
  background: #fff7e3;
  padding: 6px 13px;
  border-radius: 20px;
  color: #886238;
  font-size: 15px;
  font-weight: 800;
}
.drone-scene {
  margin: 0 35px;
}
.route-line {
  position: absolute;
  left: 20px;
  right: 35px;
  top: 100px;
  border-top: 4px dashed #a6d5bf;
}
.flying-friend {
  position: absolute;
  width: 130px;
  height: 155px;
  top: 6px;
  transition: left 0.25s;
}
.flying-friend .activity-art {
  height: 155px;
  background: none;
  overflow: visible;
}
.flying-friend .toy-cloud,
.flying-friend .toy-hill {
  display: none;
}
.outpost {
  position: absolute;
  right: 0;
  top: 52px;
  font-size: 70px;
  color: #5fac9a;
  font-weight: 900;
}
.relay-scene > .activity-art {
  width: 240px;
  background: none;
  height: 190px;
}
.relay-scene .toy-mailbox {
  top: 52px;
}
.relay-scene .toy-envelope {
  top: 85px;
}
.letter-progress {
  min-width: 250px;
  text-align: left;
}
.letter-progress > span {
  font-size: 20px;
  font-weight: 800;
  color: #a0507d;
}
.letter-progress .meter {
  margin: 17px 0 12px;
  background: #f0cadd;
}
.letter-progress strong {
  font-size: 17px;
  color: #9c5c7f;
}
.circuit-scene {
  gap: 0;
}
.circuit-scene > .activity-art {
  width: 260px;
  background: none;
  height: 190px;
}
.circuit-scene .toy-rainbow {
  top: 38px;
}
.circuit-scene .cloud-one,
.circuit-scene .cloud-two {
  top: 139px;
}
.circuit-lights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.circuit-node {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #e2d7f1;
  border: 2px solid #cabbdf;
  border-radius: 12px;
  color: #b4a4cd;
  font-size: 29px;
  transition:
    background 0.2s,
    color 0.2s;
}
.circuit-node.lit {
  background: #ffe9a0;
  color: #b57c24;
  border-color: #e4bd55;
  box-shadow: 0 0 16px #ffe99680;
}
.challenge-scene > .activity-art {
  width: 190px;
  background: none;
  height: 190px;
}
.challenge-scene .toy-trophy {
  top: 43px;
}
.challenge-scene .scene-cheer {
  color: #a17425;
}
.typing-panel {
  background: #fff;
  border: 3px solid #e6dcf7;
  border-radius: 23px;
  padding: 24px 28px;
  transition: border-color 0.15s;
}
.typing-panel.mistake {
  border-color: #efb09c;
}
.typing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.typing-heading small {
  font-size: 16px;
  font-weight: 800;
  color: #66517f;
}
.typing-heading > span {
  font-size: 16px;
  color: #367f6e;
  background: #ebf7ef;
  padding: 7px 12px;
  border-radius: 20px;
}
.mistake .typing-heading > span {
  color: #a15a3f;
  background: #fff0e3;
}
.prompt {
  font-family: "DejaVu Sans Mono", ui-monospace, monospace;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.9;
  letter-spacing: 2px;
  color: #7f7591;
  margin: 20px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.prompt .typed {
  color: #23866b;
}
.prompt .current {
  background: #eaddff;
  color: #653eab;
  border-radius: 5px;
  border-bottom: 4px solid #a57be7;
}
.prompt .wrong {
  background: #ffe9d6;
  color: #9a593b;
  border-color: #e7a37b;
}
.meter {
  height: 10px;
  border-radius: 10px;
  background: #eee7f7;
  overflow: hidden;
}
.meter > div {
  height: 100%;
  background: linear-gradient(90deg, #9c7ce5, #54c4b1);
  border-radius: 10px;
  transition: width 0.2s;
}
.typing-help {
  font-size: 16px;
  color: #736587;
  margin: 15px 0 0;
}
.keyboard-panel {
  text-align: center;
  margin: 27px auto 0;
}
.finger-hint {
  font-size: 18px;
  color: #6c5d80;
  margin: 0 0 18px;
}
.finger-hint > strong {
  display: inline-block;
  min-width: 45px;
  padding: 6px 10px;
  border: 2px solid #d3bdf4;
  border-radius: 10px;
  background: #eee3ff;
  color: #6d43b3;
  font-size: 24px;
}
.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0;
}
.keyboard-row > .keyboard-row {
  margin: 0;
}
.keycap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 43px;
  background: #fff;
  border: 2px solid #e1d8ef;
  border-bottom: 5px solid #d7cbe8;
  border-radius: 9px;
  color: #837095;
  font-size: 18px;
}
.home-key {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.next-key {
  background: #d5f3e7;
  color: #216e59;
  border-color: #69c7a9;
  box-shadow: 0 0 0 3px #d9f4e870;
}
.shift-key {
  width: 75px;
  font-size: 14px;
}
.space-key {
  width: 270px;
  font-size: 14px;
}
.briefing {
  font-size: 16px;
  color: #6f607f;
  line-height: 1.8;
  max-width: 760px;
  margin: 20px auto 0;
}
.challenge-hint {
  text-align: center;
  padding: 24px;
  font-size: 18px;
  color: #8b6f35;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #433165b8;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(5px);
}
.pause-modal {
  background: #fff;
  border: 4px solid #e5d5fa;
  border-bottom: 9px solid #d3bdec;
  border-radius: 30px;
  text-align: center;
  width: min(100%, 470px);
  padding: 20px 35px 28px;
  box-shadow: 0 20px 50px #29134340;
}
.pause-pip {
  width: 190px;
  height: 190px;
  margin: -15px auto 0;
}
.pause-modal h2 {
  font-size: 29px;
  margin: 0 0 15px;
  letter-spacing: -0.8px;
}
.pause-modal p {
  font-size: 17px;
  color: #726182;
}
.pause-modal .primary {
  display: block;
  width: 100%;
  margin: 20px 0 8px;
}
.results-page {
  padding: 40px 25px;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 185px);
}
.result-card {
  position: relative;
  background: #fff;
  border: 3px solid #e2d3f6;
  border-bottom: 8px solid #d7c3ef;
  border-radius: 32px;
  text-align: center;
  padding: 25px 38px 35px;
  max-width: 780px;
  width: 100%;
  overflow: hidden;
}
.result-pip {
  width: 220px;
  height: 220px;
  margin: -15px auto -6px;
}
.celebration-stars {
  display: flex;
  justify-content: center;
  gap: 18px;
  height: 50px;
  align-items: center;
}
.celebration-stars span {
  color: #efc14e;
  font-size: 38px;
  text-shadow: 0 3px 0 #caa13033;
}
.celebration-stars span:nth-child(2) {
  font-size: 54px;
  transform: translateY(-2px);
}
.celebrating .celebration-stars {
  animation: star-arrival 0.65s ease-out both;
}
.celebrating .result-pip {
  animation: pip-arrival 0.6s ease-out both;
}
@keyframes star-arrival {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes pip-arrival {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.result-card h1 {
  font-size: 36px;
  color: #7551b0;
  letter-spacing: -1.2px;
  margin: 0 0 14px;
}
.result-card > p {
  font-size: 18px;
  color: #71617f;
  line-height: 1.7;
  max-width: 610px;
  margin: 0 auto 22px;
}
.result-card .session-stats {
  background: #faf7fe;
  margin: 25px 0;
}
.result-card .goal-summary {
  font-size: 16px;
}
.result-card .perfect {
  color: #2b8a6c;
  font-weight: 800;
}
.weak-keys {
  margin: 24px 0;
}
.weak-keys > small {
  font-size: 16px;
  color: #766485;
  font-weight: 700;
}
.weak-keys > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.weak-key {
  display: grid;
  place-items: center;
  min-width: 45px;
  padding: 7px 13px;
  border: 2px solid #e6d5f4;
  border-bottom: 5px solid #d8c1ec;
  border-radius: 10px;
  background: #faf2ff;
  color: #8963ae;
  font-size: 24px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 13px;
}
.result-actions .text-button {
  flex-basis: 100%;
}
.settings-page {
  max-width: 1000px;
  padding: 40px 30px;
  margin: auto;
  min-height: calc(100vh - 185px);
}
.settings-page h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
  margin: 16px 0;
}
.settings-page > p {
  font-size: 18px;
  max-width: 680px;
  color: #736182;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 30px 0 15px;
}
.settings-card {
  background: #fff;
  border: 2px solid #e4d8f3;
  border-bottom: 6px solid #e0d1f0;
  border-radius: 25px;
  padding: 28px;
}
.settings-card h2 {
  font-size: 25px;
  margin: 0 0 23px;
}
.settings-card label {
  display: block;
  font-size: 16px;
  color: #6c587d;
  margin: 20px 0;
  font-weight: 700;
}
.settings-card input,
.settings-card select {
  font-size: 18px;
  width: 100%;
  padding: 13px 15px;
  min-height: 52px;
  border: 2px solid #e4d9f2;
  background: #fffdff;
  border-radius: 12px;
  color: #58436b;
  margin-top: 10px;
}
.settings-card p,
.settings-card > small {
  font-size: 16px;
  line-height: 1.7;
  color: #756381;
}
.settings-card > small {
  display: block;
  margin: 20px 0 0;
}
@media (max-width: 1100px) {
  .topbar {
    padding: 18px 28px;
  }
  .profile-chip small {
    display: none;
  }
  .brand {
    font-size: 27px;
  }
  .welcome {
    padding: 30px;
  }
  .hero-art {
    width: 280px;
  }
  .hero-pip {
    width: 300px;
    height: 300px;
    bottom: -5px;
  }
  .welcome h1 {
    font-size: 49px;
  }
  .welcome p {
    font-size: 17px;
  }
  .big-play {
    min-width: 175px;
    font-size: 21px;
    gap: 18px;
  }
  .new-keys {
    max-width: 130px;
  }
  .mission-banner {
    gap: 17px;
    padding: 20px;
  }
  .mission-description h2 {
    font-size: 22px;
  }
  .activity-copy {
    padding: 18px;
  }
  .activity-copy h3 {
    font-size: 21px;
  }
  .lesson-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: 20px;
  }
  .level-name {
    font-size: 11px;
  }
  .level-trail {
    padding: 25px;
  }
  .lesson-number {
    width: 52px;
    height: 52px;
  }
  .tip-pip {
    width: 100px;
    height: 100px;
  }
  .tip-panel {
    padding: 17px;
  }
  .goals-panel {
    padding: 22px;
  }
  .goals-panel h3 {
    font-size: 18px;
  }
}
@media (max-width: 800px) {
  .topbar {
    gap: 18px;
    flex-wrap: wrap;
    min-height: 90px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid #f1eafa;
    padding-top: 12px;
  }
  .topbar nav button {
    flex: 1;
    max-width: 170px;
  }
  .profile-chip {
    margin-left: auto;
  }
  .dashboard {
    padding: 22px;
  }
  .welcome {
    padding: 28px;
    min-height: 310px;
  }
  .welcome h1 {
    font-size: 40px;
    letter-spacing: -1.7px;
  }
  .welcome p {
    max-width: 300px;
    font-size: 16px;
  }
  .hero-art {
    width: 210px;
    height: 240px;
  }
  .hero-pip {
    width: 240px;
    height: 240px;
    left: -15px;
    bottom: -8px;
  }
  .hero-speech {
    font-size: 14px;
    right: -10px;
    padding: 10px 14px;
  }
  .hero-star {
    font-size: 25px;
  }
  .star-one {
    left: -5px;
    top: 24px;
  }
  .star-two {
    font-size: 34px;
    right: -17px;
    bottom: 40px;
  }
  .hero-chips {
    gap: 7px;
  }
  .hero-chips span {
    font-size: 12px;
    padding: 7px 11px;
  }
  .mission-banner {
    flex-wrap: wrap;
    gap: 15px;
  }
  .mission-description {
    flex-basis: 40%;
  }
  .new-keys {
    max-width: 130px;
    margin: 0;
  }
  .big-play {
    width: 100%;
    min-height: 58px;
    gap: 30px;
  }
  .mission-description p {
    font-size: 16px;
  }
  .activities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .wide-card {
    grid-column: 1/-1;
  }
  .wide-card .activity-art {
    width: 160px;
  }
  .wide-card .activity-copy {
    padding: 18px;
  }
  .wide-card .card-status {
    min-width: 0;
    margin: 0 18px 0 0;
    max-width: 140px;
  }
  .wide-card .activity-copy p {
    display: none;
  }
  .bottom-panels {
    grid-template-columns: 1fr;
  }
  .tip-panel {
    padding: 20px;
  }
  .tip-pip {
    width: 120px;
    height: 120px;
  }
  .goals-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .goals-panel h3 {
    width: 100%;
    margin: 0;
  }
  .goals {
    margin: 0;
  }
  .topbar .brand small {
    font-size: 10px;
  }
  .section-label h2,
  .trail-heading h2 {
    font-size: 25px;
  }
  .progress-pill {
    font-size: 12px;
    padding: 10px 13px;
  }
  .training {
    padding: 28px 22px;
  }
  .training h1 {
    font-size: 30px;
  }
  .keycap {
    width: 37px;
    height: 39px;
    font-size: 17px;
  }
  .keyboard-row {
    gap: 5px;
  }
  .shift-key {
    width: 60px;
    font-size: 11px;
  }
  .space-key {
    width: 220px;
  }
  .scene-cheer {
    font-size: 21px;
  }
  .scene-pip {
    width: 150px;
    height: 150px;
  }
  .signal-bubble {
    width: 65px;
    height: 65px;
    font-size: 30px;
  }
  .bubble-scene {
    gap: 15px;
  }
  .letter-progress {
    min-width: 200px;
  }
  .settings-grid {
    gap: 18px;
  }
  .settings-card {
    padding: 23px;
  }
}
@media (max-width: 520px) {
  .topbar {
    padding: 16px 20px;
    gap: 13px;
  }
  .brand {
    font-size: 27px;
    gap: 10px;
  }
  .brand-mark {
    width: 42px;
    height: 38px;
  }
  .brand-mark:before {
    left: 17px;
  }
  .brand small {
    max-width: 180px;
  }
  .profile-chip {
    gap: 7px;
  }
  .profile-chip > span:last-child {
    display: none;
  }
  .avatar {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .topbar nav {
    padding-top: 11px;
  }
  .topbar nav button {
    min-height: 45px;
    font-size: 16px;
    padding: 10px 20px;
  }
  .dashboard {
    padding: 18px 16px;
  }
  .welcome {
    display: block;
    padding: 25px 23px 0;
    min-height: 470px;
    border-radius: 25px;
  }
  .welcome-copy {
    z-index: 3;
  }
  .welcome h1 {
    font-size: 43px;
    line-height: 1.1;
    letter-spacing: -1.9px;
    margin: 12px 0 13px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .welcome p {
    font-size: 16px;
    max-width: 300px;
    margin-bottom: 16px;
  }
  .hero-chips {
    gap: 8px;
  }
  .hero-chips span {
    font-size: 12px;
    padding: 7px 13px;
  }
  .hero-art {
    position: relative;
    margin: -5px auto 0;
    width: 230px;
    height: 235px;
  }
  .hero-pip {
    width: 240px;
    height: 240px;
    bottom: 0;
    left: -5px;
  }
  .hero-speech {
    font-size: 13px;
    right: -30px;
    top: 10px;
    padding: 9px 13px;
  }
  .star-one {
    left: -20px;
    top: 20px;
  }
  .star-two {
    right: -35px;
    bottom: 30px;
  }
  .star-three {
    left: -15px;
    bottom: 30px;
    font-size: 29px;
  }
  .mission-banner {
    margin: 18px 0 28px;
    padding: 18px 16px;
    gap: 12px;
    border-radius: 20px;
  }
  .mission-number {
    width: 52px;
    height: 56px;
    font-size: 30px;
    border-radius: 15px;
  }
  .mission-description {
    flex-basis: calc(100% - 70px);
  }
  .mission-description h2 {
    font-size: 22px;
  }
  .mission-description small {
    font-size: 10px;
  }
  .new-keys {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: none;
    gap: 14px;
    width: 100%;
    padding: 3px 0;
  }
  .new-keys > small {
    font-size: 10px;
  }
  .new-keys > div {
    margin: 0;
  }
  .mini-key {
    width: 28px;
    height: 32px;
    font-size: 19px;
  }
  .big-play {
    min-height: 59px;
    font-size: 23px;
    margin-top: 3px;
  }
  .section-label {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 19px;
  }
  .section-label h2,
  .trail-heading h2 {
    font-size: 24px;
  }
  .section-label p {
    font-size: 16px;
    max-width: 220px;
    line-height: 1.5;
  }
  .progress-pill {
    font-size: 11px;
    white-space: normal;
    text-align: center;
    max-width: 115px;
    line-height: 1.6;
    padding: 8px 10px;
    flex-shrink: 0;
  }
  .activities {
    gap: 12px;
  }
  .activity-card {
    border-radius: 19px;
  }
  .activity-art {
    height: 130px;
  }
  .activity-copy {
    padding: 15px 12px 12px;
  }
  .activity-copy small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .activity-copy h3 {
    font-size: 20px;
    line-height: 1.2;
    margin: 7px 0 10px;
  }
  .activity-copy p {
    font-size: 16px;
    line-height: 1.5;
  }
  .card-status {
    font-size: 16px;
    margin: 0 10px 13px;
    padding: 9px 7px;
    min-height: 43px;
    line-height: 1.4;
  }
  .activity-card:disabled .card-status {
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .toy-keyboard {
    width: 125px;
    padding: 9px;
    gap: 5px;
    border-radius: 12px;
  }
  .toy-keyboard > span {
    font-size: 14px;
    height: 23px;
  }
  .bubble-1 {
    left: 10%;
    width: 52px;
    height: 52px;
    top: 54px;
    font-size: 22px;
  }
  .bubble-2 {
    left: 46%;
    width: 65px;
    height: 65px;
    top: 15px;
    font-size: 25px;
  }
  .bubble-3 {
    left: 65%;
    width: 29px;
    height: 29px;
    top: 90px;
    font-size: 14px;
  }
  .bubble-4 {
    left: 10%;
    width: 25px;
    height: 25px;
    top: 14px;
    font-size: 11px;
  }
  .bubble-5 {
    display: none;
  }
  .toy-crystal {
    height: 80px;
    width: 45px;
    left: calc(50% - 22px);
    bottom: 16px;
  }
  .crystal-two {
    width: 32px;
    height: 57px;
    left: calc(50% - 50px);
  }
  .crystal-three {
    width: 27px;
    height: 48px;
    left: calc(50% + 22px);
  }
  .toy-drone {
    transform: scale(0.8) rotate(-5deg);
    top: 34px;
  }
  .toy-mailbox {
    transform: scale(0.8);
    top: 25px;
    left: calc(50% - 25px);
  }
  .toy-envelope {
    transform: scale(0.8) rotate(-17deg);
    top: 61px;
    left: calc(50% - 72px);
  }
  .toy-rainbow {
    transform: translateX(-50%) scale(0.78);
    top: 13px;
  }
  .art-5 .cloud-one {
    top: 100px;
    left: 7%;
    transform: scale(0.7);
  }
  .art-5 .cloud-two {
    top: 100px;
    right: 7%;
    transform: scale(0.7);
  }
  .wide-card .activity-art {
    height: 160px;
    width: 112px;
  }
  .wide-card {
    flex-wrap: wrap;
  }
  .wide-card .activity-copy {
    padding: 16px 12px;
    flex: 1;
  }
  .wide-card .activity-copy h3 {
    font-size: 22px;
  }
  .wide-card .card-status {
    margin: 0 14px 14px;
    max-width: none;
    flex-basis: 100%;
    font-size: 14px;
  }
  .toy-trophy {
    transform: scale(0.8);
    top: 25px;
  }
  .level-trail {
    padding: 22px 16px;
    border-radius: 21px;
    margin-top: 24px;
  }
  .trail-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 21px;
  }
  .trail-heading p {
    font-size: 16px;
    max-width: 160px;
  }
  .lesson-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .lesson-number {
    width: 49px;
    height: 49px;
    font-size: 22px;
  }
  .level-name {
    font-size: 11px;
  }
  .bottom-panels {
    gap: 18px;
    margin-top: 22px;
  }
  .tip-panel {
    padding: 20px 16px;
    align-items: flex-start;
    gap: 10px;
  }
  .tip-pip {
    width: 70px;
    height: 85px;
    margin-top: 5px;
  }
  .tip-panel h3 {
    font-size: 20px;
  }
  .tip-panel p {
    font-size: 16px;
  }
  .goals-panel {
    padding: 22px;
  }
  .goals-panel h3 {
    font-size: 20px;
  }
  .goals {
    gap: 28px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat small {
    font-size: 12px;
  }
  .goals-panel .text-button {
    font-size: 14px;
  }
  .training {
    padding: 23px 15px;
  }
  .training-header {
    gap: 10px;
    align-items: flex-start;
  }
  .training h1 {
    font-size: 27px;
  }
  .training-header small {
    font-size: 11px;
  }
  .training-header .secondary {
    padding: 10px 12px;
    min-height: 45px;
    font-size: 14px;
    white-space: nowrap;
  }
  .session-stats {
    padding: 17px 10px;
    gap: 9px;
    flex-wrap: wrap;
    row-gap: 17px;
  }
  .session-stats > .stat {
    width: calc(50% - 10px);
  }
  .session-stats .stat strong {
    font-size: 27px;
  }
  .session-stats .stat small {
    font-size: 12px;
  }
  .game-scene {
    margin: 18px 0;
    border-radius: 20px;
  }
  .game-scene > p {
    font-size: 16px;
    padding: 13px 17px;
  }
  .lesson-scene,
  .bubble-scene,
  .dig-scene,
  .drone-scene,
  .relay-scene,
  .circuit-scene,
  .challenge-scene {
    height: 170px;
    gap: 13px;
  }
  .scene-pip {
    width: 145px;
    height: 145px;
  }
  .scene-key {
    min-width: 68px;
    height: 70px;
    font-size: 40px;
    border-radius: 15px;
  }
  .lesson-scene .scene-cheer {
    display: none;
  }
  .bubble-scene {
    gap: 8px;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 12px;
    padding: 20px;
  }
  .signal-bubble {
    width: 44px;
    height: 44px;
    font-size: 23px;
    flex-shrink: 0;
    transform: translateY(calc((var(--i) - 2.5) * -4px));
  }
  .dig-scene .activity-art {
    height: 170px;
    width: 270px;
  }
  .dig-scene .toy-crystal {
    height: 125px;
    width: 60px;
    bottom: 15px;
  }
  .dig-scene .crystal-two {
    width: 45px;
    height: 87px;
    left: calc(50% - 69px);
  }
  .dig-scene .crystal-three {
    width: 40px;
    height: 75px;
    left: calc(50% + 28px);
  }
  .drone-scene {
    margin: 0 15px;
  }
  .flying-friend {
    width: 100px;
    height: 145px;
  }
  .flying-friend .toy-drone {
    transform: scale(0.8) rotate(-5deg);
    top: 46px;
  }
  .outpost {
    font-size: 53px;
    top: 69px;
  }
  .relay-scene > .activity-art {
    width: 135px;
    height: 170px;
    flex-shrink: 0;
  }
  .relay-scene .toy-mailbox {
    top: 44px;
  }
  .relay-scene .toy-envelope {
    top: 77px;
  }
  .letter-progress {
    min-width: 0;
    width: 155px;
    padding-right: 15px;
  }
  .letter-progress > span {
    font-size: 16px;
  }
  .letter-progress strong {
    font-size: 14px;
  }
  .circuit-scene {
    gap: 0;
  }
  .circuit-scene > .activity-art {
    width: 180px;
    height: 170px;
    flex-shrink: 0;
  }
  .circuit-scene .toy-rainbow {
    top: 25px;
  }
  .circuit-scene .cloud-one,
  .circuit-scene .cloud-two {
    top: 112px;
  }
  .circuit-lights {
    gap: 6px;
    padding-right: 15px;
  }
  .circuit-node {
    width: 29px;
    height: 29px;
    font-size: 19px;
    border-radius: 7px;
  }
  .challenge-scene > .activity-art {
    width: 160px;
    height: 160px;
  }
  .challenge-scene .toy-trophy {
    top: 32px;
  }
  .challenge-scene .scene-cheer {
    font-size: 21px;
    max-width: 120px;
  }
  .typing-panel {
    padding: 20px 17px;
    border-radius: 20px;
  }
  .typing-heading {
    display: block;
  }
  .typing-heading small {
    font-size: 16px;
  }
  .typing-heading > span {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    padding: 7px 10px;
  }
  .prompt {
    font-size: 27px;
    letter-spacing: 1px;
    line-height: 1.9;
    margin: 19px 0;
  }
  .typing-help {
    font-size: 16px;
  }
  .finger-hint {
    font-size: 15px;
    line-height: 1.6;
  }
  .finger-hint > strong {
    font-size: 22px;
    min-width: 38px;
    padding: 4px 8px;
  }
  .keyboard-row {
    gap: 3px;
    margin: 4px 0;
  }
  .keycap {
    width: 25px;
    height: 33px;
    font-size: 13px;
    border-width: 1px;
    border-bottom-width: 4px;
    border-radius: 5px;
  }
  .shift-key {
    width: 34px;
    font-size: 8px;
  }
  .space-key {
    width: 165px;
    font-size: 11px;
  }
  .briefing {
    font-size: 16px;
  }
  .challenge-hint {
    font-size: 17px;
    padding: 20px 10px;
  }
  .results-page {
    padding: 25px 15px;
  }
  .result-card {
    padding: 23px 18px 27px;
    border-radius: 25px;
  }
  .result-pip {
    width: 190px;
    height: 190px;
  }
  .result-card h1 {
    font-size: 30px;
    line-height: 1.2;
  }
  .result-card > p {
    font-size: 17px;
  }
  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .result-actions > .primary,
  .result-actions > .secondary {
    width: 100%;
    font-size: 18px;
  }
  .result-actions .text-button {
    flex-basis: auto;
  }
  .celebration-stars span {
    font-size: 32px;
  }
  .celebration-stars span:nth-child(2) {
    font-size: 47px;
  }
  .pause-modal {
    padding: 20px 23px 25px;
  }
  .pause-modal h2 {
    font-size: 27px;
  }
  .settings-page {
    padding: 30px 18px;
  }
  .settings-page .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .settings-page h1 {
    font-size: 35px;
  }
  .settings-page > p {
    font-size: 17px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .settings-card {
    padding: 23px;
  }
  .settings-card h2 {
    font-size: 24px;
  }
  footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 11px;
  }
  .text-button {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
