/* Wonder Islands: original storybook visuals, no external assets. */
.ki-world {
  --ki-ink: #293e40;
  --ki-green: #285947;
  --ki-accent: #e2f0dd;
  color: var(--ki-ink);
}
.ki-world h1,
.ki-world h2,
.ki-world h3,
.ki-dialog h2,
.ki-dialog h3 {
  font-family: Svadhyaya, Arial, sans-serif;
  letter-spacing: -0.6px;
}
.ki-world h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 750;
  margin: 4px 0 8px;
}
.ki-world h2 {
  font-size: 24px;
  font-weight: 750;
}
.ki-world h3 {
  font-size: 20px;
  font-weight: 750;
}
.ki-world p {
  line-height: 1.65;
}
.ki-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 28px 0 24px;
}
.ki-heading > div > p:last-child {
  margin: 0;
  color: #546566;
}
.ki-settings {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ki-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid #b6c7bf;
  border-radius: 13px;
  background: #fffdf7;
  color: #294b3e;
  padding: 12px 17px;
  min-height: 46px;
  font:
    600 14px/1.4 Svadhyaya,
    Arial,
    sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.ki-button:hover:not(:disabled) {
  background: #e6f0e5;
}
.ki-button:active:not(:disabled) {
  transform: translateY(1px);
}
.ki-button:disabled {
  cursor: not-allowed;
  background: #efeee7;
  color: #60635e;
  border-color: #c4c7c0;
}
.ki-button:focus-visible,
.ki-choice:focus-visible,
.ki-companion:focus-visible,
.ki-tabs a:focus-visible {
  outline: 3px solid #8156b6;
  outline-offset: 4px;
}
.ki-primary {
  background: #285947;
  border-color: #285947;
  color: #fff;
}
.ki-primary:hover:not(:disabled) {
  background: #193e30;
}
.ki-light {
  background: #fff9e8;
  border-color: #fff9e8;
  color: #294b3e;
}
.ki-small {
  font-size: 12px;
  padding: 9px 12px;
}
.ki-text {
  border: none;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-inline: 4px;
}
.ki-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #dedfd4;
  margin-bottom: 24px;
  padding-bottom: 12px;
}
.ki-tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 700;
  color: #526164;
  text-decoration: none;
}
.ki-tabs a[aria-current] {
  color: #294b3e;
  background: #e4eddf;
}
.ki-hero {
  position: relative;
  background: #e4efdf;
  border: 1px solid #d0dfc7;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 316px;
  overflow: hidden;
}
.ki-hero-copy {
  padding: 36px 0 36px 36px;
  z-index: 1;
}
.ki-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: #46644f;
}
.ki-hero h2 {
  font-size: clamp(32px, 3.5vw, 49px);
  line-height: 1.1;
  letter-spacing: -1.8px;
  margin: 16px 0;
}
.ki-hero h2 em {
  color: #547446;
  font-style: normal;
}
.ki-hero p {
  max-width: 390px;
  font-size: 14px;
  color: #465a4b;
}
.ki-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.ki-hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(
    ellipse at 60% 80%,
    #c2d6a7 0 41%,
    transparent 41%
  );
  padding: 32px 16px 6px;
}
.ki-buddy {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}
.ki-hero-art > .ki-buddy {
  width: 235px;
  position: relative;
  z-index: 2;
  margin-right: 30px;
}
.ki-speech {
  position: absolute;
  right: 25px;
  top: 29px;
  background: #fffaf0;
  border: 1px solid #d3dec4;
  border-radius: 16px 16px 16px 3px;
  padding: 13px 18px;
  transform: rotate(3deg);
  font-size: 13px;
  line-height: 1.5;
  color: #425c42;
  z-index: 3;
}
.ki-cloud {
  position: absolute;
  background: #f9f8eb;
  width: 70px;
  height: 23px;
  border-radius: 50px;
  opacity: 0.8;
}
.ki-cloud:before {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 6px;
  width: 35px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
}
.ki-cloud-one {
  left: 16px;
  top: 72px;
}
.ki-cloud-two {
  right: -20px;
  bottom: 90px;
}
.ki-hero-star {
  position: absolute;
  left: 12px;
  bottom: 95px;
  transform: rotate(-15deg);
}
.ki-token {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  vertical-align: middle;
}
.ki-hero-star .ki-token {
  width: 43px;
  height: 43px;
}
.ki-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 32px;
  background: #fffdf8;
  border: 1px solid #e1e1d7;
  border-radius: 17px;
  padding: 17px 0;
}
.ki-stats > article,
.ki-stats > a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid #e8e7de;
  text-decoration: none;
  color: #334b43;
}
.ki-stats > a {
  border: 0;
}
.ki-stats > article > .icon,
.ki-stats > a > .icon {
  width: 30px;
  height: 30px;
  color: #71638b;
}
.ki-stats strong {
  display: block;
  font-size: 23px;
  line-height: 1.3;
}
.ki-stats small {
  font-size: 11px;
  color: #5a6864;
  white-space: nowrap;
}
.ki-stats > a > .icon:last-child {
  width: 16px;
  margin-left: auto;
}
.ki-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 28px 0 18px;
}
.ki-section-title h2 {
  margin: 0;
}
.ki-section-title p {
  font-size: 13px;
  color: #5b6963;
  margin: 7px 0 0;
}
.ki-count {
  font-size: 12px;
  background: #f2efe5;
  padding: 8px 12px;
  border-radius: 25px;
  color: #505e55;
  white-space: nowrap;
  display: inline-block;
}
.ki-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
.ki-island {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid #d5dfd2;
  border-radius: 23px;
  padding: 18px 20px 20px;
  text-align: center;
  background: #ecf3e7;
  overflow: hidden;
}
.ki-mint {
  background: #e5efdf;
}
.ki-lilac {
  background: #ece5f5;
}
.ki-peach {
  background: #faeadb;
}
.ki-sky {
  background: #e1eff4;
}
.ki-rose {
  background: #f6e5e5;
}
.ki-sand {
  background: #f5efda;
}
.ki-island-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 6px;
  font-size: 10px;
  color: #596354;
}
.ki-island-number {
  font-weight: 800;
  letter-spacing: 1.3px;
}
.ki-island-top .icon {
  width: 22px;
  color: #306047;
}
.ki-island-icon {
  position: relative;
  width: 81px;
  height: 77px;
  display: grid;
  place-items: center;
  background: #fffaf0;
  border-radius: 40% 60% 47% 53%;
  margin: 20px 0 13px;
  box-shadow: 0 6px 0 #53694712;
}
.ki-island-icon > .icon {
  width: 40px;
  height: 40px;
  color: #486951;
}
.ki-lilac .ki-island-icon > .icon {
  color: #775995;
}
.ki-peach .ki-island-icon > .icon {
  color: #956135;
}
.ki-sky .ki-island-icon > .icon {
  color: #397890;
}
.ki-rose .ki-island-icon > .icon {
  color: #9b5e6e;
}
.ki-sand .ki-island-icon > .icon {
  color: #867030;
}
.ki-island-spark {
  position: absolute;
  right: -14px;
  top: 0;
  color: #a37b25;
}
.ki-island-spark .icon {
  width: 18px;
}
.ki-island-place {
  margin: 0 0 5px !important;
  font-size: 10px !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 750;
  color: #606955;
}
.ki-island h3 {
  margin: 0 0 6px;
}
.ki-island > p {
  font-size: 12px;
  margin: 0 0 16px;
  color: #596358;
}
.ki-quest-reward {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #53604c;
  margin: auto 0 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.ki-quest-reward .ki-token {
  width: 19px;
  height: 19px;
}
.ki-island-button {
  width: 100%;
  background: #fffdf7;
  border-color: #c4d0bd;
}
.ki-complete {
  border-color: #668f6b;
}
.ki-bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-top: 25px;
}
.ki-garden-panel,
.ki-break-panel {
  border: 1px solid #dfdfd2;
  border-radius: 23px;
  background: #faf7ea;
  padding: 24px;
  overflow: hidden;
}
.ki-garden-panel h2 {
  font-size: 21px;
  margin: 8px 0;
}
.ki-garden-panel p {
  font-size: 13px;
  color: #596452;
}
.ki-garden {
  width: 100%;
  display: block;
  margin-bottom: -24px;
  margin-top: 10px;
}
.ki-break-panel {
  background: #e8edf3;
  display: grid;
  grid-template-columns: 1fr 120px;
  column-gap: 5px;
  align-content: center;
}
.ki-break-panel .ki-buddy {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 120px;
  align-self: center;
}
.ki-break-panel h2 {
  font-size: 21px;
  margin: 0;
}
.ki-break-panel p {
  font-size: 13px;
  color: #536470;
}
.ki-break-panel .ki-button {
  justify-self: start;
  font-size: 12px;
}
.ki-boundary {
  margin: 28px 0 0;
  border-top: 1px solid #dfdfd4;
  padding-top: 19px;
  font-size: 12px;
  color: #586359;
  line-height: 1.8;
}
.ki-boundary strong {
  display: block;
  color: #3e5548;
}
.ki-boundary .ki-button {
  font-size: 12px;
}
.ki-collection-intro,
.ki-certificate-intro {
  display: flex;
  gap: 25px;
  padding: 30px;
  border: 1px solid #dfdccf;
  background: #faf4e7;
  border-radius: 22px;
  align-items: center;
  margin: 26px 0;
}
.ki-collection-intro h2,
.ki-certificate-intro h2 {
  margin: 6px 0;
}
.ki-collection-intro p,
.ki-certificate-intro p {
  font-size: 14px;
  margin: 8px 0;
}
.ki-collection-intro > .ki-token {
  width: 80px;
  height: 80px;
  margin-left: auto;
}
.ki-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.ki-badge {
  border: 1px solid #dedfd5;
  border-radius: 20px;
  background: #fffdf8;
  padding: 25px 15px;
  text-align: center;
}
.ki-medallion {
  width: 83px;
  height: 83px;
  display: grid;
  place-items: center;
  border: 5px double #8e824e;
  border-radius: 50%;
  margin: 0 auto 19px;
  box-shadow: 0 7px 0 #ece8d8;
}
.ki-medallion .icon {
  width: 36px;
  height: 36px;
}
.ki-badge h3 {
  font-size: 17px;
  margin: 9px 0;
}
.ki-badge p {
  font-size: 12px;
}
.ki-unearned .ki-medallion {
  filter: grayscale(1);
  border-style: dashed;
  box-shadow: none;
}
.ki-unearned {
  background: #f5f4ef;
}
.ki-customize {
  margin-top: 26px;
  background: #fffdf8;
  border: 1px solid #dfdfd4;
  border-radius: 22px;
  padding: 28px;
}
.ki-customize > p {
  font-size: 14px;
  color: #5c665d;
}
.ki-companions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 20px 0;
}
.ki-companion {
  border: 1.5px solid #d5d9cf;
  background: #f8f6ef;
  border-radius: 17px;
  padding: 15px 10px;
  font: inherit;
  color: #344b40;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ki-companion .ki-buddy {
  width: 130px;
}
.ki-companion strong {
  font-size: 13px;
}
.ki-companion small {
  font-size: 11px;
}
.ki-companion[aria-pressed="true"] {
  border-color: #4d7653;
  background: #e8efdf;
  box-shadow: 0 0 0 2px #4d7653;
}
.ki-theme-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ki-theme-options [aria-pressed="true"] {
  background: #e8efdf;
  border-color: #4d7653;
}
.ki-theme-sunset .ki-hero {
  background: #f5e4d9;
  border-color: #e6cdbf;
}
.ki-theme-moon .ki-hero {
  background: #e8e3f3;
  border-color: #d3c8e5;
}
.ki-theme-moon .ki-hero-art {
  background: radial-gradient(
    ellipse at 60% 80%,
    #cfc2e1 0 41%,
    transparent 41%
  );
}
.ki-seal {
  display: grid;
  place-items: center;
  width: 95px;
  height: 95px;
  flex-shrink: 0;
  background: #ead7a7;
  border-radius: 50%;
  border: 6px double #92743a;
}
.ki-seal .icon {
  width: 45px;
  height: 45px;
}
.ki-certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ki-certificate-card {
  position: relative;
  background: #fffdf6;
  border: 1.5px solid #d7c79f;
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 20px 22px;
}
.ki-certificate-card > .icon {
  width: 46px;
  height: 46px;
  color: #816725;
  margin: 18px 0;
}
.ki-certificate-card h3 {
  margin: 10px 0;
  font-size: 20px;
}
.ki-certificate-card p {
  font-size: 13px;
}
.ki-certificate-card .ki-button {
  margin-top: 20px;
  width: 100%;
  font-size: 12px;
}
.ki-certificate-number {
  position: absolute;
  top: 15px;
  left: 20px;
  color: #6b644f;
  font-size: 12px;
  letter-spacing: 2px;
}
.ki-note {
  font:
    12px/1.6 Svadhyaya,
    Arial,
    sans-serif !important;
  color: #586259 !important;
  margin: 20px 0 0;
}
.ki-empty {
  background: #faf7ed;
  border: 1px solid #dddccf;
  border-radius: 20px;
  padding: 35px;
  text-align: center;
}
.ki-dialog {
  width: min(650px, calc(100% - 28px));
  max-width: 650px;
  padding: 34px !important;
  color: #2d473d;
  border-radius: 25px !important;
  background: #fffdf5 !important;
}
.ki-dialog .eyebrow {
  color: #62694e;
}
.ki-dialog h2 {
  font-size: 29px;
  line-height: 1.2;
  padding-right: 15px;
  margin: 12px 0 20px;
}
.ki-dialog p {
  line-height: 1.7;
}
.ki-dialog > .ki-buddy {
  width: 150px;
  margin: 0 auto;
}
.ki-scene {
  display: block;
  width: min(100%, 330px);
  margin: 15px auto 20px;
  background: #f0f3e7;
  border-radius: 20px;
}
.ki-lesson,
.ki-question {
  font-size: 17px;
}
.ki-dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}
.ki-dialog-actions .ki-button {
  flex: 1;
  min-width: 130px;
}
.ki-choices {
  display: grid;
  gap: 11px;
  margin: 20px 0;
}
.ki-choice {
  display: flex;
  gap: 13px;
  text-align: left;
  align-items: center;
  border: 1.5px solid #c9d5c7;
  border-radius: 14px;
  background: #fffef8;
  padding: 16px;
  font:
    500 16px/1.5 Svadhyaya,
    Arial,
    sans-serif;
  color: #354d40;
  cursor: pointer;
}
.ki-choice > span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eceddf;
  font-size: 13px;
}
.ki-choice[aria-pressed="true"] {
  border-color: #47744d;
  background: #e8f1e2;
  box-shadow: 0 0 0 1px #47744d;
}
.ki-feedback:not(:empty) {
  background: #f6edce;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
}
.ki-celebrate {
  text-align: center;
  position: relative;
}
.ki-celebrate > .ki-buddy {
  width: 150px;
  margin: 0 auto 15px;
}
.ki-celebrate h2 {
  padding: 0;
}
.ki-celebration-tokens {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3d8b4;
  border-radius: 16px;
  background: #faf0d7;
  padding: 18px 12px;
  font-size: 16px;
  flex-wrap: wrap;
}
.ki-earned-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4b6352;
  font-weight: 600;
  font-size: 14px;
}
.ki-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  height: 165px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.ki-burst .ki-token {
  width: 35px;
  height: 35px;
}
.ki-burst .ki-token:nth-child(2) {
  align-self: start;
}
.ki-animate .ki-buddy {
  animation: ki-pop 0.55s ease-out 1;
}
.ki-animate .ki-burst {
  animation: ki-spark 0.8s ease-out 1;
}
.ki-calm * {
  animation: none !important;
  transition: none !important;
}
.ki-certificate-dialog {
  max-width: 790px;
  width: min(790px, calc(100% - 28px));
}
.ki-certificate {
  background: #fff9e9;
  border: 3px solid #426c51;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}
.ki-cert-border {
  border: 1px solid #c6a254;
  padding: 25px 24px;
}
.ki-cert-brand {
  font-family: Georgia, serif;
  font-size: 23px;
  margin: 0 0 22px;
}
.ki-cert-border > .icon {
  height: 54px;
  width: 54px;
  color: #8b722b;
  background: #f3df9e;
  border-radius: 50%;
  padding: 8px;
}
.ki-cert-border h3 {
  font-family: Georgia, serif;
  font-size: 33px;
  margin: 18px 0;
}
.ki-cert-name {
  font:
    31px Georgia,
    serif;
  display: block;
  color: #285947;
  margin: 12px 0 20px;
}
.ki-cert-date {
  font-size: 12px;
}
.ki-cert-disclaimer {
  font-size: 11px;
  max-width: 440px;
  margin: 20px auto 0;
}
.ki-cert-footer {
  font:
    13px Georgia,
    serif;
  margin: 20px 0 0;
}
.ki-cert-border > .eyebrow {
  font-size: 10px;
  margin: 20px 0;
}
.ki-certificate .ki-cert-border > p {
  line-height: 1.55;
}
.ki-research-panel {
  margin-top: 26px;
}
.ki-research-panel h3 {
  margin-top: 22px;
}
.ki-research-panel li {
  margin-bottom: 10px;
}
@keyframes ki-pop {
  0% {
    transform: scale(0.82);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes ki-spark {
  0% {
    transform: scale(0.8);
    opacity: 0.25;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (min-width: 1450px) {
  .ki-hero-art > .ki-buddy {
    width: 265px;
  }
  .ki-hero {
    min-height: 350px;
  }
  .ki-hero-copy {
    padding: 40px 0 40px 44px;
  }
  .ki-island {
    padding: 20px 25px 23px;
  }
  .ki-island-icon {
    width: 90px;
    height: 86px;
  }
}
@media (max-width: 1150px) {
  .ki-heading {
    align-items: flex-start;
  }
  .ki-settings {
    max-width: 160px;
  }
  .ki-stats > article,
  .ki-stats > a {
    padding: 0 10px;
    gap: 7px;
  }
  .ki-stats small {
    font-size: 10px;
  }
  .ki-stats strong {
    font-size: 20px;
  }
  .ki-hero-copy {
    padding: 28px 0 28px 25px;
  }
  .ki-hero h2 {
    font-size: 37px;
  }
  .ki-hero-art > .ki-buddy {
    width: 210px;
  }
  .ki-speech {
    right: 12px;
    top: 24px;
    font-size: 12px;
  }
  .ki-map {
    gap: 14px;
  }
  .ki-island {
    padding: 15px;
  }
  .ki-island-top {
    font-size: 9px;
  }
  .ki-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ki-break-panel {
    grid-template-columns: 1fr;
  }
  .ki-break-panel .ki-buddy {
    grid-column: 1;
    grid-row: auto;
    width: 90px;
    justify-self: center;
  }
  .ki-certificate-grid {
    gap: 12px;
  }
  .ki-certificate-card {
    padding: 25px 13px 20px;
  }
}
@media (max-width: 760px) {
  .ki-heading {
    margin: 24px 0 18px;
    display: block;
  }
  .ki-settings {
    max-width: none;
    justify-content: flex-start;
    margin-top: 16px;
  }
  .ki-small {
    font-size: 11px;
  }
  .ki-tabs {
    gap: 3px;
    justify-content: space-between;
  }
  .ki-tabs a {
    padding: 10px 7px;
    font-size: 11px;
    gap: 5px;
  }
  .ki-tabs .icon {
    width: 16px;
  }
  .ki-hero {
    grid-template-columns: 1.05fr 1fr;
    min-height: 270px;
  }
  .ki-hero-copy {
    padding: 26px 0 26px 23px;
  }
  .ki-hero h2 {
    font-size: 34px;
  }
  .ki-hero p {
    font-size: 12px;
  }
  .ki-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .ki-hero-actions .ki-button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .ki-hero-art {
    padding: 0;
  }
  .ki-hero-art > .ki-buddy {
    width: 190px;
    margin: 0;
  }
  .ki-speech {
    font-size: 10px;
    padding: 10px;
    top: 30px;
    right: 10px;
  }
  .ki-hero-star {
    left: 0;
    bottom: 135px;
  }
  .ki-hero-star .ki-token {
    width: 26px;
  }
  .ki-cloud-one {
    display: none;
  }
  .ki-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin-bottom: 24px;
  }
  .ki-stats > article,
  .ki-stats > a {
    padding: 16px;
    border-bottom: 1px solid #e8e7de;
  }
  .ki-stats > article:nth-child(2) {
    border-right: 0;
  }
  .ki-stats > article:nth-child(3),
  .ki-stats > a {
    border-bottom: 0;
  }
  .ki-stats small {
    font-size: 11px;
  }
  .ki-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .ki-island {
    padding: 14px 12px;
  }
  .ki-island-top {
    font-size: 8px;
    gap: 4px;
  }
  .ki-island-top > span:last-child {
    font-size: 8px;
  }
  .ki-island h3 {
    font-size: 18px;
  }
  .ki-island > p {
    font-size: 11px;
  }
  .ki-island-button {
    font-size: 11px;
    padding: 11px 8px;
    gap: 4px;
  }
  .ki-island-button .icon {
    width: 16px;
  }
  .ki-island-place {
    font-size: 8px !important;
    letter-spacing: 1px;
  }
  .ki-quest-reward {
    font-size: 9px;
    gap: 3px;
  }
  .ki-quest-reward .ki-token {
    width: 15px;
    height: 15px;
  }
  .ki-section-title h2 {
    font-size: 21px;
  }
  .ki-section-title p {
    font-size: 12px;
  }
  .ki-count {
    font-size: 10px;
    padding: 7px 9px;
  }
  .ki-bottom-grid {
    grid-template-columns: 1fr;
  }
  .ki-break-panel {
    grid-template-columns: 1fr 115px;
  }
  .ki-break-panel .ki-buddy {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 115px;
  }
  .ki-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ki-badge {
    padding: 20px 10px;
  }
  .ki-badge h3 {
    font-size: 15px;
  }
  .ki-badge p {
    font-size: 11px;
  }
  .ki-customize {
    padding: 20px 15px;
  }
  .ki-companions {
    gap: 8px;
  }
  .ki-companion {
    padding: 10px 6px;
  }
  .ki-companion strong {
    font-size: 11px;
  }
  .ki-companion small {
    font-size: 10px;
  }
  .ki-certificate-grid {
    grid-template-columns: 1fr;
  }
  .ki-certificate-card {
    padding: 23px;
  }
  .ki-certificate-card > .icon {
    margin: 3px 0;
    width: 38px;
    height: 38px;
  }
  .ki-certificate-card h3 {
    font-size: 22px;
  }
  .ki-certificate-card .ki-button {
    max-width: 280px;
    font-size: 14px;
  }
  .ki-collection-intro,
  .ki-certificate-intro {
    padding: 23px;
    gap: 16px;
  }
  .ki-collection-intro > .ki-token {
    width: 48px;
    height: 48px;
  }
  .ki-seal {
    width: 57px;
    height: 57px;
    border-width: 4px;
  }
  .ki-seal .icon {
    width: 30px;
  }
  .ki-certificate-intro h2 {
    font-size: 21px;
  }
  .ki-certificate-intro p {
    font-size: 12px;
  }
  .ki-dialog {
    padding: 28px 21px !important;
    max-height: 90dvh;
  }
  .ki-dialog h2 {
    font-size: 25px;
  }
  .ki-dialog .ki-lesson,
  .ki-question {
    font-size: 16px;
  }
  .ki-choice {
    font-size: 14px;
    padding: 13px;
  }
  .ki-dialog-actions .ki-button {
    font-size: 12px;
    min-width: 110px;
  }
  .ki-celebration-tokens {
    font-size: 13px;
    padding: 15px 8px;
    gap: 6px;
  }
  .ki-celebration-tokens .ki-token {
    width: 25px;
    height: 25px;
  }
  .ki-cert-border {
    padding: 22px 12px;
  }
  .ki-cert-brand {
    font-size: 17px;
  }
  .ki-cert-border h3 {
    font-size: 26px;
  }
  .ki-cert-name {
    font-size: 25px;
  }
  .ki-cert-border > p {
    font-size: 12px;
  }
  .ki-cert-border .ki-cert-disclaimer {
    font-size: 10px;
  }
}
@media (max-width: 420px) {
  .ki-hero {
    display: block;
  }
  .ki-hero-copy {
    padding: 25px 25px 0;
  }
  .ki-hero h2 {
    font-size: 39px;
  }
  .ki-hero p {
    font-size: 13px;
  }
  .ki-hero-art {
    min-height: 190px;
    margin-top: 10px;
    justify-content: flex-end;
    background: radial-gradient(
      ellipse at 70% 100%,
      #c2d6a7 0 54%,
      transparent 54%
    );
  }
  .ki-hero-art > .ki-buddy {
    width: 165px;
    margin-right: 35px;
  }
  .ki-speech {
    top: 23px;
    left: 22px;
    right: auto;
    font-size: 11px;
  }
  .ki-hero-star {
    left: 50px;
    bottom: 35px;
  }
  .ki-tabs a {
    font-size: 10px;
  }
  .ki-tabs .icon {
    width: 14px;
  }
  .ki-section-title {
    gap: 8px;
  }
  .ki-section-title h2 {
    font-size: 20px;
  }
  .ki-island h3 {
    font-size: 16px;
  }
  .ki-island-top > span:last-child {
    display: none;
  }
  .ki-island-top {
    justify-content: center;
  }
  .ki-island-icon {
    width: 65px;
    height: 63px;
    margin: 17px 0 13px;
  }
  .ki-island-icon > .icon {
    width: 32px;
  }
  .ki-quest-reward span {
    display: none;
  }
  .ki-quest-reward {
    font-size: 8px;
  }
  .ki-boundary {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ki-world *,
  .ki-dialog * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 540px) {
  .ki-map {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ki-island {
    padding: 22px;
    align-items: flex-start;
    text-align: left;
  }
  .ki-island-top {
    justify-content: space-between;
    font-size: 10px;
    margin-bottom: 22px;
  }
  .ki-island-top > span:last-child {
    display: block;
    font-size: 10px;
  }
  .ki-island-icon {
    position: absolute;
    right: 24px;
    top: 42px;
    width: 56px;
    height: 56px;
    margin: 0;
  }
  .ki-island-icon > .icon {
    width: 29px;
    height: 29px;
  }
  .ki-island h3 {
    font-size: 22px;
    padding-right: 67px;
    margin-bottom: 8px;
  }
  .ki-island-place {
    font-size: 10px !important;
    padding-right: 70px;
  }
  .ki-island > p:not(.ki-island-place) {
    font-size: 14px;
    padding-right: 12px;
    margin: 8px 0 18px;
  }
  .ki-quest-reward {
    font-size: 12px;
    gap: 7px;
    justify-content: flex-start;
  }
  .ki-quest-reward .ki-token {
    width: 21px;
    height: 21px;
  }
  .ki-quest-reward span {
    display: inline;
  }
  .ki-island-button {
    font-size: 14px;
    padding: 12px 16px;
    justify-content: space-between;
  }
  .ki-boundary {
    font-size: 12px;
  }
  .ki-hero-art {
    padding-bottom: 8px;
  }
  .ki-hero-actions {
    gap: 12px;
  }
}
@media print {
  body.ki-printing > * {
    display: none !important;
  }
  body.ki-printing > #app-dialog {
    display: block !important;
    position: static !important;
    overflow: visible !important;
    max-height: none !important;
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
    box-shadow: none !important;
  }
  body.ki-printing > #app-dialog > * {
    display: none !important;
  }
  body.ki-printing > #app-dialog > #ki-print-certificate {
    display: block !important;
    break-inside: avoid;
    margin: 10mm 0 !important;
  }
  .ki-certificate {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .ki-cert-border {
    padding: 12mm !important;
  }
  body.ki-printing > #app-dialog::backdrop {
    background: transparent;
  }
}
