@import url("/fonts/hanzi.css");
:root {
  --ink: #584738;
  --cream: #fff8e8;
  --sage: #b9d0ad;
  --green: #50735c;
  --peach: #f4bd9f;
  --yellow: #f7ce69;
  --line: #66513f;
  --shadow: 0 6px 0 #735b3c24;
  font-family:
    "Trebuchet MS", "Arial Rounded MT Bold", system-ui, "Beeve Hanzi",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 18px;
  font-weight: 800;
  background: #fffaf0;
  padding: 12px 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  touch-action: manipulation;
}
button:hover:not(:disabled) {
  transform: translateY(-2px);
}
button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: none;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 4px solid #4d8177;
  outline-offset: 4px;
}
a {
  color: inherit;
}
.primary {
  background: var(--yellow);
}
.secondary {
  background: #fffdf6;
}
.quiet {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 16px;
  min-height: 56px;
}
.quiet:hover {
  background: #f4e8d8;
}
.text-button {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.icon {
  width: 56px;
  padding: 8px;
  font-size: 26px;
  background: #f8ead6;
}
header {
  height: 108px;
  padding: 26px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: auto;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: -1.5px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 8px;
}
.brand-icon {
  font-size: 50px;
  color: #b5793b;
  text-shadow: 2px 2px #f1cf83;
}
.tools {
  display: flex;
  gap: 10px;
  align-items: center;
}
select {
  border: 2px solid #ad9980;
  border-radius: 14px;
  min-height: 56px;
  padding: 10px 12px;
  background: #fffaf0;
  font-weight: 700;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 20px 4vw 50px;
  position: relative;
  z-index: 1;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 900;
}
h2 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -1px;
}
h3 {
  font-size: 20px;
}
p {
  line-height: 1.65;
  margin: 16px 0;
}
small,
.small {
  font-size: 13px;
  line-height: 1.6;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 18px;
}
.welcome {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  min-height: 560px;
}
.hero-copy {
  padding: 30px 0;
}
.lead {
  font-size: 19px;
  max-width: 450px;
  margin: 24px 0 30px;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.privacy {
  max-width: 420px;
  color: #756857;
}
.hero-art {
  background: #f4e5c2;
  border: 3px solid var(--line);
  border-radius: 48% 48% 38% 38%;
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 10px 12px 0 #c6d6b6;
  transform: rotate(3deg);
}
.mascot {
  width: 100%;
  max-width: 330px;
  overflow: visible;
}
.hero-art .mascot {
  width: 90%;
  transform: rotate(-3deg);
}
.art-label {
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 20px;
  background: #fffbef;
  border: 2px solid #8a7255;
  transform: rotate(-5deg);
  position: absolute;
  bottom: 18px;
}
.orbit {
  position: absolute;
  font-size: 56px;
  color: #d9973f;
  text-shadow: 2px 3px #6b543a;
}
.star1 {
  right: -12px;
  top: 12px;
  transform: rotate(12deg);
}
.star2 {
  left: -25px;
  bottom: 60px;
  font-size: 40px;
  transform: rotate(-15deg);
}
footer {
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  margin: 40px 0 10px;
  color: #7e795c;
  font-weight: 800;
}
.scenery {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sun {
  position: absolute;
  right: 8%;
  top: 120px;
  width: 100px;
  height: 100px;
  background: #f8dc86;
  border-radius: 50%;
  opacity: 0.4;
}
.cloud {
  position: absolute;
  width: 150px;
  height: 40px;
  border-radius: 60px;
  background: #fffdf5;
  box-shadow: 0 3px 0 #ecdfc0;
}
.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  bottom: 10px;
  background: #fffdf5;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  left: 28px;
}
.cloud:after {
  width: 45px;
  height: 45px;
  left: 80px;
}
.c1 {
  top: 240px;
  left: -50px;
}
.c2 {
  right: -50px;
  top: 360px;
}
.hill {
  position: absolute;
  bottom: -130px;
  width: 75%;
  height: 250px;
  background: #dce4bf;
  border-radius: 50% 50% 0 0;
}
.h1 {
  left: -15%;
  transform: rotate(8deg);
}
.h2 {
  right: -20%;
  background: #cbdabc;
  bottom: -150px;
  transform: rotate(-8deg);
}
.flower {
  position: absolute;
  bottom: 35px;
  font-size: 48px;
  color: #d3986d;
}
.f1 {
  left: 4%;
}
.f2 {
  right: 6%;
  color: #e6b956;
}
.center-heading {
  text-align: center;
  padding: 35px 0 30px;
}
.center-heading h1 {
  font-size: 42px;
}
.center {
  text-align: center;
}
.profile-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 25px auto 50px;
}
.profile {
  width: 190px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fffdf3;
  border-radius: 30px;
  box-shadow: 5px 7px 0 #decba7;
}
.profile:nth-child(3n + 2) {
  background: #e7edda;
}
.profile:nth-child(3n + 3) {
  background: #fbe0cb;
}
.profile strong {
  font-size: 24px;
}
.profile > span:last-child {
  font-size: 15px;
}
.avatar {
  font-size: 62px;
  background: #f9e6b9;
  border-radius: 50%;
  width: 95px;
  height: 95px;
  display: grid;
  place-items: center;
}
.add {
  background: transparent;
  border: 2px dashed #b5a38a;
}
.add .avatar {
  font-size: 38px;
  background: #f1e7d4;
}
.bottom-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.shelf-heading {
  margin: 20px 0 32px;
}
.shelf-heading h1 {
  font-size: 46px;
}
.shelf-heading p {
  margin-top: 10px;
}
.wave {
  color: #c68f41;
}
.game-toy {
  display: grid;
  grid-template-columns: 45% 55%;
  border: 3px solid var(--line);
  border-radius: 32px;
  background: #fffdf2;
  box-shadow: 6px 8px 0 #cdbb94;
  overflow: hidden;
  min-height: 350px;
}
.toy-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbe6c7;
  position: relative;
  padding: 30px;
}
.toy-art .mascot {
  width: 92%;
  transform: rotate(-5deg);
}
.floating-character {
  position: absolute;
  right: 8px;
  top: 25px;
  padding: 12px;
  background: #fff9e5;
  border: 2px solid var(--line);
  border-radius: 16px;
  transform: rotate(8deg);
  font-size: 26px;
  font-weight: bold;
}
.toy-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #f4c865;
  border: 2px solid var(--line);
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: bold;
  transform: rotate(-8deg);
}
.toy-copy {
  padding: 32px;
}
.toy-copy h2 {
  margin-top: 20px;
}
.toy-copy p {
  font-size: 16px;
}
.pill {
  font-size: 10px;
  letter-spacing: 1px;
  border-radius: 12px;
  background: #f9e7b3;
  padding: 8px 10px;
  font-weight: 900;
}
.wood-shelf {
  height: 22px;
  border: 2px solid #9e8061;
  border-radius: 9px;
  background: #d9b78e;
  margin: 18px -12px 36px;
  box-shadow: 0 7px #d2bc9726;
}
.coming {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 25px;
  color: #6f765e;
}
.coming p {
  margin: 4px 0;
  font-size: 14px;
}
.seed {
  font-size: 50px;
}
.settings {
  font-size: 14px;
  margin-top: 18px;
}
.settings summary {
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}
.settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #5e8060;
}
.settings p {
  line-height: 1.4;
  font-size: 12px;
}
.play-area {
  max-width: 770px;
  margin: auto;
  text-align: center;
}
.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-top #parent {
  font-size: 25px;
  min-width: 56px;
}
.round-pill {
  font-size: 14px;
  background: #f3e4c6;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 800;
}
.lesson-track {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 24px;
  margin: 3px 0 15px;
  color: #d9ceb4;
}
.lesson-track .filled {
  color: #c28d34;
}
.play-area h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.instructions {
  font-size: 14px;
  margin: 10px 0 22px;
}
.match-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 7vw, 70px);
  padding: 0 14px;
}
.words,
.pictures {
  display: grid;
  gap: 18px;
}
.word-card,
.picture-card {
  position: relative;
  width: 100%;
  height: 170px;
  min-width: 0;
  border: 3px solid #7c644b;
  border-radius: 26px;
  box-shadow: 4px 6px 0 #d8c5a0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  background: #fffdf6;
}
.word-card {
  touch-action: none;
  user-select: none;
}
.word-card:nth-child(even) {
  background: #fce8c9;
}
.hanzi {
  font-size: 44px;
  line-height: 1.2;
  font-family: system-ui, "Beeve Hanzi", sans-serif;
}
.pinyin {
  font-size: 16px;
  font-weight: 500;
  color: #7c5c44;
  margin: 4px 0;
}
.meaning {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.picture-card {
  background: #fff;
}
.picture-card img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 15px;
}
.word-card.selected {
  outline: 4px solid #5b8968;
  outline-offset: 5px;
  background: #e7edcf;
}
.word-card.holding {
  cursor: grabbing;
  box-shadow: 7px 12px 0 #a8986a50;
  pointer-events: auto;
}
.matched {
  background: #e2edd5 !important;
  border-color: #7e9e70;
  box-shadow: 2px 3px 0 #baccaa;
}
.matched img {
  opacity: 0.75;
}
.check {
  position: absolute;
  right: -8px;
  top: -8px;
  background: #688c62;
  color: white;
  border: 2px solid #fff8e8;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.game-feedback {
  min-height: 50px;
  padding: 17px 5px 4px;
  font-size: 15px;
  font-weight: 800;
  color: #547358;
}
.game-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pinyin-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-height: 42px;
}
.invisible {
  visibility: hidden;
}
.voice-note {
  font-size: 12px;
  margin: 4px 0;
}
.choices-4 .word-card,
.choices-4 .picture-card {
  height: 120px;
  border-radius: 20px;
}
.choices-4 .hanzi {
  font-size: 32px;
}
.choices-4 .pinyin {
  font-size: 13px;
  margin: 2px 0;
}
.choices-4 .meaning {
  font-size: 15px;
}
.choices-4 .words,
.choices-4 .pictures {
  gap: 13px;
}
.celebration {
  text-align: center;
  max-width: 600px;
  margin: 20px auto;
}
.celebration h1 {
  font-size: 46px;
}
.celebrate-art {
  position: relative;
  max-width: 270px;
  margin: 12px auto;
}
.star-cluster {
  font-size: 35px;
  letter-spacing: 10px;
  color: #c58e29;
  margin-top: -28px;
  position: relative;
  text-shadow: 1px 2px #7a5a30;
}
.reward-number {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -3px;
  color: #7e6029;
  margin-top: 10px;
}
.reward-number span {
  font-size: 30px;
}
.celebration > p {
  margin: 4px 0 18px;
}
.xp-card {
  padding: 20px 24px;
  background: #fffcf0;
  border: 2px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-width: 430px;
  margin: 0 auto;
}
.xp-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
}
#xp-track {
  height: 20px;
  border: 2px solid #a38b68;
  border-radius: 20px;
  background: #eee1c4;
  overflow: hidden;
}
#xp-track > div {
  height: 100%;
  background: #efbf56;
  border-radius: 12px;
}
#level-badge {
  margin: 16px auto;
  padding: 10px;
  border-radius: 15px;
  background: #d7e7c3;
  width: fit-content;
  font-weight: 800;
}
.celebration .actions {
  justify-content: center;
}
.flying-star {
  position: fixed;
  font-size: 34px;
  color: #e1a62f;
  text-shadow: 1px 2px #87683b;
  z-index: 20;
  pointer-events: none;
  animation: star-flight 0.65s ease-in forwards;
}
@keyframes star-flight {
  0% {
    transform: translate(0, 0) scale(1.6);
  }
  40% {
    transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.4 - 60px))
      rotate(90deg);
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(210deg) scale(0.45);
    opacity: 0.2;
  }
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.progress-card {
  border: 2px solid var(--line);
  background: #fffdf4;
  border-radius: 26px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.stats {
  display: flex;
  gap: 25px;
  background: #edf1df;
  border-radius: 17px;
  padding: 20px;
  margin-top: 22px;
}
.stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats strong {
  font-size: 27px;
}
.stats span {
  font-size: 13px;
}
.word-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  max-height: 280px;
  overflow: auto;
}
.word-progress > span {
  padding: 8px 12px;
  background: #f4ecd9;
  border-radius: 10px;
  font-size: 14px;
}
.word-progress small {
  float: right;
}
.word-progress b {
  font-size: 20px;
  margin-right: 5px;
}
dialog {
  border: 3px solid var(--line);
  border-radius: 28px;
  background: #fffaf0;
  color: var(--ink);
  padding: 38px;
  width: min(480px, calc(100% - 30px));
  box-shadow: 10px 15px 0 #5b4c3020;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #453b2e77;
  backdrop-filter: blur(4px);
}
dialog h2 {
  padding-right: 18px;
  margin-bottom: 20px;
}
dialog form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
dialog label {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
dialog input:not([type="checkbox"]) {
  width: 100%;
  min-height: 56px;
  border: 2px solid #b59b7b;
  border-radius: 14px;
  background: #fffef8;
  padding: 12px;
}
dialog .small {
  margin: 18px 0 0;
}
#close-dialog {
  position: absolute;
  right: 8px;
  top: 6px;
  font-size: 28px;
  width: 50px;
  min-height: 50px;
  padding: 3px;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 28px);
  width: fit-content;
  padding: 18px 24px;
  background: #fff1d5;
  border: 2px solid #a36b46;
  border-radius: 18px;
  box-shadow: 0 6px 20px #563b3526;
  font-size: 14px;
}
body[data-screen="game"] header {
  height: 88px;
  padding-top: 16px;
  padding-bottom: 16px;
}
body[data-screen="game"] main {
  padding-top: 0;
  padding-bottom: 0;
}
body[data-screen="game"] .scenery {
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1000px) {
  body[data-screen="game"] main {
    padding-top: 15px;
  }
  .play-area {
    max-width: 720px;
  }
  .choices-2 .word-card,
  .choices-2 .picture-card {
    height: 190px;
  }
}
@media (max-width: 650px) {
  header {
    height: 92px;
    padding: 18px 20px;
  }
  .brand {
    font-size: 28px;
    gap: 7px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .brand-icon {
    font-size: 38px;
  }
  .tools {
    gap: 7px;
  }
  .tools select {
    max-width: 112px;
    font-size: 12px;
    padding: 8px;
    min-height: 56px;
  }
  .icon {
    width: 56px;
  }
  main {
    padding: 12px 22px 35px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }
  .hero-copy {
    padding: 20px 0 0;
  }
  .hero-copy h1 {
    font-size: 44px;
    letter-spacing: -1.6px;
  }
  .hero-copy .eyebrow {
    font-size: 10px;
  }
  .lead {
    font-size: 16px;
    margin: 18px 0 24px;
  }
  .hero-art {
    min-height: 270px;
    width: 85%;
    margin: 10px auto;
  }
  .hero-art .mascot {
    max-width: 235px;
  }
  .art-label {
    font-size: 10px;
    bottom: 8px;
  }
  .hero-copy .actions {
    margin: 22px 0;
  }
  .hero-copy .privacy {
    font-size: 11px;
  }
  .center-heading {
    padding: 20px 0;
  }
  .center-heading h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .profile-grid {
    gap: 16px;
    margin: 18px 0 25px;
  }
  .profile {
    width: calc(50% - 8px);
    padding: 15px 8px;
    min-height: 195px;
    border-radius: 25px;
  }
  .profile strong {
    font-size: 21px;
  }
  .avatar {
    font-size: 52px;
    width: 80px;
    height: 80px;
  }
  .profile > span:last-child {
    font-size: 14px;
  }
  .page-nav {
    margin: 0 0 14px;
    font-size: 13px;
  }
  .shelf-heading {
    margin: 10px 0 23px;
  }
  .shelf-heading h1 {
    font-size: 35px;
  }
  .shelf-heading p {
    font-size: 14px;
  }
  .game-toy {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .toy-art {
    height: 215px;
    padding: 8px 30px;
  }
  .toy-art .mascot {
    height: 200px;
    width: auto;
  }
  .toy-copy {
    padding: 25px;
  }
  .toy-copy h2 {
    font-size: 27px;
    margin-top: 16px;
  }
  .toy-copy > p {
    font-size: 14px;
  }
  .toy-copy .primary {
    width: 100%;
  }
  .coming {
    padding: 5px;
    gap: 14px;
  }
  .coming h3 {
    font-size: 17px;
  }
  .coming p {
    font-size: 12px;
  }
  .seed {
    font-size: 40px;
  }
  .wood-shelf {
    margin-bottom: 22px;
  }
  .bottom-actions {
    flex-wrap: wrap;
  }
  .play-area h1 {
    font-size: 24px;
    letter-spacing: -0.7px;
  }
  .game-top .quiet {
    padding: 8px;
    min-width: 56px;
  }
  .round-pill {
    font-size: 12px;
    padding: 8px 14px;
  }
  .lesson-track {
    font-size: 20px;
    margin: 0 0 10px;
  }
  .instructions {
    font-size: 11px;
    margin: 8px 0 18px;
  }
  .match-board {
    gap: 26px;
    padding: 0 3px;
  }
  .words,
  .pictures {
    gap: 18px;
  }
  .word-card,
  .picture-card {
    height: 158px;
    border-radius: 22px;
    padding: 12px;
    border-width: 2px;
    box-shadow: 3px 5px 0 #d8c5a0;
  }
  .hanzi {
    font-size: 35px;
  }
  .pinyin {
    font-size: 14px;
  }
  .meaning {
    font-size: 14px;
  }
  .game-feedback {
    font-size: 12px;
    min-height: 46px;
    padding-top: 17px;
  }
  .game-bottom button {
    font-size: 14px;
    min-height: 56px;
  }
  .choices-4 .words,
  .choices-4 .pictures {
    gap: 10px;
  }
  .choices-4 .word-card,
  .choices-4 .picture-card {
    height: 105px;
    padding: 7px;
    border-radius: 17px;
  }
  .choices-4 .hanzi {
    font-size: 29px;
  }
  .choices-4 .pinyin {
    font-size: 11px;
  }
  .choices-4 .meaning {
    font-size: 12px;
  }
  .voice-note {
    font-size: 10px;
    line-height: 1.3;
  }
  .pinyin-toggle {
    font-size: 12px;
    min-height: 36px;
  }
  .celebration {
    margin: 14px auto;
  }
  .celebration h1 {
    font-size: 35px;
  }
  .celebrate-art {
    max-width: 210px;
  }
  .reward-number {
    font-size: 50px;
  }
  .celebration .actions {
    gap: 8px;
  }
  .celebration .small {
    font-size: 11px;
  }
  .xp-card {
    padding: 18px;
  }
  .celebration > .eyebrow {
    margin-bottom: 12px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .progress-card {
    padding: 21px;
  }
  dialog {
    padding: 32px 25px;
  }
  dialog h2 {
    font-size: 27px;
  }
  body[data-screen="game"] header {
    height: 80px;
    padding: 12px 20px;
  }
  body[data-screen="game"] main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .game-top {
    height: 56px;
  }
}
@media (max-height: 800px) and (max-width: 650px) {
  body[data-screen="game"] header {
    height: 72px;
  }
  .lesson-track {
    margin-bottom: 5px;
  }
  .instructions {
    margin-bottom: 12px;
  }
  .choices-2 .word-card,
  .choices-2 .picture-card {
    height: 140px;
  }
  .choices-4 .word-card,
  .choices-4 .picture-card {
    height: 92px;
  }
  .choices-4 .hanzi {
    font-size: 25px;
  }
  .choices-4 .pinyin {
    font-size: 10px;
  }
  .choices-4 .meaning {
    font-size: 11px;
  }
  .game-feedback {
    min-height: 40px;
    padding-top: 12px;
  }
  .choices-4 .words,
  .choices-4 .pictures {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .flying-star {
    display: none;
  }
}
