.kubectl-game {
  --game-bg: #f3f6fc;
  --game-card: #fff;
  --game-text: #17243b;
  --game-muted: #52617b;
  --game-border: #dce5f2;
  color: var(--game-text);
  background: var(--game-bg);
  border: 1px solid var(--game-border);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 22px);
  margin: 1rem 0;
}
.kubectl-game * { box-sizing: border-box; }
.kubectl-game .game-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.kubectl-game .game-header h2 { color: inherit; margin: .2em 0; font-size: 1.45rem; font-weight: 700; }
.kubectl-game .game-header p, .kubectl-game .game-footer { color: var(--game-muted); margin: 0; }
.kubectl-game .game-kicker { color: #355fe5; font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.kubectl-game .game-progress-label { white-space: nowrap; color: #355fe5; font-weight: 700; }
.kubectl-game .game-stats { text-align: right; }
.kubectl-game .game-score, .kubectl-game .game-streak { white-space: nowrap; color: var(--game-muted); font-weight: 700; }
.kubectl-game .game-progress { background: #dce5f2; height: 7px; border-radius: 10px; margin: 10px 0; overflow: hidden; }
.kubectl-game .game-progress span { display: block; height: 100%; background: #4268ef; transition: width .2s ease; }
.kubectl-game .game-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.kubectl-game .game-jump label { margin: 0; color: var(--game-text); }
.kubectl-game .game-jump input { width: 5em; padding: 8px; color: var(--game-text); background: var(--game-card); border: 1px solid var(--game-border); border-radius: 8px; }
.kubectl-game .game-jump button { color: #355fe5; background: var(--game-card); border: 1px solid #b7c8f8; }
.kubectl-game #game-jump-error { color: #a4262c; font-size: .75rem; }
.kubectl-game .game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kubectl-game .game-mission, .kubectl-game .game-terminal { border-radius: 14px; min-width: 0; }
.kubectl-game .game-mission { background: var(--game-card); border: 1px solid var(--game-border); padding: 18px; }
.kubectl-game .game-mission h3 { margin: .8em 0 .4em; color: inherit; font-size: 1.05rem; font-weight: 700; }
.kubectl-game .game-mission p { color: var(--game-muted); }
.kubectl-game .game-tag { display: inline-block; border-radius: 30px; background: #e9efff; color: #355fe5; padding: 4px 10px; font-size: .65rem; font-weight: 700; }
.kubectl-game .game-context { margin: 10px 0; font-size: .75rem; }
.kubectl-game .game-frequency { color: #355fe5; font-size: .75rem; font-weight: 700; margin-bottom: 10px; }
.kubectl-game button { cursor: pointer; font: inherit; border-radius: 8px; padding: 9px 16px; font-weight: 700; }
.kubectl-game button:focus-visible, .kubectl-game input:focus-visible, .kubectl-game textarea:focus-visible, .kubectl-game .game-transcript:focus-visible { outline: 3px solid #86a6ff; outline-offset: 3px; }
.kubectl-game .game-hint { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 8px; background: #e9efff; }
.kubectl-game .game-hint code { flex: 1; min-width: 0; padding: 0; background: transparent; color: var(--game-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.kubectl-game .game-copy { display: flex; padding: 2px; border: 0; background: transparent; color: #52617b; }
.kubectl-game .game-copy:hover { color: #355fe5; }
.kubectl-game .game-copy svg { width: 18px; height: 18px; }
.kubectl-game .game-copy-status { flex-basis: 100%; color: var(--game-muted); font-size: .7rem; }
.kubectl-game .game-copy-status:empty { display: none; }
.kubectl-game .game-terminal { background: #111d31; color: #e8efff; overflow: hidden; }
.kubectl-game .terminal-top { padding: 8px 18px; background: #1c2a43; color: #a9bad6; font-family: monospace; }
.kubectl-game .terminal-top span { color: #7794e8; }
.kubectl-game .terminal-body { padding: 16px; }
.kubectl-game .terminal-caption { color: #a9bad6; margin: 0 0 10px; }
.kubectl-game .game-transcript { height: clamp(140px, 22vh, 180px); overflow: auto; background: #091426; border: 1px solid #40516e; border-radius: 8px; padding: 12px; color: #d7e4f8; font: .7rem/1.6 monospace; }
.kubectl-game .game-transcript:empty::before { content: "模拟终端已就绪。"; color: #a9bad6; }
.kubectl-game .terminal-entry { margin: 0 0 1em; }
.kubectl-game .terminal-entry:last-child { margin-bottom: 0; }
.kubectl-game .terminal-command { color: #91b3ff; overflow-wrap: anywhere; white-space: pre-wrap; }
.kubectl-game .terminal-notice { color: #a9bad6; }
.kubectl-game .terminal-output { margin: .25em 0 0; font: inherit; white-space: pre; overflow-x: auto; }
.kubectl-game form { margin-top: 10px; }
.kubectl-game label { display: block; margin-bottom: 8px; font-weight: 700; }
.kubectl-game .terminal-input { display: flex; align-items: center; gap: 10px; background: #091426; border: 1px solid #40516e; border-radius: 8px; padding: 0 12px; }
.kubectl-game .terminal-input span { color: #8eafff; }
.kubectl-game input { color: #fff; background: transparent; border: 0; padding: 12px 0; width: 100%; min-width: 0; font: .8rem monospace; }
.kubectl-game textarea { color: #fff; background: transparent; border: 0; padding: 12px 0; width: 100%; min-width: 0; font: .8rem monospace; resize: vertical; }
.kubectl-game .game-yaml-submit { margin-top: 8px; background: #e9efff; border: 1px solid #e9efff; color: #17243b; }
.kubectl-game.game-yaml #game-command { max-height: 12rem; overflow: auto; }
.kubectl-game .game-feedback { white-space: pre-wrap; overflow-wrap: anywhere; color: #c9d8f2; margin-top: 16px; }
.kubectl-game .game-feedback:empty { display: none; }
.kubectl-game .game-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: .7rem; }
.kubectl-game .game-reset { border: 0; background: transparent; color: #355fe5; padding: 6px; }
.kubectl-game [hidden] { display: none !important; }
@media (max-width: 700px) {
  .kubectl-game .game-grid { grid-template-columns: 1fr; }
  .kubectl-game .game-header { align-items: flex-start; }
}
