* {
  box-sizing: border-box;
}
body.games-page {
  background: #fafcfb;
  color: #243a36;
  letter-spacing: 0;
}
.games-page button,
.games-page input,
.games-page select {
  font: inherit;
}
.games-page button,
.file-button {
  cursor: pointer;
}
.games-page button:disabled {
  cursor: default;
  opacity: 0.55;
}
.games-page .app-header {
  height: auto;
  min-height: 96px;
  gap: 24px;
  padding: 8px 32px;
  background: #fff;
  border-bottom: 1px solid #c9d3cf;
}
.game-logo {
  width: 240px;
  height: 80px;
  object-fit: contain;
}
.section-nav {
  display: flex;
  gap: 28px;
  align-self: stretch;
  align-items: center;
  margin: auto;
}
.section-nav a {
  padding: 20px 0;
  text-decoration: none;
  color: #52615b;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}
.section-nav a[aria-current] {
  color: #147c95;
  border-color: #147c95;
  font-weight: 700;
}
.game-catalog {
  max-width: 1440px;
  margin: auto;
  padding: 28px 32px 60px;
}
.catalog-title {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.catalog-title h1 {
  font-size: 27px;
  margin: 0;
}
.catalog-title small {
  font: 14px system-ui;
  background: #dfede9;
  padding: 4px 9px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
}
.catalog-title > span {
  color: #6e7e77;
  font-size: 13px;
}
.game-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.game-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.game-filters button {
  border: 1px solid transparent;
  padding: 9px 15px;
  border-radius: 5px;
  background: transparent;
  color: #4d5b55;
}
.game-filters button[aria-pressed="true"] {
  background: #d5ede6;
  border-color: #52917f;
  color: #194f40;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.game-card {
  color: inherit;
  text-decoration: none;
  border: 1px solid #52635a;
  border-radius: 7px;
  overflow: hidden;
  background: white;
  box-shadow: 3px 3px 0 #dbe2de;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 6px 0 #dbe2de;
}
.game-card:focus-visible {
  outline: 3px solid #258cb2;
  outline-offset: 4px;
}
.arcade-access { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.pinyin-practice .answer-option,
.pinyin-practice .match-grid button,
.pinyin-practice .sentence-bank button,
.pinyin-practice .sentence-answer button,
.recall-options .answer-option { font-family:Arial,sans-serif; overflow-wrap:anywhere; line-height:1.5; }
.pinyin-practice .stack-tile { font-family:Arial,sans-serif; overflow-wrap:anywhere; }
.recall-options { margin:16px auto; max-width:800px; }
.recall-options:empty { display:none; }
.arcade-access:not(:focus-within) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.game-thumb {
  height: 166px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #84978d;
  background-color: var(--wash);
  background-image:
    linear-gradient(#ffffff80 1px, transparent 1px),
    linear-gradient(90deg, #ffffff80 1px, transparent 1px);
  background-size: 20px 20px;
}
.game-art {
  width: 140px;
  height: 140px;
  display: block;
  background-image: url("/classroom/assets/game-atlas.png");
  background-size: 400% 400%;
  background-position: var(--ax) var(--ay);
  background-repeat: no-repeat;
}
.game-card footer {
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.game-card h2 {
  font-size: 17px;
  margin: 0 0 5px;
}
.game-card small {
  font-size: 12px;
  color: #64736b;
}
.game-card footer svg {
  width: 18px;
}
.game-member-access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #356e65;
  font-size: 12px;
  line-height: 1.4;
}
.game-card footer .game-member-access svg { width: 14px; height: 14px; flex: none; }
.play-view {
  max-width: 1500px;
  margin: auto;
  padding: 20px 28px;
}
.play-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.play-heading h1 {
  font-size: 24px;
  margin: 0;
}
.play-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #cad7d1;
  border-radius: 5px;
  background: white;
  color: #345c4e;
  text-decoration: none;
  flex-shrink: 0;
}
.icon-button svg {
  width: 20px;
  height: 20px;
}
.game-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}
.game-layout.panel-closed {
  grid-template-columns: 1fr;
}
.word-panel {
  padding: 18px 18px 20px 0;
  border-right: 1px solid #d1ddd6;
}
.word-panel h2 {
  font-size: 17px;
  margin: 0 0 16px;
}
.word-panel label {
  display: block;
  font-size: 13px;
  margin: 12px 0 6px;
}
.word-panel textarea,
.word-panel select {
  width: 100%;
  padding: 9px;
  border: 1px solid #c2d1c9;
  border-radius: 4px;
  background: white;
}
.word-panel textarea {
  font:
    17px CardKaitiM,
    serif;
  line-height: 1.7;
  resize: vertical;
}
.word-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.word-actions button,
.word-actions .file-button {
  font-size: 12px;
  margin: 0;
  border: 1px solid #c9d7d0;
  background: white;
  border-radius: 4px;
  padding: 7px;
}
.primary {
  background: #257761;
  color: white;
  border: 1px solid #1c5e4c;
  padding: 11px 24px;
  border-radius: 5px;
  font-weight: 600;
}
.word-panel .primary {
  width: 100%;
  margin-top: 18px;
}
#setupStatus {
  font-size: 12px;
  line-height: 1.6;
  color: #9f3d3a;
}
.game-stage {
  position: relative;
  min-height: 590px;
  background: white;
  border: 1px solid #97aaa0;
  border-radius: 7px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game-hud {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 42px;
  font-size: 14px;
}
.game-hud strong {
  margin-left: auto;
}
.game-prompt {
  font-size: 24px;
  font-weight: 600;
  min-height: 60px;
  text-align: center;
  padding: 14px 6px;
  overflow-wrap: anywhere;
}
.game-arena {
  flex: 1;
  min-height: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.game-feedback {
  min-height: 28px;
  text-align: center;
  margin: 12px 0 4px;
  color: #267660;
  overflow-wrap: anywhere;
}
.game-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
}
.game-controls button,
.answer-option,
.tile-button {
  padding: 12px 18px;
  background: #f5faf7;
  border: 1px solid #7d9b8c;
  border-radius: 5px;
  color: #29463a;
}
.game-controls .primary {
  color: white;
  background: #257761;
}
.question-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 620px;
}
.answer-option {
  min-height: 76px;
  font:
    32px CardKaitiM,
    serif;
  overflow-wrap: anywhere;
  white-space: normal;
}
.answer-option:hover,
.tile-button:hover {
  background: #e1f3ec;
}
.answer-option.correct {
  background: #c9ebd9;
  border-color: #268855;
}
.answer-option.wrong {
  background: #fce0e3;
  border-color: #c45969;
}
.big-word {
  font:
    100px CardKaitiM,
    serif;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.reading {
  font-size: 24px;
  text-align: center;
  margin: 12px 0;
}
.meaning {
  font-size: 25px;
  text-align: center;
}
.flashcard {
  border: 2px solid #5d9b89;
  background: #eff9f4;
  box-shadow: 5px 5px 0 #d6e7df;
  padding: 30px;
  width: min(440px, 100%);
  min-height: 245px;
  border-radius: 7px;
}
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.match-grid button {
  min-height: 80px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.match-grid button.selected {
  outline: 3px solid #e0b431;
}
.match-grid button.matched {
  visibility: hidden;
}
.team-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
.team-panel {
  padding: 14px;
  border-top: 5px solid #65afd1;
  background: #eff8fc;
}
.team-panel:nth-child(2) {
  border-color: #de8899;
  background: #fff2f4;
}
.team-panel h2 {
  font-size: 20px;
  margin: 0 0 12px;
  text-align: center;
}
.team-panel .answer-option {
  font-size: 26px;
  min-height: 65px;
  padding: 10px;
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 640px;
}
.risk-tile {
  background: #edf8f5;
  border: 1px solid #729689;
  border-radius: 6px;
  padding: 4px 10px 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 135px;
}
.risk-tile .game-art {
  width: 78px;
  height: 78px;
}
.risk-tile strong {
  font:
    27px CardKaitiM,
    serif;
}
.risk-tile.used {
  opacity: 0.45;
}
.gomoku-grid {
  display: grid;
  grid-template-columns: repeat(var(--board-size, 9), minmax(0, 1fr));
  grid-template-rows: repeat(var(--board-size, 9), minmax(0, 1fr));
  width: min(var(--board-width, 580px), 100%);
  container-type: inline-size;
  aspect-ratio: 1;
  gap: 1px;
  background: #91aba0;
  border: 2px solid #65867a;
}
.gomoku-grid button {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f9fbf8;
  font:
    min(22px, calc(75cqw / var(--board-size, 9))) CardKaitiM,
    serif;
  color: #496254;
}
.gomoku-grid button.black {
  background: #273b34;
  color: white;
  border-radius: 50%;
}
.gomoku-grid button.white {
  background: white;
  color: #273b34;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #809a90;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: #fffffff2;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 25px;
}
.game-overlay h2 {
  font-size: 30px;
}
.game-overlay[hidden],
[hidden] {
  display: none !important;
}
.result-art {
  width: 155px;
  height: 155px;
}
.result-title {
  font-size: 28px;
  text-align: center;
  margin: 0;
}
.result-score {
  font-size: 20px;
}
.track {
  width: 100%;
  height: 100px;
  background: #edf5f7;
  border-bottom: 4px dashed #88a6a8;
  position: relative;
}
.track .game-art {
  position: absolute;
  width: 80px;
  height: 80px;
  bottom: 0;
  transition: left 0.4s;
}
.thief {
  position: absolute;
  font-size: 30px;
  bottom: 10px;
  transition: left 0.4s;
}
.wheel {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 5px solid #45695a;
  background: conic-gradient(
    #b5e3d7 0deg 45deg,
    #ffe6a0 45deg 90deg,
    #b9dcf1 90deg 135deg,
    #f4c1ce 135deg 180deg,
    #b5e3d7 180deg 225deg,
    #ffe6a0 225deg 270deg,
    #b9dcf1 270deg 315deg,
    #f4c1ce 315deg
  );
  position: relative;
  transition: transform 2s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  margin-left: -40px;
  margin-top: -24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
  font:
    21px CardKaitiM,
    serif;
  text-align: center;
}
.wheel-pointer {
  font-size: 24px;
  height: 22px;
  color: #b94460;
}
.goose-tray {
  display: flex;
  gap: 5px;
  width: 100%;
  justify-content: center;
  min-height: 60px;
  padding: 10px;
  background: #e8f2ef;
  border-bottom: 4px solid #629c88;
}
.goose-tray span {
  padding: 8px;
  background: white;
  border: 1px solid #acc3b8;
  font:
    20px CardKaitiM,
    serif;
}
.goose-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  width: 100%;
}
.goose-grid button {
  font:
    25px CardKaitiM,
    serif;
  aspect-ratio: 1;
  padding: 4px;
}
.goose-grid button.removed {
  visibility: hidden;
}
.rope-track {
  height: 32px;
  border-bottom: 6px solid #cfa765;
  width: 90%;
  position: relative;
  margin: 12px;
}
.rope-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 40px;
  border-left: 2px dashed #758d82;
}
.rope-flag {
  position: absolute;
  bottom: -8px;
  font-size: 34px;
  color: #d54662;
  transition: left 0.3s;
  z-index: 1;
}
.sentence-bank,
.sentence-answer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding: 16px;
}
.sentence-answer {
  background: #edf5f1;
  min-height: 80px;
  border-bottom: 2px dashed #77a591;
}
.sentence-bank button,
.sentence-answer button {
  font:
    26px CardKaitiM,
    serif;
}
.spelling-input {
  font-size: 26px;
  padding: 12px;
  width: min(400px, 100%);
  text-align: center;
  border: 2px solid #77a896;
  border-radius: 5px;
}
.tone-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 470px;
}
.tone-keys button {
  padding: 6px 10px;
  font-size: 20px;
}
.arcade-host {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1.8;
  background: #f0f7fa;
  border: 1px solid #b6cdd3;
  border-radius: 6px;
  overflow: hidden;
}
.arcade-host canvas {
  display: block;
  max-width: 100%;
}
.direction-pad {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 5px;
}
.direction-pad button {
  padding: 8px;
  width: 44px;
  height: 40px;
}
.direction-pad button:first-child {
  grid-column: 2;
}
.direction-pad button:nth-child(2) {
  grid-column: 1;
}
.games-page :focus-visible {
  outline: 3px solid #288cb3;
  outline-offset: 3px;
}
.play-view:is(:fullscreen, .pass-projection) {
  max-width: none;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #fff;
}
.play-view:is(:fullscreen, .pass-projection) .play-heading {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px 0;
  background: #fff;
}
.games-page:has(.pass-projection) {
  overflow: hidden;
}
.games-page:has(.pass-projection) > .app-header {
  visibility: hidden;
}
.play-view.pass-projection {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.play-view:fullscreen .word-panel {
  max-height: calc(100vh - 95px);
  overflow: auto;
}
.play-view:fullscreen .game-stage {
  overflow: auto;
  border: 0;
  border-radius: 0;
  padding: 24px;
  background: #fff;
}
.play-view:fullscreen .game-arena {
  max-width: 1200px;
  width: 100%;
  margin: auto;
}
.play-view:fullscreen .game-prompt {
  font-size: 32px;
}
.play-view:fullscreen .arcade-host {
  max-width: 1000px;
}
@media (max-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .games-page .app-header {
    gap: 16px;
    padding: 8px 20px;
  }
  .game-logo {
    width: 200px;
  }
  .section-nav {
    gap: 16px;
  }
  .game-layout {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 16px;
  }
  .game-stage {
    padding: 15px;
  }
  .team-layout {
    gap: 10px;
  }
  .team-panel {
    padding: 10px;
  }
  .team-panel .question-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 750px) {
  .games-page .app-header {
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    padding: 8px 16px;
  }
  .game-logo {
    width: 195px;
    height: 62px;
  }
  .section-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid #e0e8e3;
    gap: 35px;
  }
  .section-nav a {
    padding: 12px 0;
  }
  .games-page .ui-language-select {
    max-width: 110px;
  }
  .game-catalog {
    padding: 22px 16px;
  }
  .catalog-title h1 {
    font-size: 23px;
  }
  .catalog-title > span {
    display: none;
  }
  .game-toolbar {
    flex-direction: column;
    gap: 12px;
  }
  .game-filters {
    gap: 2px;
  }
  .game-filters button {
    padding: 8px;
    font-size: 13px;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .game-thumb {
    height: 130px;
  }
  .game-art {
    width: 115px;
    height: 115px;
  }
  .game-card footer {
    padding: 12px 9px;
  }
  .game-card h2 {
    font-size: 15px;
  }
  .game-card small {
    font-size: 11px;
  }
  .play-view {
    padding: 14px 12px;
  }
  .play-heading {
    gap: 8px;
    flex-wrap: wrap;
  }
  .play-heading h1 {
    font-size: 20px;
  }
  .play-actions {
    gap: 5px;
  }
  .icon-button {
    width: 34px;
    height: 36px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .word-panel {
    border-right: 0;
    border-bottom: 1px solid #cadbd2;
    padding: 0 0 16px;
  }
  .word-panel textarea {
    max-height: 150px;
  }
  .game-stage {
    min-height: 500px;
    padding: 12px 10px;
  }
  .game-prompt {
    font-size: 21px;
  }
  .game-arena {
    min-height: 250px;
  }
  .big-word {
    font-size: 70px;
  }
  .risk-grid {
    gap: 6px;
  }
  .risk-tile {
    padding: 3px;
    min-height: 110px;
  }
  .risk-tile .game-art {
    width: 60px;
    height: 60px;
  }
  .risk-tile strong {
    font-size: 22px;
  }
  .match-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .match-grid button {
    font-size: 16px;
    padding: 5px;
    min-height: 74px;
  }
  .team-panel .answer-option {
    font-size: 23px;
    min-height: 56px;
  }
  .team-panel h2 {
    font-size: 17px;
  }
  .goose-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }
  .goose-grid button {
    font-size: 21px;
  }
  .sentence-bank button,
  .sentence-answer button {
    font-size: 21px;
    padding: 8px;
  }
}
.game-thumb {
  overflow: hidden;
}
.game-thumb .game-art {
  width: 190px;
  height: 190px;
  flex-shrink: 0;
}
@media (max-width: 750px) {
  .game-thumb .game-art {
    width: 155px;
    height: 155px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.game-card-description {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:6px 0 0;font-size:12px;line-height:1.4;color:#5b7068;min-height:2.8em;}
.literacy-cover{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;width:100%;height:100%;padding:12%;box-sizing:border-box;background:#e9f5ef;place-items:center}.literacy-cover span{display:grid;place-items:center;width:100%;height:100%;background:#fff;border:2px solid #507b70;border-radius:8px;color:#244e45;font-size:32px;font-weight:700}.literacy-cover span:nth-child(2){background:#fbe59d}.literacy-cover span:nth-child(3){background:#d3ebfa}.literacy-cover span:nth-child(4){background:#f8d6df}
.literacy-heading{text-align:center;margin:12px 0;font-size:28px}.literacy-hint,.literacy-message{text-align:center;min-height:1.5em;color:#59716b}.literacy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(100%,720px);margin:20px auto}.literacy-tile{min-height:76px;border:2px solid #bfd6ce;border-radius:8px;background:#fff;color:#173a36;font-size:24px;overflow-wrap:anywhere;cursor:pointer}.literacy-tile:hover,.literacy-piece:hover{background-color:#e4f4ee}.literacy-race{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:min(100%,720px);margin:16px auto}.literacy-race-cell{min-height:68px;padding:8px;background:#ecf6f1;border:1px solid #a7ccc0;overflow-wrap:anywhere}.literacy-race-cell:nth-child(4n+2){background:#fff1be}.literacy-race-cell:nth-child(4n+3){background:#e5f1fb}.literacy-race-cell small{display:block;color:#af493e;font-weight:bold}.literacy-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.literacy-actions button{padding:10px 18px}.literacy-puzzle{display:grid;grid-template-columns:repeat(2,1fr);width:min(68vw,360px);aspect-ratio:1;margin:16px auto;gap:4px}.literacy-piece{position:relative;overflow:hidden;border:2px solid #98b7ad;border-radius:4px;background:#fff;cursor:pointer}.literacy-piece.selected{outline:4px solid #e6a945;z-index:1}.literacy-piece-image{position:absolute;width:200%;height:200%;display:flex;align-items:center;justify-content:center;white-space:nowrap;font-size:clamp(42px,12vw,120px);color:#183c35;pointer-events:none}.literacy-message{margin:12px}.literacy-cover.result-art{width:150px;height:150px}
.literacy-grid .literacy-tile{font-size:40px;line-height:1.2;padding:8px;container-type:inline-size}
.literacy-grid .literacy-tile-length-2{font-size:30px}.literacy-grid .literacy-tile-length-3,.literacy-grid .literacy-tile-length-4{font-size:23px}
.literacy-grid .literacy-tile:nth-child(16n+1){background:#e1f2eb}.literacy-grid .literacy-tile:nth-child(16n+2){background:#e1eef9}.literacy-grid .literacy-tile:nth-child(16n+3){background:#fff0d2}.literacy-grid .literacy-tile:nth-child(16n+4){background:#f9e4eb}.literacy-grid .literacy-tile:nth-child(16n+5){background:#eae6f7}.literacy-grid .literacy-tile:nth-child(16n+6){background:#f8e4d9}.literacy-grid .literacy-tile:nth-child(16n+7){background:#e8f2d8}.literacy-grid .literacy-tile:nth-child(16n+8){background:#dceff0}.literacy-grid .literacy-tile:nth-child(16n+9){background:#f5e3f2}.literacy-grid .literacy-tile:nth-child(16n+10){background:#e5eaf9}.literacy-grid .literacy-tile:nth-child(16n+11){background:#f4edd4}.literacy-grid .literacy-tile:nth-child(16n+12){background:#dff1df}.literacy-grid .literacy-tile:nth-child(16n+13){background:#f9e2df}.literacy-grid .literacy-tile:nth-child(16n+14){background:#dcecf6}.literacy-grid .literacy-tile:nth-child(16n+15){background:#eee8dc}.literacy-grid .literacy-tile:nth-child(16n+16){background:#e8e0ed}
.literacy-grid .literacy-tile:hover{filter:brightness(.96)}.literacy-grid .literacy-tile:focus-visible{outline:3px solid #176f71;outline-offset:2px}
@media(max-width:500px){.literacy-grid .literacy-tile{font-size:32px;padding:4px}.literacy-grid .literacy-tile-length-2{font-size:24px}.literacy-grid .literacy-tile-length-3,.literacy-grid .literacy-tile-length-4{font-size:18px}}
.hunt-duel .literacy-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hunt-duel .literacy-heading{font-size:22px;overflow-wrap:anywhere}.hunt-duel .literacy-tile{min-height:64px}
.literacy-puzzle-solved{display:flex;align-items:center;justify-content:center;border:3px solid #7ebaa4;border-radius:8px;background:#f4fcf7;box-sizing:border-box}.literacy-solved-character{font-size:clamp(42px,12vw,120px);font-weight:700;color:#185a49;animation:literacy-sparkle .7s ease-out both}@keyframes literacy-sparkle{0%{transform:scale(.9);text-shadow:0 0 0 transparent}45%{transform:scale(1.08);color:#b7841c;text-shadow:0 0 18px #f4cf58,0 0 36px #fff1a6}100%{transform:scale(1);text-shadow:0 0 10px #f4df9a}}@media (prefers-reduced-motion:reduce){.literacy-solved-character{animation:none}}
.literacy-piece{background:#e8f3ef;border-color:#98b7ad}.literacy-piece:hover{background:#d9ece5}.literacy-piece.selected{background:#fff1cc}
.literacy-piece:nth-child(1){background:#e5f2ed}.literacy-piece:nth-child(2){background:#e4eff9}.literacy-piece:nth-child(3){background:#fff1d5}.literacy-piece:nth-child(4){background:#f9e8ed}.literacy-piece:hover{filter:brightness(.97)}.literacy-piece.selected{outline:4px solid #c28b24;outline-offset:-4px}
.literacy-puzzle-solved{background:#fbe5e5;border-color:#e4a5a5}.literacy-solved-character{color:#b77c00;animation-name:literacy-gold-sparkle}@keyframes literacy-gold-sparkle{0%{transform:scale(.9);text-shadow:0 0 0 transparent}45%{transform:scale(1.08);color:#d39a10;text-shadow:0 0 18px #f4cf58,0 0 36px #fff1a6}100%{transform:scale(1);text-shadow:0 0 10px #f4df9a}}
.literacy-puzzle-solved{position:relative}.literacy-firework{position:absolute;top:18%;right:17%;color:#db9415;font-size:32px;line-height:1;pointer-events:none;animation:literacy-firework 1.1s .35s ease-out both}@keyframes literacy-firework{0%{opacity:0;transform:scale(.1) rotate(-30deg);text-shadow:none}35%{opacity:1;transform:scale(1.25) rotate(10deg);text-shadow:-24px -12px #e67e77,22px -14px #edb92f,19px 18px #80aeb5,-20px 16px #e5a64e}100%{opacity:0;transform:scale(1.55) rotate(25deg);text-shadow:-34px -20px #e67e77,32px -22px #edb92f,29px 27px #80aeb5,-30px 24px #e5a64e}}@media (prefers-reduced-motion:reduce){.literacy-firework{animation:none;opacity:0}}
.literacy-solved-character{color:#efb800;-webkit-text-stroke:1px #986400;text-shadow:0 1px 0 #9a6600,0 0 12px #ffd754;animation-name:literacy-bright-gold}@keyframes literacy-bright-gold{0%{transform:scale(.92);color:#dba000;text-shadow:0 0 4px #ffd754}45%{transform:scale(1.08);color:#ffe15a;text-shadow:0 1px 0 #9a6600,0 0 16px #ffc72c,0 0 30px #fff3a2}100%{transform:scale(1);color:#efb800;text-shadow:0 1px 0 #9a6600,0 0 12px #ffd754}}
.puzzle-duel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;align-items:start}.puzzle-duel-player{min-width:0;text-align:center;padding:12px;border:1px solid #c6dcd4;border-radius:8px;background:#f8fcfa}.puzzle-duel-player.player-2{background:#f5f9fc;border-color:#c8d9e7}.puzzle-duel-title{font-size:22px;margin:4px 0}.puzzle-duel .literacy-puzzle{width:min(100%,280px)}.puzzle-duel .literacy-piece-image,.puzzle-duel .literacy-solved-character{font-size:72px}@media(max-width:600px){.puzzle-duel{gap:6px}.puzzle-duel-player{padding:5px}.puzzle-duel-title{font-size:17px}.puzzle-duel .literacy-piece-image,.puzzle-duel .literacy-solved-character{font-size:44px}.puzzle-duel .literacy-hint{overflow-wrap:anywhere;font-size:12px}.puzzle-duel .literacy-message{font-size:12px}}
.puzzle-duel-countdown{display:grid;place-items:center;min-height:320px;color:#206254;font-size:36px;font-weight:700}.puzzle-duel .literacy-puzzle{container-type:inline-size}.puzzle-duel .puzzle-word-length-1 .literacy-piece-image,.puzzle-duel .puzzle-word-length-1 .literacy-solved-character{font-size:65cqi}.puzzle-duel .puzzle-word-length-2 .literacy-piece-image,.puzzle-duel .puzzle-word-length-2 .literacy-solved-character{font-size:36cqi}.puzzle-duel .puzzle-word-length-3 .literacy-piece-image,.puzzle-duel .puzzle-word-length-3 .literacy-solved-character{font-size:24cqi}.puzzle-duel .puzzle-word-length-4 .literacy-piece-image,.puzzle-duel .puzzle-word-length-4 .literacy-solved-character{font-size:18cqi}
.literacy-puzzle{container-type:inline-size}.puzzle-word-length-1 .literacy-piece-image,.puzzle-word-length-1 .literacy-solved-character{font-size:65cqi}.puzzle-word-length-2 .literacy-piece-image,.puzzle-word-length-2 .literacy-solved-character{font-size:36cqi}.puzzle-word-length-3 .literacy-piece-image,.puzzle-word-length-3 .literacy-solved-character{font-size:24cqi}.puzzle-word-length-4 .literacy-piece-image,.puzzle-word-length-4 .literacy-solved-character{font-size:18cqi}
.literacy-puzzle.puzzle-pieces-6{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.literacy-piece:nth-child(5){background:#e9e9fa}.literacy-piece:nth-child(6){background:#f8ede3}
.literacy-illustration{display:block;flex-shrink:0;width:190px;height:190px;background-image:url('/classroom/assets/literacy-game-covers.png');background-repeat:no-repeat;background-size:300% 100%;background-position:0 50%}.literacy-illustration-race{background-position:50% 50%}.literacy-illustration-puzzle{background-position:100% 50%}.literacy-illustration.intro-art,.literacy-illustration.result-art{width:150px;height:150px}@media(max-width:750px){.literacy-illustration{width:155px;height:155px}}
.literacy-illustration{width:100%;height:100%;background-size:contain;background-position:center}.literacy-illustration-hunt{background-image:url('/classroom/assets/literacy-hunt.png')}.literacy-illustration-race{background-image:url('/classroom/assets/literacy-race.png')}.literacy-illustration-puzzle{background-image:url('/classroom/assets/literacy-puzzle.png')}.literacy-illustration.intro-art,.literacy-illustration.result-art{width:150px;height:150px}
.flight-layout{display:flex;justify-content:center;align-items:flex-start;gap:20px;width:100%;flex-wrap:wrap}.flight-board{position:relative;flex:1 1 480px;max-width:600px;min-width:280px;aspect-ratio:1;border:3px solid #526b62;background:#f9fbf7;box-sizing:border-box;container-type:inline-size}.flight-base{position:absolute;transform:translate(-50%,-50%);width:21%;height:21%;display:flex;align-items:flex-start;justify-content:center;padding-top:4px;box-sizing:border-box;border:2px solid #fff;border-radius:8px;font-size:12px;font-weight:700;color:#34433c}.flight-square{position:absolute;transform:translate(-50%,-50%);width:5.2%;height:5.2%;display:grid;place-items:center;box-sizing:border-box;border:1px solid #fff;color:#17372f;font-size:clamp(6px,1.8cqi,11px);line-height:1;overflow:hidden;word-break:break-all;text-align:center}.flight-board .yellow{background:#ffe288}.flight-board .blue{background:#aad8f3}.flight-board .red{background:#f5acac}.flight-board .green{background:#a8dcb5}.flight-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:12%;height:12%;display:grid;place-items:center;border-radius:50%;background:#fff;border:2px solid #a6bbb3;font-size:12px}.flight-plane{position:absolute;z-index:2;transform:translate(-50%,-50%);width:5%;height:5%;min-width:20px;min-height:20px;border:2px solid #31453f;border-radius:50%;font-size:11px;font-weight:700;color:#182923;cursor:pointer;box-sizing:border-box}.flight-plane.playable{outline:3px solid #efaa24;outline-offset:1px}.flight-plane.selected{outline:4px solid #fff;box-shadow:0 0 0 6px #bf7020;z-index:3}.flight-controls{flex:1 1 210px;max-width:270px;padding:8px}.flight-controls h2{font-size:22px;margin:0 0 12px}.flight-rule,.flight-status{font-size:14px;line-height:1.6;color:#51665d}.flight-controls button{margin:5px 6px 5px 0;padding:9px 14px}.flight-word{font-size:30px;font-weight:700;color:#173f36;margin:18px 0 4px;overflow-wrap:anywhere}@media(max-width:700px){.flight-board{flex-basis:100%;min-width:0}.flight-controls{max-width:none;flex-basis:100%}.flight-plane{min-width:16px;min-height:16px;font-size:9px}.flight-base{font-size:9px}}
.flight-plane{padding:0;line-height:1;display:grid;place-items:center;aspect-ratio:1}
.flight-dice-area{display:flex;align-items:center;gap:12px;margin:14px 0}.flight-die{width:64px;height:64px;padding:9px;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);place-items:center;border:2px solid #40544c;border-radius:10px;background:#fff;box-shadow:0 3px 0 #c4d1cb}.flight-pip{width:9px;height:9px;border-radius:50%;background:transparent}.flight-pip.visible{background:#263e38}.flight-dice-label{font-size:15px;font-weight:700;color:#526960}.flight-step{font-size:16px;font-weight:700;line-height:1.5;color:#1f6e61}
.tug-anime-cover{display:block;width:100%;height:100%;object-fit:contain}.tug-anime-cover.intro-art,.tug-anime-cover.result-art{width:190px;height:auto;max-width:100%}
.flight-board{flex-basis:650px;max-width:800px}.flight-square{font-weight:700}.flight-word-length-1{font-size:3cqi}.flight-word-length-2{font-size:2.1cqi}.flight-word-length-3,.flight-word-length-4{font-size:1.65cqi}.flight-dice-3d{width:104px;height:104px;display:grid;place-items:center;flex:none}.flight-dice-3d canvas{display:block;width:104px;height:104px}.flight-turn{display:inline-block;padding:8px 16px;border-radius:6px;border:2px solid transparent}.flight-controls .flight-turn{margin:0 0 12px;font-size:22px}.flight-turn-yellow{background:#fff0a9;border-color:#d8bb4d;color:#69500a}.flight-turn-blue{background:#d5edfc;border-color:#8bbad9;color:#164d70}.flight-turn-red{background:#f9d9d9;border-color:#de9999;color:#812f36}.flight-turn-green{background:#d9f0df;border-color:#8abd95;color:#255c33}@media(max-width:700px){.flight-board{flex-basis:100%}.flight-word-length-1{font-size:3.2cqi}.flight-word-length-2{font-size:2.2cqi}.flight-word-length-3,.flight-word-length-4{font-size:1.7cqi}}
body[data-game='literacy-race'] .play-view:fullscreen .game-stage{min-height:0;padding:8px 16px 16px}
body[data-game='literacy-race'] .play-view:fullscreen .game-arena{min-height:0;max-width:none;margin:0 auto}
body[data-game='literacy-race'] .play-view:fullscreen .game-prompt:empty,body[data-game='literacy-race'] .play-view:fullscreen .game-feedback:empty,body[data-game='literacy-race'] .play-view:fullscreen .game-controls:empty{display:none}
body[data-game='literacy-race'] .play-view:fullscreen .flight-layout{align-items:flex-start;padding:12px 0;box-sizing:border-box}
body[data-game='literacy-race'] .play-view:fullscreen .flight-board{flex:0 1 auto;width:min(100%,800px,calc(100dvh - 190px));min-width:0}
@media(max-width:700px){body[data-game='literacy-race'] .play-view:fullscreen .flight-board{flex-basis:auto;width:min(100%,calc(100dvh - 190px))}}
.flight-destination{position:absolute;z-index:2;transform:translate(-50%,-50%);width:7%;height:7%;display:grid;place-items:center;border:2px dashed #8f5c05;border-radius:50%;box-shadow:0 0 0 3px #fff9;box-sizing:border-box;color:#263d35;font-size:clamp(14px,4cqi,24px);line-height:1;pointer-events:none;animation:flight-destination-pulse 1.1s ease-in-out infinite alternate}@keyframes flight-destination-pulse{from{box-shadow:0 0 0 2px #fff9}to{box-shadow:0 0 0 5px #f3b63ea8}}@media(prefers-reduced-motion:reduce){.flight-destination{animation:none}}
.flight-base.inactive{opacity:.55}.flight-inactive-label{position:absolute;top:48%;font-size:12px;font-weight:400}.flight-square{z-index:1}.flight-center{width:5%;height:5%;z-index:0;border:2px solid #809a8f;border-radius:50%;background:#ecf4ef;color:#49675a;font-family:Arial,sans-serif;font-size:clamp(9px,2.2cqi,15px);font-weight:700;box-sizing:border-box}.flight-plane-icon{font-family:Arial,sans-serif;font-size:clamp(14px,3.3cqi,24px);line-height:1;transform:rotate(-35deg)}.flight-plane-number{position:absolute;right:-4px;bottom:-3px;display:grid;place-items:center;width:12px;height:12px;border-radius:50%;background:#fff;color:#23443a;border:1px solid #345a4d;font:700 9px/1 Arial,sans-serif}.flight-plane{z-index:3}.flight-plane.selected{z-index:4}.flight-destination{z-index:2}
.flight-controls{max-width:320px}.flight-tool-box{border:1px solid #b9d2c8;border-radius:7px;background:#f7fbf9;padding:12px;margin:12px 0;box-sizing:border-box}.flight-answer-box{border-color:#b6cadc;background:#f7fafc}.flight-box-title{margin:0;color:#405d53;font-size:15px;font-weight:700}.flight-dice-area{margin:2px 0}.flight-dice-box .flight-status:empty,.flight-answer-status:empty{display:none}.flight-answer-box .flight-word{margin:8px 0 0;font-size:34px}.flight-pinyin{margin:0 0 10px;color:#60756e;font-size:15px}.flight-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.flight-controls .flight-answer-option{width:100%;min-height:46px;margin:0;padding:8px;border:1px solid #a6bfb6;border-radius:5px;background:#fff;color:#253d36;overflow-wrap:anywhere;line-height:1.3}.flight-controls .flight-answer-option:hover{background:#e2f2ec;border-color:#4d8d7b}.flight-answer-status{color:#a43f41;font-size:14px;margin:8px 0}.flight-controls .flight-skip{margin:8px 7px 0 0;padding:6px 9px;font-size:13px}.flight-answer-box .flight-step{margin:8px 0 0}@media(max-width:700px){.flight-controls{max-width:none}.flight-tool-box{margin:10px 0}.flight-answers{grid-template-columns:repeat(2,minmax(0,1fr))}}
.flight-start-label{position:absolute;z-index:2;transform:translate(-50%,-50%);display:grid;place-items:center;width:3.1%;height:3.1%;border:1px solid #36554b;border-radius:50%;box-sizing:border-box;font-size:clamp(8px,1.8cqi,12px);font-weight:700;color:#243c34;pointer-events:none}.flight-controls .flight-answer-option.incorrect{border-color:#c75b62;background:#fce8e9;color:#99363d}
.flight-plane.on-route,.flight-destination{width:3.2%;height:3.2%;min-width:14px;min-height:14px}.flight-plane.on-route .flight-plane-icon{font-size:clamp(10px,2cqi,16px)}.flight-destination{font-size:clamp(10px,2cqi,16px);box-shadow:0 0 0 2px #fff9}
