:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e3a2b;
  background: #f0f6ee;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { padding: 32px 24px 16px; max-width: 1040px; margin: 0 auto; }
h1 { margin: 0 0 8px; font-size: 30px; }
p { line-height: 1.6; }
main { max-width: 1040px; margin: 0 auto; padding: 0 24px 36px; }
.panel { background: #fff; border: 1px solid #dbe7d8; border-radius: 18px; padding: 16px; margin: 12px 0; box-shadow: 0 4px 18px rgba(0,0,0,0.04); }
.status-panel { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.status-panel[hidden] { display: none; }
.button-row, .mode-row, .filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
button { border: 1px solid #c3d4bf; background: #f4faf2; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-size: 14px; }
button:hover { background: #e3efe0; }
button.active, .tab.active, .mode.active { background: #1e3a2b; color: #fff; border-color: #1e3a2b; }
.practice-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d1dfd0;
  border-radius: 999px;
  background: #fbfdfb;
  font-size: 14px;
}
.practice-filter-toggle input {
  width: auto;
  margin: 0;
}
.prepare-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
  padding: 8px 10px;
  border: 1px solid #dce7d7;
  border-radius: 12px;
  background: #fbfdfb;
}
.prepare-strip #prepareSummaryText {
  color: #5a4a36;
  font-size: 14px;
}
.prepare-strip button {
  padding: 7px 11px;
}
.audio-play-btn {
  min-width: 42px;
}
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-page { display: none; }
.tab-page.active { display: block; }
.card { border: 1px solid #dce7d7; border-radius: 16px; padding: 18px; background: #fbfdfb; }
.meta-row { display: flex; gap: 8px; margin-bottom: 10px; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #ddf0e1; font-size: 13px; }
.badge.muted { background: #eee; }
.prompt-box { background: #f1f7f0; padding: 14px; border-radius: 12px; margin: 12px 0; }
textarea { width: 100%; min-height: 110px; border: 1px solid #c4d4c1; border-radius: 12px; padding: 10px; font-size: 15px; }
textarea.large { min-height: 170px; }
.cannot-use-count {
  margin: 5px 4px 0;
  color: #57793f;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}
input, select { width: 100%; border: 1px solid #c4d4c1; border-radius: 10px; padding: 10px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
label { font-weight: 600; }
.hint { color: #666; }
.result { color: #2f6e3d; font-weight: 600; }
.library-list { display: grid; gap: 8px; margin-top: 0; }
.library-item { border: 1px solid #d6e3d3; border-radius: 12px; padding: 10px; background: #fbfdfb; }
.library-item h3 { margin: 0 0 6px; font-size: 17px; }
.library-list-item.selected { border-color: #1e3a2b; background: #f1f7f0; }
.library-list-item.library-item-highlight {
  border-color: #4c9a58;
  box-shadow: 0 0 0 3px rgba(76, 154, 88, 0.20);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.library-item-main { cursor: pointer; }
.library-expression-title { cursor: pointer; }
.library-expression-title:hover { text-decoration: underline; }
.library-item small { color: #666; }
.filter-row { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(6, minmax(120px, 150px)); }
#library.tab-page.active {
  height: calc(100vh - 170px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 4px;
  padding: 10px 12px;
}
#library .filter-row,
#library .library-actions,
#library > .status-panel {
  flex: 0 0 auto;
}
#library .library-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(360px, 1fr);
  gap: 12px;
  overflow: hidden;
}
#library .library-title {
  margin: 0 0 6px;
}
#library > .status-panel {
  gap: 10px;
  margin: 0 0 6px;
  padding: 8px 10px;
}
#library > .status-panel p {
  margin: 3px 0 0;
  font-size: 13px;
}
#library > .status-panel .button-row {
  gap: 6px;
}
#library > .status-panel button {
  padding: 6px 9px;
  font-size: 12px;
}
#practice > .status-panel {
  gap: 10px;
  margin: 0 0 6px;
  padding: 8px 10px;
}
#practice > .status-panel p {
  margin: 3px 0 0;
  font-size: 13px;
}
#practice > .status-panel .button-row {
  gap: 6px;
}
#practice > .status-panel button {
  padding: 6px 9px;
  font-size: 12px;
}
#practice .prepare-strip {
  margin: 0 0 8px;
}
#practice .mode-row {
  margin: 0 0 10px;
}
#library .filter-row {
  gap: 6px;
  grid-template-columns: minmax(150px, 1fr) repeat(6, minmax(92px, 120px));
}
#library .filter-row input,
#library .filter-row select {
  padding: 6px 8px;
  font-size: 13px;
}
#library .library-actions {
  gap: 6px;
  margin-top: 6px;
}
#library .library-actions button {
  padding: 6px 9px;
  font-size: 12px;
}
#library .library-item {
  position: relative;
  padding: 8px;
}
#library .library-item h3 {
  margin: 0 28px 4px 0;
  font-size: 15px;
}
#library .library-check {
  position: absolute;
  top: 9px;
  right: 9px;
  margin: 0;
}
#libraryList,
.library-detail-panel {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}
.library-detail-panel {
  border: 1px solid #d6e3d3;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 12px;
}
.library-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #dde8db;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.library-detail-head h2 { margin: 0 0 6px; }
.library-summary-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.source-badge { background: #e7f5e7; }
.library-detail-section {
  border-top: 1px solid #dde8db;
  padding-top: 10px;
  margin-top: 10px;
}
.library-detail-actions { margin-top: 10px; }
.library-title {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.library-task-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(520px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #c4d4c1;
  border-radius: 999px;
  padding: 3px 9px;
  background: #f1f7f0;
  color: #5a4a36;
  font-size: 13px;
  font-weight: 600;
}
.library-task-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.library-task-stop-btn {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
}
.library-task-stop-btn:disabled {
  cursor: default;
  opacity: 0.65;
}
.inline-action-btn {
  padding: 5px 9px;
  font-size: 13px;
}
.library-task-status.running::before {
  content: "";
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-right: 0.4em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: library-task-spin 0.8s linear infinite;
}
.library-task-status.failed {
  border-color: #d9a19a;
  background: #fff0ee;
  color: #9b1c1c;
}
.is-loading {
  opacity: 0.72;
  cursor: progress;
}
@keyframes library-task-spin {
  to { transform: rotate(360deg); }
}
.clamped-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
code { background: #f3eee7; padding: 2px 5px; border-radius: 5px; }
@media (max-width: 720px) {
  .status-panel { flex-direction: column; align-items: stretch; }
  .form-grid, .filter-row { grid-template-columns: 1fr; }
  #library .filter-row { grid-template-columns: 1fr; }
  #library .library-layout { grid-template-columns: 1fr; }
}
.dialogue-box, .hint-box {
  background: #f1f7f0;
  padding: 14px;
  border-radius: 12px;
  margin: 12px 0;
}
.dialogue-box p, .hint-box p { margin: 8px 0 0; }
.hint-box small { color: #666; }
.english-hint-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}
.english-definition-audio-btn {
  flex: 0 0 auto;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1.2;
}
#answerDetails p {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  flex-wrap: wrap;
}
#answerDetails p strong {
  flex: 0 0 auto;
}
#answerDetails p span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.practice-edit-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0 4px;
}
.practice-edit-row button {
  padding: 7px 11px;
}
.practice-item-editor-card {
  max-width: 900px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.practice-item-editor-fields textarea {
  min-height: 82px;
}
.danger { border-color: #c43; color: #9b1c1c; }
.danger:hover { background: #fdebea; }
.library-actions { margin-top: 12px; }
.library-check { display: inline-flex; align-items: center; font-weight: 500; margin-bottom: 6px; }
.library-check input { width: auto; }

.warning { color: #9b5a00; font-weight: 600; }

.dictionary-panel {
  border-left: 4px solid #7b6f5b;
}
.dictionary-summary {
  border: 1px solid #d6e3d3;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fbfdfb;
}
.dictionary-summary-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.dictionary-sense {
  border-top: 1px solid #dde8db;
  margin-top: 10px;
  padding-top: 10px;
}
.dictionary-example {
  margin-left: 12px;
  color: #444;
}
.ai-status {
  border-left: 3px solid #8a6f2a;
  padding-left: 10px;
  margin: 10px 0;
}
.ai-output-and-candidates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 12px;
  align-items: start;
  min-height: 0;
}
.ai-learning-output {
  border: 1px solid #d6e3d3;
  border-radius: 12px;
  background: #fbfdfb;
  min-height: 220px;
  max-height: min(50vh, 520px);
  overflow: hidden;
}
.ai-output-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #d6e3d3;
  background: #fbfdfb;
}
.ai-output-scroll {
  max-height: calc(min(50vh, 520px) - 46px);
  overflow-y: auto;
  padding: 10px;
}
.ai-learning-sentence,
.candidate-card {
  border: 1px solid #d6e3d3;
  border-radius: 12px;
  padding: 9px 10px;
  margin: 8px 0;
  background: #fbfdfb;
}
.candidate-card.accepted {
  border-color: #7aa36f;
}
.candidate-card.rejected {
  opacity: 0.62;
}
.candidate-card-head,
.candidate-list-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.candidate-edit-grid textarea {
  min-height: 72px;
}
.candidate-list {
  border: 1px solid #d6e3d3;
  border-radius: 12px;
  background: #fbfdfb;
  overflow: hidden;
}
.candidate-list-head,
.candidate-list-footer {
  padding: 8px 10px;
  background: #fbfdfb;
}
.candidate-list-head h3 {
  margin: 0;
}
.candidate-list-panel {
  min-height: 220px;
  max-height: min(45vh, 420px);
  overflow-y: auto;
  padding: 0 10px;
  border-top: 1px solid #dde8db;
  border-bottom: 1px solid #dde8db;
}
.candidate-compact-text,
.candidate-source-sentence {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  margin: 6px 0;
}
.candidate-card details {
  margin: 6px 0;
}
.ai-tool-input {
  min-height: 150px;
}
.ai-tool-input--short {
  min-height: 120px;
}
.ai-tool-actions {
  margin-top: 8px;
}
.ai-manual-selection-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid #d6e3d3;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 8px 10px;
  margin: 8px 0 10px;
}
.selection-preview {
  flex: 1 1 220px;
  color: #2f6e3d;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.markdown-fallback {
  margin-top: 10px;
}
.markdown-fallback textarea {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .ai-output-and-candidates {
    grid-template-columns: 1fr;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 58, 43, 0.42);
  padding: 24px;
}
.modal-card {
  background: #fff;
  border: 1px solid #dbe7d8;
  border-radius: 14px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.18);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.modal-header h2 {
  margin: 0 0 4px;
}
.modal-header-actions {
  justify-content: flex-end;
}
.dictionary-original-card iframe {
  width: 100%;
  height: 70vh;
  border: 1px solid #d6e3d3;
  border-radius: 10px;
  background: #fff;
}
.dictionary-original-modal--quick .modal-card {
  max-width: 960px;
}
.dictionary-original-modal--quick .dictionary-original-card iframe {
  height: 60vh;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #e8f0e7;
  padding: 0.8rem;
  border-radius: 0.6rem;
  max-height: 260px;
  overflow: auto;
}
.daily-mastered-card { max-width: 900px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.daily-mastered-table-wrap { overflow: auto; margin-bottom: 16px; border: 1px solid #dbe7d8; border-radius: 10px; }
.daily-mastered-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.daily-mastered-table th,
.daily-mastered-table td { width: 50%; padding: 12px 14px; border-bottom: 1px solid #dbe7d8; text-align: left; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.daily-mastered-table th { position: sticky; top: 0; background: #e7f1e5; z-index: 1; }
.daily-mastered-table tr:last-child td { border-bottom: 0; }
.daily-mastered-empty { color: #777; text-align: center !important; }
.mastered-list-table-wrap { max-height: calc(100vh - 280px); }

/* 同义词消消乐 */
.match-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.match-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d1dfd0;
  border-radius: 999px;
  background: #fbfdfb;
  font-size: 14px;
}
.match-option input {
  width: auto;
  margin: 0;
}
.match-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.match-card {
  aspect-ratio: 4 / 3;
  border: 2px solid #d6e3d3;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: #1e3a2b;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, opacity .3s ease;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.match-card:hover {
  border-color: #8cae88;
  transform: translateY(-1px);
}
.match-card--expression {
  background: #e7f1e5;
  font-weight: 700;
  font-size: 14px;
}
.match-card--expression:hover {
  background: #e7f1e5;
}
.match-card--hint {
  background: #f5faf0;
  color: #2c4a24;
}
.match-card--hint:hover {
  background: #f5faf0;
}
.match-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.match-card.selected {
  border-color: #1e3a2b;
  box-shadow: 0 0 0 2px rgba(30, 58, 43, 0.18);
}
.match-card.wrong {
  border-color: #b3261e;
  background: #fbe9e7;
  animation: matchShake .3s ease;
}
.match-card.matched {
  opacity: 0;
  pointer-events: none;
  transform: scale(.85);
}
@keyframes matchShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.match-win-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #4a7c43;
  border-radius: 12px;
  background: #eef6e9;
  color: #2f5429;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.match-win-banner[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .match-board {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 拼写填空 */
.spelling-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.spelling-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spelling-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spelling-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.spelling-definition {
  font-size: 14px;
  color: #4c6b4f;
}
.spelling-translation {
  font-size: 14px;
  color: #5f7a63;
}
.spelling-sentence {
  font-size: 17px;
  line-height: 1.6;
  background: #f1f7f0;
  border-radius: 10px;
  padding: 12px 14px;
}
.spelling-answer-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.spelling-input {
  width: 100%;
  max-width: 560px;
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  padding: 14px 16px;
  letter-spacing: 0.5px;
}
.spelling-feedback,
.spelling-correct {
  width: 100%;
  max-width: 560px;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
  min-height: 36px;
  overflow-wrap: anywhere;
}
.spelling-ok {
  color: #1a7f37;
}
.spelling-bad {
  color: #cf222e;
}
.spelling-correct {
  color: #1a7f37;
}
.spelling-actions {
  justify-content: center;
}

/* 金币系统 */
.coin-glyph {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffedb3 0%, #f6c945 55%, #d19a1c 100%);
  border: 1.5px solid #a97b12;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 200, 0.55), 0 1px 2px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}
.coin-wallet-widget {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffdf5;
  border: 1px solid #e5d9b8;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #7a5c11;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.coin-icon {
  line-height: 1;
}
.coin-wallet-widget.coin-bump {
  animation: coinBump 0.32s ease;
}
@keyframes coinBump {
  50% { transform: scale(1.14); }
}
.coin-fly {
  position: fixed;
  z-index: 1300;
  width: 24px;
  height: 24px;
  pointer-events: none;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.3, 0.7, 0.4, 1), opacity 0.65s ease;
}
.coin-fly.coin-glyph {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

/* ===== 小屏适配（手机） ===== */
[hidden] { display: none !important; }
@media (max-width: 720px) {
  header { padding: 14px 180px 6px 12px; }
  header h1 { font-size: 21px; }
  main { padding: 0 10px 24px; }
  .panel { border-radius: 12px; padding: 12px; margin: 8px 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .tab { flex: 0 0 auto; }
  .status-panel { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; gap: 8px; }
  .button-row, .mode-row { gap: 8px; }
  button { min-height: 44px; }
  .coin-wallet-widget { top: 8px; right: 8px; padding: 4px 10px; font-size: 12px; }
  .coin-glyph { width: 13px; height: 13px; }
  .coin-fly.coin-glyph { width: 20px; height: 20px; }
  .modal-backdrop { padding: 8px; }
  .modal-card { padding: 12px; max-height: calc(100vh - 16px); overflow-y: auto; }
  .modal-header { flex-direction: column; gap: 8px; }
  .modal-header-actions { justify-content: flex-start; }
  .dictionary-original-card iframe { height: 60vh; }
  #library.tab-page.active { height: auto; overflow: visible; min-height: 0; }
  #library .library-layout { grid-template-columns: 1fr; overflow: visible; }
  #library .library-list { max-height: 44vh; overflow-y: auto; }
  .spelling-input { font-size: 20px; padding: 12px; }
  .spelling-feedback, .spelling-correct { font-size: 22px; }
  .spelling-top-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .match-card { font-size: 12px; }
  .match-card--expression { font-size: 13px; }
  textarea.large { min-height: 140px; }
}
@media (max-width: 400px) {
  .match-board { grid-template-columns: repeat(3, 1fr); }
  .filter-row { grid-template-columns: 1fr; }
}

/* ===== 战机游戏 ===== */
.jet-mode-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.jet-hud {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: #1e3a2b;
}
.jet-countdown { color: #b3261e; font-size: 17px; }
.jet-wrap { display: grid; grid-template-columns: minmax(340px, 5fr) minmax(300px, 4fr); gap: 12px; }
.jet-sky {
  position: relative;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c9d8e8;
  background: linear-gradient(180deg, #a8cdea 0%, #cfe4f2 55%, #e8f2f8 80%, #dfe9d8 100%);
}
.jet-sky.shake { animation: jetShake 0.5s ease; }
@keyframes jetShake {
  20% { transform: translateX(-7px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-4px); }
  90% { transform: translateX(2px); }
}
.jet-enemy {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  font-size: 46px;
  line-height: 1;
  z-index: 3;
  will-change: top;
}
.jet-enemy img { width: 76px; height: 76px; transform: rotate(180deg); }
.jet-base {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 54px;
  line-height: 1;
  z-index: 2;
}
.jet-base img { width: 96px; height: 96px; }
.jet-bullet {
  position: absolute;
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff3b0, #f6a323);
  box-shadow: 0 0 8px rgba(246, 163, 35, 0.9);
  z-index: 5;
}
.jet-boom {
  position: absolute;
  font-size: 68px;
  line-height: 1;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}
.jet-boom img { width: 110px; height: 110px; }
.jet-boom.big { font-size: 96px; }
.jet-boom.big img { width: 150px; height: 150px; }
.jet-boom.go { animation: jetBoomAnim 0.6s ease-out forwards; }
@keyframes jetBoomAnim {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
.jet-question {
  border: 1px solid #dce7d7;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jet-cloze { font-size: 17px; line-height: 1.6; margin: 0; }
.jet-question input { width: 100%; font-size: 16px; padding: 10px; }
.jet-mc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jet-mc-btn { min-height: 48px; font-weight: 700; }
.jet-mc-btn.correct { background: #d9f0dc; border-color: #1a7f37; }
.jet-mc-btn.wrong { background: #fbe9e7; border-color: #b3261e; }
.jet-feedback { min-height: 22px; font-weight: 700; color: #1a7f37; margin: 0; }
.jet-settlement { display: flex; flex-direction: column; gap: 12px; }
.jet-settlement h3 { margin: 6px 0 2px; }
.jet-stats-row { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.jet-record-banner {
  border: 2px solid #c8901a;
  background: #fff8e0;
  color: #7a5c11;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  animation: jetBoomAnim 0.8s ease-out;
}
.jet-gameover-banner {
  border: 2px solid #202124;
  background: #202124;
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
}
.jet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jet-table th, .jet-table td {
  border: 1px solid #dce7d7;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.jet-table th { background: #eef5ea; }
.jet-table tr.jet-row-current { background: #fff8e0; font-weight: 700; }
.jet-group-bad h3 { color: #b3261e; }
.jet-group-good h3 { color: #1a7f37; }
.jet-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eee; margin-left: 6px; }
.jet-tag.bad { background: #fbe9e7; color: #b3261e; }
.jet-tag.mid { background: #fff3cd; color: #8a6d1a; }
.jet-word { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
#spellingHeadCount {
  font-size: 12px;
  font-weight: 400;
  color: #8a9a8d;
  margin-left: 8px;
}
@media (max-width: 900px) {
  .jet-wrap { grid-template-columns: 1fr; }
  .jet-sky { height: 380px; }
}
