* {
  box-sizing: border-box;
}
:root {
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  color: #213c40;
  background: #f4f9f8;
  line-height: 1.5;
  font-synthesis: none;
  --accent: #087f83;
  --line: #d9e6e4;
  --muted: #5b7477;
  --fire: #d74c49;
  --water: #197eb7;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
.file-button {
  cursor: pointer;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: inherit;
  padding: 9px 15px;
  font-weight: 600;
}
button:hover:not(:disabled) {
  background: #eaf5f3;
  border-color: #97c6c2;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ecb93d;
  outline-offset: 3px;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.primary:hover {
  background: #05686c;
}
svg.lucide {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.8;
}
input,
textarea,
select {
  background: #fff;
  color: inherit;
  border: 1px solid #bfcecd;
  border-radius: 8px;
  padding: 11px 12px;
  max-width: 100%;
  min-width: 0;
}
select {
  min-height: 44px;
}
textarea {
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 17px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 7px;
}
.icon {
  width: 42px;
  min-width: 42px;
  padding: 8px;
  background: transparent;
  border-color: transparent;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: var(--accent);
  font-size: 13px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100% - 1460px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  text-decoration: none;
  color: #213c40;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: 19px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tabs button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  white-space: nowrap;
}
.tabs button.active {
  background: #e6f4f1;
  color: #056a6e;
}
.tabs b {
  font-size: 11px;
  background: #d3e9e5;
  padding: 1px 6px;
  border-radius: 4px;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header select {
  font-size: 13px;
  border-color: transparent;
}
main {
  max-width: 1460px;
  margin: auto;
  padding: 30px 24px 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.mode-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.mode-control label {
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  gap: 28px;
}
.game-column {
  min-width: 0;
}
.play-shell {
  border: 1px solid #b6ceca;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
}
.game-toolbar > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-size: 14px;
}
.game-toolbar strong {
  overflow-wrap: anywhere;
}
.tool-actions {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
}
.badge {
  background: #e6f4f1;
  color: #066d70;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.stage {
  position: relative;
  aspect-ratio: 5/3;
  isolation: isolate;
  background: #c4eaf8;
  direction: ltr;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline-offset: -3px;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #f3faf6aa;
}
.game-overlay:empty {
  display: none;
}
.intro {
  max-width: 415px;
  text-align: center;
  border: 1px solid #c1d8cf;
  border-radius: 8px;
  background: #fffffff5;
  padding: 24px;
  box-shadow: 0 8px 30px #12534b14;
}
.intro h2 {
  font-size: 26px;
  line-height: 1.2;
}
.intro p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 18px;
}
.intro .intro-symbols {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}
.intro-symbols .lucide {
  width: 32px;
  height: 32px;
}
.intro .fire {
  color: var(--fire);
}
.intro .water {
  color: var(--water);
}
.game-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.game-status > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-status .lucide {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.game-status b {
  font-variant-numeric: tabular-nums;
}
.touch-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #eef5f4;
  direction: ltr;
  border-top: 1px solid var(--line);
}
.pad {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pad strong {
  font-size: 12px;
  margin-right: 6px;
  white-space: nowrap;
}
.pad button {
  width: 54px;
  height: 46px;
  padding: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pad .jump {
  margin-left: 12px;
}
.pad.fire button {
  color: #ac302e;
  border-color: #e6b1ad;
}
.pad.water button {
  color: #176c9d;
  border-color: #a7cfe3;
}
.pad button.pressed {
  background: #cae9e2;
  transform: translateY(1px);
}
.control-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 28px;
}
.control-hint .lucide {
  width: 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.level-sidebar {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 24px;
}
.level-sidebar select {
  width: 100%;
  margin-bottom: 16px;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.level-button {
  flex-direction: column;
  gap: 0;
  padding: 8px 2px;
  min-height: 62px;
}
.level-button small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9a7a20;
}
.level-button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.level-button.selected small {
  color: #ffdf8e;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
}
.rules {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.rule {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.rule p {
  font-size: 12px;
  color: var(--muted);
}
.rule-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.rule-icon.fire {
  color: #bf3b37;
  background: #ffebe7;
}
.rule-icon.water {
  color: #1979aa;
  background: #e3f3fa;
}
.rule-icon.poison {
  color: #628432;
  background: #ecf5dd;
}
.word-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.word-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
  position: relative;
}
.word-tile.collected {
  border-color: #87c8b6;
  background: #f5fcf7;
}
.word-tile .hanzi {
  font-size: 24px;
  color: #174d52;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
  line-height: 1.35;
  margin-right: 24px;
}
.word-tile .pinyin {
  color: #4b7779;
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 5px 0 8px;
}
.word-tile .listen {
  position: absolute;
  inset-inline-end: 3px;
  top: 5px;
  width: 30px;
  min-width: 30px;
  min-height: 36px;
  padding: 5px;
}
.word-tile .listen svg {
  width: 17px;
}
.word-tile summary {
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.word-tile details p {
  font-size: 13px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.collected-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.search-box {
  max-width: 550px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 12px;
  margin-bottom: 12px;
}
.search-box input {
  width: 100%;
  border: 0;
  outline-offset: -3px;
}
.collected-grid {
  margin-top: 24px;
}
.empty {
  grid-column: 1/-1;
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 40px;
  max-width: 1100px;
}
.studio-layout form > p:first-child {
  margin-bottom: 22px;
  color: var(--muted);
}
.studio-layout form > label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 8px;
}
.studio-layout input,
.studio-layout textarea {
  width: 100%;
}
.studio-layout .muted {
  margin: 10px 0;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 9px 14px;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  min-height: 44px;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid #ecb93d;
}
.pack-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}
.pack-card h3 {
  overflow-wrap: anywhere;
}
.pack-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 14px;
}
.pack-card .pack-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pack-actions .icon {
  border-color: var(--line);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  font-size: 11px;
  color: var(--muted);
  max-width: 1460px;
  margin: auto;
}
footer > span:last-child {
  max-width: 480px;
  text-align: end;
}
#boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  padding: 24px;
  text-align: center;
}
#boot span {
  font-size: 14px;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #163f40;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  max-width: calc(100vw - 32px);
  width: max-content;
  font-size: 14px;
  box-shadow: 0 4px 20px #0002;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  width: 560px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  color: inherit;
  background: #fff;
  overflow: auto;
}
dialog::backdrop {
  background: #153f4770;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 22px;
}
#modal-body p {
  margin: 12px 0;
}
#modal-body .rule p {
  margin: 0;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
.settings-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.quiz-word {
  text-align: center;
  margin: 18px 0;
}
.quiz-word strong {
  font-size: 40px;
  overflow-wrap: anywhere;
  display: block;
  color: var(--accent);
}
.quiz-word span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-options button {
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 50px;
  text-align: start;
  justify-content: start;
}
.quiz-options button.correct {
  background: #e2f6eb;
  border-color: #21895f;
  color: #165b3d;
}
.quiz-options button.wrong {
  background: #ffefed;
  border-color: #c94a4a;
  color: #a63333;
}
.quiz-options button:disabled {
  opacity: 1;
}
.quiz-feedback {
  min-height: 24px;
  font-weight: 600;
  color: var(--accent);
}
.score-stars {
  font-size: 38px;
  text-align: center;
  color: #b98714;
  letter-spacing: 5px;
}
.scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  margin: 22px 0;
}
.scores strong {
  font-size: 27px;
  display: block;
  color: var(--accent);
}
.scores span {
  font-size: 12px;
  color: var(--muted);
}
.error {
  color: #b13232;
  background: #fff0ef;
  padding: 12px;
  border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.immersive .header,
.immersive .page-heading,
.immersive .level-sidebar,
.immersive .journey-words,
.immersive footer,
.immersive .control-hint {
  display: none;
}
.immersive main {
  padding: 0;
  max-width: none;
}
.immersive .workspace {
  display: block;
}
.immersive .play-shell {
  max-width: min(100vw, calc((100dvh - 174px) * 5 / 3));
  margin: auto;
}
.immersive #play-page {
  background: #dcedea;
  min-height: 100dvh;
  display: grid;
  align-items: center;
}
html[dir="rtl"] .stage,
html[dir="rtl"] .pagination {
  direction: ltr;
}
html[dir="rtl"] .word-tile .hanzi {
  margin-right: 0;
  margin-left: 24px;
}
@media (min-width: 1000px) and (pointer: fine) {
  .touch-controls {
    padding: 7px 14px;
  }
  .pad button {
    height: 38px;
    min-height: 38px;
    width: 46px;
  }
  .pad strong {
    color: var(--muted);
  }
}
@media (max-width: 1100px) {
  .header {
    gap: 14px;
    padding: 14px 20px;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    font-size: 12px;
    padding: 9px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 20px;
  }
  .level-sidebar {
    padding-inline-start: 18px;
  }
  .pad strong {
    display: none;
  }
  .word-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .header {
    flex-wrap: wrap;
    gap: 14px;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .tabs {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid #edf2f1;
    padding-top: 10px;
  }
  .tabs button {
    flex: 1;
    font-size: 13px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .level-sidebar {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .level-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .rules > p {
    grid-column: 1/-1;
  }
  .rule {
    align-items: start;
  }
  .collected-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .intro {
    padding: 18px;
    max-width: 380px;
  }
  .intro h2 {
    font-size: 24px;
  }
}
@media (max-width: 520px) {
  main {
    padding: 22px 12px 30px;
  }
  .header {
    padding: 12px;
  }
  .header-actions {
    gap: 0;
  }
  .header select {
    width: 100px;
    padding: 8px;
    font-size: 12px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 34px;
    height: 38px;
  }
  .tabs button {
    padding: 7px;
    font-size: 12px;
    gap: 5px;
  }
  .tabs svg {
    width: 17px;
  }
  .tabs b {
    display: none;
  }
  h1 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 18px;
    gap: 12px;
  }
  .mode-control {
    width: 100%;
    justify-content: space-between;
  }
  .mode-control select {
    font-size: 13px;
    width: 180px;
  }
  .game-toolbar {
    padding: 5px 6px;
  }
  .game-toolbar > div:first-child {
    font-size: 12px;
    gap: 5px;
  }
  .badge {
    font-size: 10px;
    padding: 4px;
  }
  .tool-actions {
    gap: 0;
  }
  .tool-actions .icon {
    min-width: 34px;
    width: 34px;
    min-height: 40px;
    padding: 7px;
  }
  .tool-actions .lucide {
    width: 17px;
  }
  .game-overlay {
    padding: 10px;
  }
  .intro {
    padding: 13px;
    max-width: 310px;
  }
  .intro h2 {
    font-size: 19px;
  }
  .intro p {
    font-size: 11px;
    margin: 7px 0 10px;
    line-height: 1.4;
  }
  .intro-symbols {
    display: none !important;
  }
  .intro button {
    min-height: 40px;
    padding: 7px 13px;
    font-size: 13px;
  }
  .game-status {
    font-size: 11px;
    padding: 8px 10px;
  }
  .game-status svg {
    width: 14px;
  }
  .touch-controls {
    padding: 10px 8px;
    gap: 10px;
    min-height: 68px;
  }
  .pad {
    gap: 5px;
  }
  .pad button {
    width: 42px;
    height: 46px;
  }
  .pad .jump {
    margin-left: 1px;
  }
  .touch-controls.single .pad {
    width: 100%;
  }
  .touch-controls.single .pad .jump {
    margin-left: auto;
    width: 70px;
  }
  .control-hint {
    margin: 12px 0 20px;
    text-align: center;
    font-size: 10px;
  }
  .word-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading .text-button {
    font-size: 11px;
    gap: 4px;
  }
  .text-button svg {
    width: 16px;
  }
  .level-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .rules {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rule {
    align-items: center;
  }
  .collected-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .word-tile {
    padding: 12px;
  }
  .collected-grid .hanzi {
    font-size: 22px;
  }
  .studio-layout {
    gap: 22px;
  }
  .form-actions {
    flex-direction: column;
  }
  .file-button {
    justify-content: center;
  }
  .pack-card {
    padding: 16px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px 12px;
  }
  footer > span:last-child {
    text-align: start;
  }
  dialog {
    padding: 18px;
  }
  .quiz-word strong {
    font-size: 32px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .immersive .play-shell {
    max-width: min(100vw, calc((100dvh - 126px) * 5 / 3));
  }
  .immersive .game-toolbar {
    padding: 0 8px;
  }
  .immersive .game-status {
    padding: 3px 10px;
  }
  .immersive .touch-controls {
    padding: 4px 8px;
    min-height: 44px;
  }
  .immersive .pad button {
    height: 36px;
    min-height: 36px;
  }
  .immersive .intro {
    padding: 12px;
  }
  .immersive .intro-symbols {
    display: none;
  }
  .immersive .intro h2 {
    font-size: 18px;
  }
  .immersive .intro p {
    font-size: 12px;
    margin: 6px 0;
  }
  .immersive .intro button {
    min-height: 36px;
    padding: 6px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.game-toolbar > div:first-child {
  flex: 1;
  overflow: hidden;
}
.touch-controls.single .pad {
  width: 100%;
}
.touch-controls.single .pad .jump {
  margin-left: auto;
}
.game-toolbar .badge {
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-toolbar strong {
  white-space: nowrap;
  overflow-wrap: normal;
  flex-shrink: 0;
}
.game-status b,
#level-progress {
  direction: ltr;
  unicode-bidi: isolate;
}
.stage canvas {
  outline: none;
}
.stage canvas:focus-visible {
  outline: 2px solid #e4b94c;
  outline-offset: -2px;
}
@media (max-width: 520px) {
  .game-toolbar .badge {
    max-width: 85px;
  }
  .game-toolbar > div:first-child {
    flex-wrap: wrap;
    gap: 1px;
  }
  .game-toolbar strong {
    font-size: 11px;
  }
  .game-toolbar {
    min-height: 50px;
  }
  .header .brand {
    max-width: 100%;
  }
}
