.cg-container {
  max-width: 960px; margin: 0 auto; padding: 15px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.cg-header {
  text-align: center; margin-bottom: 20px;
}
.cg-header h2 { margin: 0 0 10px; font-size: 22px; color: #333; }
.cg-stats {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 15px; font-size: 14px;
}
.cg-stats span { background: #f5f5f5; padding: 6px 14px; border-radius: 4px; }
.cg-stats .cg-label { color: #999; margin-right: 4px; }
.cg-stats .cg-value { color: #c00; font-weight: bold; }
.cg-stats .cg-value.green { color: #090; }
.cg-stats .cg-value.blue { color: #06c; }

.cg-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.cg-tab {
  padding: 8px 20px; border: 2px solid #ddd; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 14px; color: #666;
  transition: all .2s;
}
.cg-tab:hover { border-color: #06c; color: #06c; }
.cg-tab.active { border-color: #06c; background: #06c; color: #fff; }

.cg-btn { 
  padding: 8px 24px; border: none; border-radius: 6px;
  background: #06c; color: #fff; font-size: 14px; cursor: pointer;
  transition: background .2s;
}
.cg-btn:hover { background: #048; }
.cg-btn:disabled { background: #ccc; cursor: not-allowed; }

.cg-learned {
  margin-top: 20px; padding: 15px; background: #f9f9f9; border-radius: 8px;
}
.cg-learned h4 { margin: 0 0 10px; font-size: 15px; color: #333; }
.cg-learned a {
  display: inline-block; margin: 3px; padding: 3px 8px;
  background: #e8f4e8; border-radius: 3px; color: #060; font-size: 13px;
  text-decoration: none;
}

/* Memory Card Game */
.cg-memory-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 480px; margin: 0 auto;
}
.cg-card {
  aspect-ratio: 3/4; perspective: 600px; cursor: pointer;
}
.cg-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .4s; transform-style: preserve-3d;
}
.cg-card.flipped .cg-card-inner { transform: rotateY(180deg); }
.cg-card.matched .cg-card-inner { transform: rotateY(180deg); }
.cg-card.matched { opacity: .7; cursor: default; }
.cg-card-front, .cg-card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; box-sizing: border-box; font-size: 14px; line-height: 1.3;
  word-break: break-all;
}
.cg-card-front {
  background: linear-gradient(135deg, #06c, #09c);
  color: #fff; font-size: 24px; font-weight: bold;
}
.cg-card-back {
  background: #fff; border: 2px solid #06c; color: #333;
  transform: rotateY(180deg);
}
.cg-card-back.idiom { font-size: 22px; font-weight: bold; color: #a00; }
.cg-card-back.explain { font-size: 12px; color: #555; text-align: left; }
.cg-card-back.pinyin { font-size: 15px; color: #06c; }

/* Match Game */
.cg-match-area {
  display: grid; grid-template-columns: 1fr 40px 1fr; gap: 10px;
  max-width: 700px; margin: 0 auto;
}
.cg-match-col { display: flex; flex-direction: column; gap: 8px; }
.cg-match-item {
  padding: 10px 12px; border: 2px solid #ddd; border-radius: 6px;
  cursor: pointer; font-size: 14px; transition: all .2s;
  background: #fff; text-align: center;
}
.cg-match-item:hover { border-color: #06c; background: #f0f6ff; }
.cg-match-item.selected { border-color: #06c; background: #d0e4ff; }
.cg-match-item.correct {
  border-color: #090; background: #e8f4e8; cursor: default;
  opacity: .7;
}
.cg-match-item.wrong {
  border-color: #c00; background: #fde8e8; animation: cg-shake .3s;
}
.cg-match-item .idiom-text { font-size: 18px; font-weight: bold; color: #a00; }
.cg-match-item .match-sub { font-size: 12px; color: #999; margin-top: 3px; }
.cg-match-center {
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #ddd;
}

/* Relate Game - reuses match styles */
.cg-relate-area {
  display: grid; grid-template-columns: 1fr 40px 1fr; gap: 10px;
  max-width: 700px; margin: 0 auto;
}

/* Level selector */
.cg-level-selector {
  text-align: center; margin-bottom: 15px;
}
.cg-level-selector select {
  padding: 6px 12px; border: 2px solid #ddd; border-radius: 6px;
  font-size: 14px; cursor: pointer;
}

@keyframes cg-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Completion overlay */
.cg-complete {
  text-align: center; padding: 40px 20px;
}
.cg-complete h3 { font-size: 22px; color: #090; margin: 0 0 10px; }
.cg-complete p { color: #666; margin: 0 0 20px; }

/* Share area */
.cg-share-area {
  margin-top: 20px; padding: 15px; background: #f9f9f9; border-radius: 8px;
}
.cg-share-area h4 { margin: 0 0 10px; font-size: 15px; color: #333; }
.cg-share-row {
  display: flex; gap: 8px;
}
.cg-share-row input {
  flex: 1; padding: 8px 12px; border: 2px solid #ddd; border-radius: 6px;
  font-size: 13px; color: #333; background: #fff; cursor: text;
}
.cg-btn-small {
  padding: 8px 14px; font-size: 13px; white-space: nowrap;
}
.cg-btn-small:hover { background: #048; }

/* Game summary table */
.cg-summary { margin-top: 20px; text-align: left; }
.cg-summary h4 { margin: 0 0 10px; font-size: 15px; color: #333; }
.cg-summary-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.cg-summary-table td {
  padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: top;
}
.cg-summary-idiom {
  width: 30%; font-weight: bold; color: #a00; white-space: nowrap;
}
.cg-summary-explain {
  color: #555; line-height: 1.5;
}

/* Fill Game */
.cg-fill-area {
  max-width: 500px; margin: 0 auto;
}
.cg-fill-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin-bottom: 15px;
}
.cg-fill-progress {
  font-size: 13px; color: #999; margin-bottom: 20px;
}
.cg-fill-title {
  font-size: 32px; font-weight: bold; color: #333;
  letter-spacing: 6px; margin-bottom: 20px; display: flex;
  justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap;
}
.cg-fill-char { color: #333; display: inline-block; }
.cg-fill-blank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 44px; border: 2px dashed #06c; border-radius: 6px;
  background: #f0f6ff; font-size: 20px; color: #06c;
  transition: all .2s; vertical-align: middle;
}
.cg-fill-blank-input {
  width: 36px; height: 38px; border: none; outline: none;
  text-align: center; font-size: 20px; background: transparent;
  color: #333;
}
.cg-fill-blank.correct {
  border-color: #090; background: #e8f4e8; color: #090;
}
.cg-fill-blank.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-fill-choices {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 15px;
}
.cg-fill-choice-btn {
  width: 44px; height: 44px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 20px; color: #333;
  transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.cg-fill-choice-btn:hover { border-color: #06c; background: #f0f6ff; }
.cg-fill-choice-btn.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-fill-choice-btn.wrong {
  border-color: #c00; background: #fde8e8; color: #c00; cursor: default;
}
.cg-fill-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-fill-explain.show { display: block; }

/* Wrongchar Game */
.cg-wc-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-wc-display {
  font-size: 36px; font-weight: bold; color: #333;
  letter-spacing: 8px; margin-bottom: 10px;
}
.cg-wc-display .cg-wc-bad-char { color: #c00; text-decoration: underline; text-decoration-style: wavy; }
.cg-wc-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-wc-choices {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cg-wc-choice {
  width: 56px; height: 56px; border: 2px solid #ddd; border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 26px; color: #333;
  transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.cg-wc-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-wc-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
  animation: cg-pop .3s;
}
.cg-wc-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-wc-choice:disabled { opacity: .5; cursor: default; }
.cg-wc-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-wc-explain.show { display: block; }
.cg-wc-explain.correct { color: #090; border-left: 3px solid #090; }
@keyframes cg-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Scramble Game */
.cg-scramble-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-scramble-hint { font-size: 14px; color: #999; margin-bottom: 15px; }
.cg-scramble-compose {
  min-height: 52px; padding: 10px; margin-bottom: 15px;
  border: 2px dashed #06c; border-radius: 8px; background: #f0f6ff;
  display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap;
}
.cg-scramble-slot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: #fff; border: 2px solid #06c;
  border-radius: 6px; font-size: 22px; color: #06c; cursor: pointer;
  transition: all .15s;
}
.cg-scramble-slot:hover { background: #d0e4ff; }
.cg-scramble-tiles {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.cg-scramble-tile {
  width: 50px; height: 50px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 24px; color: #333;
  transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.cg-scramble-tile:hover { border-color: #f90; background: #fff8f0; }
.cg-scramble-tile.used { opacity: .3; border-color: #ccc; cursor: default; }
.cg-scramble-tile:disabled { opacity: .3; cursor: default; }
.cg-scramble-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-scramble-explain.show { display: block; }
.cg-scramble-explain.correct { color: #090; border-left: 3px solid #090; }
.cg-scramble-explain.wrong { color: #c00; border-left: 3px solid #c00; }

/* Pinyin Game */
.cg-pinyin-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-pinyin-display {
  font-size: 28px; font-weight: bold; color: #06c;
  margin-bottom: 10px; letter-spacing: 2px;
}
.cg-pinyin-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-pinyin-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-pinyin-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-pinyin-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-pinyin-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-pinyin-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-pinyin-choice:disabled { opacity: .5; cursor: default; }
.cg-pinyin-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-pinyin-explain.show { display: block; }
.cg-pinyin-explain.correct { color: #090; border-left: 3px solid #090; }

/* Source Game */
.cg-source-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-source-display {
  font-size: 15px; color: #555; line-height: 1.7;
  margin-bottom: 10px; padding: 15px; background: #f5f0e8;
  border-radius: 8px; border-left: 4px solid #a67c52;
  text-align: left; font-style: italic;
}
.cg-source-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-source-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-source-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-source-choice:hover { border-color: #a67c52; background: #faf5ee; }
.cg-source-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-source-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-source-choice:disabled { opacity: .5; cursor: default; }
.cg-source-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-source-explain.show { display: block; }
.cg-source-explain.correct { color: #090; border-left: 3px solid #090; }

/* Homophone Game */
.cg-hp-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-hp-display {
  font-size: 36px; font-weight: bold; color: #333;
  letter-spacing: 8px; margin-bottom: 10px;
}
.cg-hp-bad-char { color: #c00; text-decoration: underline; text-decoration-style: wavy; }
.cg-hp-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-hp-choices {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cg-hp-choice {
  width: 56px; height: 56px; border: 2px solid #ddd; border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 26px; color: #333;
  transition: all .15s;
}
.cg-hp-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-hp-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090;
  animation: cg-pop .3s;
}
.cg-hp-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-hp-choice:disabled { opacity: .5; cursor: default; }
.cg-hp-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-hp-explain.show { display: block; }
.cg-hp-explain.correct { color: #090; border-left: 3px solid #090; }

/* Firstchar Game */
.cg-fc-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-fc-display {
  font-size: 64px; font-weight: bold; color: #a00;
  margin-bottom: 10px;
}
.cg-fc-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-fc-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-fc-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-fc-choice:hover { border-color: #a00; background: #fff5f5; }
.cg-fc-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-fc-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-fc-choice:disabled { opacity: .5; cursor: default; }
.cg-fc-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-fc-explain.show { display: block; }
.cg-fc-explain.correct { color: #090; border-left: 3px solid #090; }

/* Missingchar Game */
.cg-mc-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-mc-display {
  font-size: 36px; font-weight: bold; color: #333;
  letter-spacing: 8px; margin-bottom: 10px;
}
.cg-mc-blank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 48px; border: 2px dashed #06c; border-radius: 6px;
  background: #f0f6ff; color: #06c; font-size: 24px; vertical-align: middle;
}
.cg-mc-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-mc-choices {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cg-mc-choice {
  width: 56px; height: 56px; border: 2px solid #ddd; border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 26px; color: #333;
  transition: all .15s;
}
.cg-mc-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-mc-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090;
  animation: cg-pop .3s;
}
.cg-mc-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-mc-choice:disabled { opacity: .5; cursor: default; }
.cg-mc-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-mc-explain.show { display: block; }
.cg-mc-explain.correct { color: #090; border-left: 3px solid #090; }

/* Antonym Game */
.cg-at-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-at-title {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 4px; margin-bottom: 5px;
}
.cg-at-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-at-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-at-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-at-choice:hover { border-color: #a00; background: #fff5f5; }
.cg-at-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-at-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-at-choice:disabled { opacity: .5; cursor: default; }
.cg-at-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-at-explain.show { display: block; }
.cg-at-explain.correct { color: #090; border-left: 3px solid #090; }

/* Chain Game - reuses match styles */
.cg-chain-area {
  display: grid; grid-template-columns: 1fr 40px 1fr; gap: 10px;
  max-width: 700px; margin: 0 auto;
}
.cg-chain-item .chain-tail { font-size: 22px; font-weight: bold; color: #a00; }
.cg-chain-item .chain-source { font-size: 11px; color: #999; margin-top: 2px; }
.cg-chain-item .chain-first { color: #c00; font-weight: bold; }

/* Rank Game (段位挑战) */
.cg-rk-header { text-align: center; padding: 20px; margin-bottom: 15px; }
.cg-rk-tier {
  display: inline-block; font-size: 28px; font-weight: bold; color: #fff;
  background: linear-gradient(135deg, #f90, #f60); border-radius: 50%;
  width: 100px; height: 100px; line-height: 100px; text-align: center;
  margin-bottom: 10px; box-shadow: 0 4px 15px rgba(255,102,0,.3);
}
.cg-rk-level-text { font-size: 16px; color: #999; margin-bottom: 5px; }
.cg-rk-desc { font-size: 14px; color: #666; }
.cg-rk-status {
  display: flex; justify-content: center; gap: 15px; align-items: center;
  margin-bottom: 15px; font-size: 14px;
}
.cg-rk-tier-small {
  display: inline-block; padding: 3px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #f90, #f60); color: #fff; font-size: 13px; font-weight: bold;
}
.cg-rk-q-count { color: #999; }
.cg-rk-correct-count { color: #090; font-weight: bold; }
.cg-rk-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px; max-width: 500px;
}
.cg-rk-clue-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.cg-rk-clue {
  font-size: 20px; color: #06c; font-weight: bold; margin-bottom: 20px;
  padding: 12px; background: #f0f6ff; border-radius: 8px; line-height: 1.5;
}
.cg-rk-choices { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cg-rk-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-rk-choice:hover { border-color: #f90; background: #fff8f0; }
.cg-rk-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
  animation: cg-pop .3s;
}
.cg-rk-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-rk-choice:disabled { opacity: .5; cursor: default; }
.cg-rk-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px; display: none;
}
.cg-rk-explain.show { display: block; }
.cg-rk-result { text-align: center; padding: 40px 20px; }
.cg-rk-result-icon {
  font-size: 64px; margin-bottom: 10px;
}
.cg-rk-result-icon.pass { color: #090; }
.cg-rk-result-icon.fail { color: #c00; }
.cg-rk-result-text { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 8px; }
.cg-rk-result-sub { font-size: 14px; color: #999; }
.cg-rk-complete { text-align: center; padding: 40px 20px; }
.cg-rk-complete-icon { font-size: 72px; margin-bottom: 10px; }
.cg-rk-complete-title { font-size: 28px; font-weight: bold; color: #f60; margin-bottom: 8px; }
.cg-rk-complete-sub { font-size: 16px; color: #666; }

/* Sentence Game (造句挑战) */
.cg-st-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px; max-width: 500px;
}
.cg-st-hint { font-size: 14px; color: #999; margin-bottom: 15px; }
.cg-st-compose {
  min-height: 52px; padding: 10px; margin-bottom: 15px;
  border: 2px dashed #06c; border-radius: 8px; background: #f0f6ff;
  display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap;
  transition: all .2s;
}
.cg-st-compose.cg-st-shake { animation: cg-shake .3s; border-color: #c00; background: #fde8e8; }
.cg-st-slot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: #fff; border: 2px solid #06c;
  border-radius: 6px; font-size: 22px; color: #06c; cursor: pointer;
  transition: all .15s;
}
.cg-st-slot:hover { background: #d0e4ff; }
.cg-st-tiles {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 15px;
}
.cg-st-tile {
  width: 50px; height: 50px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 24px; color: #333;
  transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.cg-st-tile:hover { border-color: #06c; background: #f0f6ff; }
.cg-st-tile.used { opacity: .3; border-color: #ccc; cursor: default; }
.cg-st-tile:disabled { opacity: .3; cursor: default; }
.cg-st-submit-row { margin-top: 15px; }
.cg-btn-reset {
  background: #999; color: #fff; border: none;
}
.cg-btn-reset:hover { background: #777; }
.cg-st-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px; display: none;
}
.cg-st-explain.show { display: block; }
.cg-st-explain.correct { color: #090; border-left: 3px solid #090; }
.cg-st-explain.wrong { color: #c00; border-left: 3px solid #c00; }

/* Versus Game (双人对战) */
.cg-vs-player-bar {
  display: flex; justify-content: center; align-items: center; gap: 15px;
  margin-bottom: 10px;
}
.cg-vs-player {
  text-align: center; padding: 10px 20px; border-radius: 10px;
  background: #f5f5f5; border: 2px solid transparent; transition: all .2s;
  min-width: 100px;
}
.cg-vs-player.active { border-color: #f60; background: #fff8f0; }
.cg-vs-player-name { display: block; font-size: 13px; color: #999; margin-bottom: 4px; }
.cg-vs-player-score { display: block; font-size: 18px; font-weight: bold; color: #333; }
.cg-vs-player.active .cg-vs-player-score { color: #f60; }
.cg-vs-divider {
  font-size: 20px; font-weight: bold; color: #c00;
}
.cg-vs-turn {
  text-align: center; font-size: 14px; color: #06c; font-weight: bold;
  margin-bottom: 15px; padding: 6px; background: #f0f6ff; border-radius: 6px;
}
.cg-vs-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px; max-width: 500px;
}
.cg-vs-clue-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.cg-vs-clue {
  font-size: 20px; color: #06c; font-weight: bold; margin-bottom: 20px;
  padding: 12px; background: #f0f6ff; border-radius: 8px; line-height: 1.5;
}
.cg-vs-choices { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cg-vs-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-vs-choice:hover { border-color: #f60; background: #fff8f0; }
.cg-vs-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
  animation: cg-pop .3s;
}
.cg-vs-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-vs-choice:disabled { opacity: .5; cursor: default; }
.cg-vs-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px; display: none;
}
.cg-vs-explain.show { display: block; }
.cg-vs-result { text-align: center; padding: 40px 20px; }
.cg-vs-result-title { font-size: 28px; font-weight: bold; color: #333; margin-bottom: 20px; }
.cg-vs-result-scores { display: flex; justify-content: center; gap: 30px; font-size: 18px; }
.cg-vs-result-p1 { color: #06c; }
.cg-vs-result-p2 { color: #f60; }

/* Supermemory Game */
.cg-sm-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 560px; margin: 0 auto;
}
.cg-sm-card {
  aspect-ratio: 3/4; perspective: 600px; cursor: pointer;
}
.cg-sm-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .4s; transform-style: preserve-3d;
}
.cg-sm-card.flipped .cg-sm-card-inner { transform: rotateY(180deg); }
.cg-sm-card.matched .cg-sm-card-inner { transform: rotateY(180deg); }
.cg-sm-card.matched { opacity: .7; cursor: default; }
.cg-sm-card-front, .cg-sm-card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; box-sizing: border-box; font-size: 13px; line-height: 1.3;
  word-break: break-all; text-align: center;
}
.cg-sm-card-front {
  background: linear-gradient(135deg, #06c, #09c);
  color: #fff; font-size: 28px; font-weight: bold;
}
.cg-sm-card-back {
  background: #fff; border: 2px solid #06c; color: #333;
  transform: rotateY(180deg);
}
.cg-sm-card-back.title { font-size: 18px; font-weight: bold; color: #a00; }
.cg-sm-card-back.pinyin { font-size: 14px; color: #06c; }
.cg-sm-card-back.explain { font-size: 11px; color: #555; text-align: left; }
.cg-sm-card-back.source { font-size: 11px; color: #a67c52; font-style: italic; }

/* Speedmem Game */
.cg-sk-memorize { max-width: 500px; margin: 0 auto; text-align: center; }
.cg-sk-countdown {
  width: 60px; height: 60px; border-radius: 50%; background: #06c;
  color: #fff; font-size: 28px; font-weight: bold; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 15px;
}
.cg-sk-hint { font-size: 14px; color: #999; margin-bottom: 15px; }
.cg-sk-list { display: flex; flex-direction: column; gap: 10px; }
.cg-sk-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #fff; border: 2px solid #e0e0e0;
  border-radius: 8px;
}
.cg-sk-item-title { font-size: 20px; font-weight: bold; color: #a00; }
.cg-sk-item-explain { font-size: 13px; color: #666; text-align: right; max-width: 60%; }
.cg-sk-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto; max-width: 500px;
}
.cg-sk-question { font-size: 16px; color: #333; margin-bottom: 20px; }
.cg-sk-choices { display: flex; flex-direction: column; gap: 8px; }
.cg-sk-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s;
}
.cg-sk-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-sk-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-sk-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-sk-choice:disabled { opacity: .5; cursor: default; }

/* Linkgame Game */
.cg-lk-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 560px; margin: 0 auto;
}
.cg-lk-card {
  aspect-ratio: 1; border: 2px solid #ddd; border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 18px; font-weight: bold;
  color: #a00; display: flex; align-items: center; justify-content: center;
  padding: 8px; text-align: center; transition: all .2s;
  word-break: break-all; line-height: 1.3;
}
.cg-lk-card:hover { border-color: #06c; background: #f0f6ff; }
.cg-lk-card.selected { border-color: #f90; background: #fff8f0; box-shadow: 0 0 0 3px rgba(255,153,0,.3); }
.cg-lk-card.matched {
  border-color: #090; background: #e8f4e8; opacity: .5;
  cursor: default; animation: cg-pop .3s;
}
.cg-lk-card.wrong {
  border-color: #c00; background: #fde8e8;
  animation: cg-shake .3s;
}

/* Category Game */
.cg-cg-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-cg-display {
  font-size: 36px; font-weight: bold; color: #333;
  letter-spacing: 8px; margin-bottom: 10px;
}
.cg-cg-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-cg-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-cg-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 16px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-cg-choice:hover { border-color: #f90; background: #fff8f0; }
.cg-cg-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-cg-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-cg-choice:disabled { opacity: .5; cursor: default; }
.cg-cg-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-cg-explain.show { display: block; }
.cg-cg-explain.correct { color: #090; border-left: 3px solid #090; }

/* Feihua Game */
.cg-fh-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-fh-target {
  font-size: 64px; font-weight: bold; color: #a00;
  margin-bottom: 5px;
}
.cg-fh-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-fh-list {
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
}
.cg-fh-item {
  padding: 8px 12px; border: 2px solid #ddd; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 16px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-fh-item:hover { border-color: #a00; background: #fff5f5; }
.cg-fh-item.selected { border-color: #a00; background: #ffe0e0; color: #a00; }
.cg-fh-item.correct { border-color: #090; background: #e8f4e8; color: #090; cursor: default; }
.cg-fh-item.wrong { border-color: #c00; background: #fde8e8; color: #c00; cursor: default; }
.cg-fh-item.missed { border-color: #999; background: #f0f0f0; color: #999; cursor: default; opacity: .6; }
.cg-fh-item:disabled { cursor: default; opacity: .6; }
.cg-fh-submit { margin-top: 20px; }
.cg-fh-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-fh-explain.show { display: block; }

/* Crossword Game */
.cg-cw-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 400px;
}
.cg-cw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  max-width: 240px; margin: 0 auto;
}
.cg-cw-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 2px solid #ddd; border-radius: 8px;
  font-size: 28px; font-weight: bold; color: #333;
  background: #fff;
}
.cg-cw-blank {
  border: 2px dashed #06c; background: #f0f6ff; color: #06c;
}
.cg-cw-hint { font-size: 14px; color: #999; margin: 15px 0 20px; }
.cg-cw-choices {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cg-cw-choice {
  width: 56px; height: 56px; border: 2px solid #ddd; border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 26px; color: #333;
  transition: all .15s;
}
.cg-cw-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-cw-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090;
  animation: cg-pop .3s;
}
.cg-cw-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-cw-choice:disabled { opacity: .5; cursor: default; }
.cg-cw-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-cw-explain.show { display: block; }
.cg-cw-explain.correct { color: #090; border-left: 3px solid #090; }


/* 近义词配对 Game */
.cg-th-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-th-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-th-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-th-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-th-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-th-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-th-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-th-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-th-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-th-choice:disabled { opacity: .5; cursor: default; }
.cg-th-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-th-explain.show { display: block; }
.cg-th-explain.correct { color: #090; border-left: 3px solid #090; }
/* 故事配对 Game */
.cg-sp-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-sp-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-sp-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-sp-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-sp-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-sp-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-sp-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-sp-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-sp-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-sp-choice:disabled { opacity: .5; cursor: default; }
.cg-sp-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-sp-explain.show { display: block; }
.cg-sp-explain.correct { color: #090; border-left: 3px solid #090; }
/* 谜语猜成语 Game */
.cg-rd-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-rd-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-rd-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-rd-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-rd-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-rd-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-rd-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-rd-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-rd-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-rd-choice:disabled { opacity: .5; cursor: default; }
.cg-rd-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-rd-explain.show { display: block; }
.cg-rd-explain.correct { color: #090; border-left: 3px solid #090; }
/* 英文猜成语 Game */
.cg-en-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-en-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-en-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-en-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-en-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-en-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-en-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-en-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-en-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-en-choice:disabled { opacity: .5; cursor: default; }
.cg-en-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-en-explain.show { display: block; }
.cg-en-explain.correct { color: #090; border-left: 3px solid #090; }
/* 例句匹配 Game */
.cg-ex-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-ex-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-ex-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-ex-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-ex-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-ex-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-ex-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-ex-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-ex-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-ex-choice:disabled { opacity: .5; cursor: default; }
.cg-ex-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-ex-explain.show { display: block; }
.cg-ex-explain.correct { color: #090; border-left: 3px solid #090; }
/* 用法选择 Game */
.cg-us-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-us-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-us-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-us-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-us-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-us-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-us-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-us-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-us-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-us-choice:disabled { opacity: .5; cursor: default; }
.cg-us-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-us-explain.show { display: block; }
.cg-us-explain.correct { color: #090; border-left: 3px solid #090; }
/* 释义选择 Game */
.cg-ep-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-ep-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-ep-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-ep-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-ep-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-ep-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-ep-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-ep-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-ep-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-ep-choice:disabled { opacity: .5; cursor: default; }
.cg-ep-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-ep-explain.show { display: block; }
.cg-ep-explain.correct { color: #090; border-left: 3px solid #090; }
/* 接龙续写 Game */
.cg-cn-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-cn-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-cn-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-cn-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-cn-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-cn-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-cn-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-cn-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-cn-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-cn-choice:disabled { opacity: .5; cursor: default; }
.cg-cn-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-cn-explain.show { display: block; }
.cg-cn-explain.correct { color: #090; border-left: 3px solid #090; }
/* 首尾配对 Game */
.cg-fl-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-fl-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-fl-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-fl-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-fl-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-fl-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-fl-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-fl-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-fl-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-fl-choice:disabled { opacity: .5; cursor: default; }
.cg-fl-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-fl-explain.show { display: block; }
.cg-fl-explain.correct { color: #090; border-left: 3px solid #090; }
/* 情景选择 Game */
.cg-sc-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-sc-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-sc-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-sc-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-sc-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-sc-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-sc-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-sc-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-sc-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-sc-choice:disabled { opacity: .5; cursor: default; }
.cg-sc-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-sc-explain.show { display: block; }
.cg-sc-explain.correct { color: #090; border-left: 3px solid #090; }
/* 判断正误 Game */
.cg-cr-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-cr-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-cr-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-cr-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-cr-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-cr-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-cr-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-cr-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-cr-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-cr-choice:disabled { opacity: .5; cursor: default; }
.cg-cr-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-cr-explain.show { display: block; }
.cg-cr-explain.correct { color: #090; border-left: 3px solid #090; }
/* 拼音填空 Game */
.cg-pf-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-pf-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-pf-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-pf-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-pf-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-pf-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-pf-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-pf-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-pf-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-pf-choice:disabled { opacity: .5; cursor: default; }
.cg-pf-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-pf-explain.show { display: block; }
.cg-pf-explain.correct { color: #090; border-left: 3px solid #090; }
/* 感情色彩 Game */
.cg-em-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-em-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-em-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-em-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-em-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-em-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-em-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-em-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-em-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-em-choice:disabled { opacity: .5; cursor: default; }
.cg-em-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-em-explain.show { display: block; }
.cg-em-explain.correct { color: #090; border-left: 3px solid #090; }
/* 结构分类 Game */
.cg-sg-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-sg-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-sg-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-sg-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-sg-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-sg-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-sg-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-sg-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-sg-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-sg-choice:disabled { opacity: .5; cursor: default; }
.cg-sg-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-sg-explain.show { display: block; }
.cg-sg-explain.correct { color: #090; border-left: 3px solid #090; }
/* 常用度判断 Game */
.cg-cm-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-cm-display {
  font-size: 18px; color: #333; line-height: 1.6;
  margin-bottom: 10px; padding: 12px; background: #f9f9f9;
  border-radius: 8px; text-align: left;
}
.cg-cm-idiom {
  font-size: 32px; font-weight: bold; color: #a00;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-cm-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-cm-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-cm-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-cm-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-cm-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-cm-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-cm-choice:disabled { opacity: .5; cursor: default; }
.cg-cm-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-cm-explain.show { display: block; }
.cg-cm-explain.correct { color: #090; border-left: 3px solid #090; }
/* Firstlast Game (custom layout) */
.cg-fl-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-fl-display {
  font-size: 36px; font-weight: bold; color: #333;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-fl-first { color: #a00; }
.cg-fl-last { color: #06c; }
.cg-fl-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-fl-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-fl-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-fl-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-fl-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-fl-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-fl-choice:disabled { opacity: .5; cursor: default; }
.cg-fl-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-fl-explain.show { display: block; }
.cg-fl-explain.correct { color: #090; border-left: 3px solid #090; }

/* Continuations Game (custom layout) */
.cg-cn-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-cn-prefix {
  font-size: 36px; font-weight: bold; color: #333;
  letter-spacing: 6px; margin-bottom: 10px;
}
.cg-cn-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-cn-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-cn-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-cn-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-cn-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-cn-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-cn-choice:disabled { opacity: .5; cursor: default; }
.cg-cn-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-cn-explain.show { display: block; }
.cg-cn-explain.correct { color: #090; border-left: 3px solid #090; }

/* Scenario Game */
.cg-sc-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-sc-display {
  font-size: 16px; color: #333; line-height: 1.7;
  margin-bottom: 10px; padding: 15px; background: #f0f6ff;
  border-radius: 8px; border-left: 4px solid #06c;
  text-align: left;
}
.cg-sc-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-sc-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-sc-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-sc-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-sc-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-sc-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-sc-choice:disabled { opacity: .5; cursor: default; }
.cg-sc-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-sc-explain.show { display: block; }
.cg-sc-explain.correct { color: #090; border-left: 3px solid #090; }

/* Correctly Game */
.cg-cr-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-cr-display {
  font-size: 16px; color: #333; line-height: 1.7;
  margin-bottom: 10px; padding: 15px; background: #fff8f0;
  border-radius: 8px; border-left: 4px solid #f90;
  text-align: left;
}
.cg-cr-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-cr-choices {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.cg-cr-choice {
  padding: 14px 40px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 20px; color: #333;
  transition: all .15s; text-align: center; min-width: 120px;
}
.cg-cr-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-cr-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-cr-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-cr-choice:disabled { opacity: .5; cursor: default; }
.cg-cr-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-cr-explain.show { display: block; }
.cg-cr-explain.correct { color: #090; border-left: 3px solid #090; }

/* Daily Wordle Game */
.cg-dw-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 20px; text-align: center; margin: 0 auto 15px;
  max-width: 400px;
}
.cg-dw-hint { font-size: 14px; color: #999; margin-bottom: 15px; }
.cg-dw-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  max-width: 240px; margin: 0 auto 20px;
}
.cg-dw-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 2px solid #ddd; border-radius: 6px; font-size: 24px; font-weight: bold;
  color: #333; background: #fff; transition: all .3s;
}
.cg-dw-cell.correct { background: #6aaa64; color: #fff; border-color: #6aaa64; }
.cg-dw-cell.present { background: #c9b458; color: #fff; border-color: #c9b458; }
.cg-dw-cell.absent { background: #787c7e; color: #fff; border-color: #787c7e; }
.cg-dw-cell.empty { border-color: #ddd; background: #fff; }
.cg-dw-input-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.cg-dw-input {
  width: 44px; height: 44px; border: 2px solid #ddd; border-radius: 6px;
  text-align: center; font-size: 22px; outline: none;
  transition: border-color .2s;
}
.cg-dw-input:focus { border-color: #06c; }
.cg-dw-btn-row { display: flex; justify-content: center; gap: 10px; }
.cg-dw-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
}
.cg-dw-explain.show { display: block; }

/* Timed Quiz Game */
.cg-tq-header {
  text-align: center; margin-bottom: 15px;
}
.cg-tq-timer {
  font-size: 36px; font-weight: bold; color: #c00;
  margin-bottom: 5px;
}
.cg-tq-timer.warning { color: #f60; animation: cg-pulse .5s infinite; }
.cg-tq-count { font-size: 14px; color: #999; }
.cg-tq-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-tq-clue {
  font-size: 18px; color: #333; margin-bottom: 20px;
  padding: 12px; background: #f9f9f9; border-radius: 8px;
  line-height: 1.5; text-align: left;
}
.cg-tq-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-tq-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-tq-choice:hover { border-color: #06c; background: #f0f6ff; }
.cg-tq-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-tq-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-tq-choice:disabled { opacity: .5; cursor: default; }

/* Arena Game */
.cg-ar-header {
  display: flex; justify-content: center; align-items: center; gap: 20px;
  margin-bottom: 15px;
}
.cg-ar-player {
  text-align: center; padding: 8px 16px; border-radius: 8px;
  background: #f5f5f5; min-width: 80px;
}
.cg-ar-player.active { background: #fff8f0; border: 2px solid #f60; }
.cg-ar-player-name { display: block; font-size: 12px; color: #999; }
.cg-ar-player-score { display: block; font-size: 20px; font-weight: bold; color: #333; }
.cg-ar-vs { font-size: 18px; font-weight: bold; color: #c00; }
.cg-ar-turn {
  text-align: center; font-size: 14px; color: #06c; font-weight: bold;
  margin-bottom: 15px; padding: 6px; background: #f0f6ff; border-radius: 6px;
}
.cg-ar-card {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 30px 20px; text-align: center; margin: 0 auto 15px;
  max-width: 500px;
}
.cg-ar-clue {
  font-size: 48px; font-weight: bold; color: #a00;
  margin-bottom: 10px;
}
.cg-ar-hint { font-size: 14px; color: #999; margin-bottom: 20px; }
.cg-ar-choices {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.cg-ar-choice {
  padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 18px; color: #333;
  transition: all .15s; text-align: center;
}
.cg-ar-choice:hover { border-color: #f60; background: #fff8f0; }
.cg-ar-choice.correct {
  border-color: #090; background: #e8f4e8; color: #090; cursor: default;
}
.cg-ar-choice.wrong {
  border-color: #c00; background: #fde8e8; color: #c00;
  animation: cg-shake .3s;
}
.cg-ar-choice:disabled { opacity: .5; cursor: default; }
.cg-ar-explain {
  font-size: 14px; color: #888; margin-top: 15px;
  padding: 10px; background: #f9f9f9; border-radius: 6px;
  display: none;
}
.cg-ar-explain.show { display: block; }

@keyframes cg-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Mobile responsive */
@media (max-width: 600px) {
  .cg-memory-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 100%; }
  .cg-card-back { font-size: 12px; }
  .cg-card-back.idiom { font-size: 16px; }
  .cg-match-area { grid-template-columns: 1fr; }
  .cg-match-center { display: none; }
  .cg-stats { gap: 8px; font-size: 12px; }
  .cg-fill-title { font-size: 24px; letter-spacing: 4px; }
  .cg-fill-blank { width: 34px; height: 38px; }
  .cg-fill-blank-input { width: 30px; height: 32px; font-size: 18px; }
  .cg-fill-choice-btn { width: 38px; height: 38px; font-size: 18px; }
  .cg-chain-area { grid-template-columns: 1fr; }
  .cg-sm-grid { gap: 6px; }
  .cg-sm-card-back { font-size: 11px; }
  .cg-sm-card-back.title { font-size: 14px; }
  .cg-sm-card-back.source { font-size: 10px; }
  .cg-lk-grid { gap: 6px; }
  .cg-lk-card { font-size: 14px; }
  .cg-sk-item { flex-direction: column; text-align: center; gap: 4px; }
  .cg-sk-item-explain { text-align: center; max-width: 100%; }
}

/* Help Box (direct display, centered) */
.cg-help-box {
  max-width: 600px; margin: 0 auto 20px; text-align: center;
}
.cg-help-body {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cg-help-section {
  flex: 1 1 180px; min-width: 160px; max-width: 280px;
  background: #f9f9f9; border: 1px solid #eee; border-radius: 8px;
  padding: 12px 14px; text-align: left;
}
.cg-help-section h4 {
  font-size: 13px; color: #06c; margin: 0 0 5px; font-weight: 600;
}
.cg-help-section p {
  font-size: 12px; color: #666; line-height: 1.7; margin: 0;
}
