.hh-game {
  --hh-ink:#edf5fa;
  --hh-muted:#8699af;
  --hh-aqua:#8ce5d5;
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  color: var(--hh-ink);
  background: #080f1e;
  font-family:
    Inter,
    "Noto Sans",
    system-ui,
    sans-serif;
  color-scheme: dark;
}
.hh-game * {
  box-sizing: border-box;
}
.hh-game [hidden] {
  display: none !important;
}
.hh-game button,
.hh-game a {
  -webkit-tap-highlight-color: transparent;
}
.hh-game button {
  font: inherit;
  cursor: pointer;
}
.hh-game a {
  color: inherit;
  text-decoration: none;
}
.hh-game button:focus-visible,
.hh-game a:focus-visible {
  outline: 2px solid var(--hh-aqua);
  outline-offset: 4px;
}
.hh-game button:disabled {
  opacity: .5;
  cursor: wait;
}
.hh-shell {
  height: 100%;
  max-width: 1600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      ellipse at 50% 60%,
      #16304736,
      transparent 65%),
    radial-gradient(
      ellipse at 15% 15%,
      #31336624,
      transparent 50%);
}
.hh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 36px;
  border-bottom: 1px solid #a8c5df12;
  flex-shrink: 0;
}
.hh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.hh-brand b {
  font-weight: 500;
  color: var(--hh-muted);
}
.hh-emblem {
  font-size: 34px;
  line-height: 1;
  color: var(--hh-aqua);
}
.hh-stats {
  display: flex;
  align-items: center;
  gap: 44px;
}
.hh-stats > div {
  min-width: 50px;
}
.hh-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--hh-muted);
  margin-bottom: 5px;
}
.hh-stats strong {
  font-family: "Noto Sans Mono", monospace;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hh-shields {
  display: flex;
  gap: 7px;
  height: 26px;
  align-items: center;
}
.hh-xp-track {
  padding: 12px 36px 0;
  flex-shrink: 0;
}
.hh-xp-caption {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font: 10px "Noto Sans Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--hh-muted);
}
.hh-level-meter {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #8ce5d526;
}
.hh-word.hh-boss {
  height: auto;
  min-height: 110px;
  padding: 14px 18px;
  gap: 10px;
  border-color: #d6b57d99;
  background: linear-gradient(150deg, #302b36f5, #171b30f5);
}
.hh-boss .hh-hanzi {
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.5;
}
.hh-boss-label {
  color: #e5c58f;
  font: 9px "Noto Sans Mono", monospace;
  letter-spacing: 1px;
}
.hh-boss .hh-slots {
  max-width: 100%;
}
.hh-level-meter i {
  display: block;
  height: 100%;
  background: var(--hh-aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease-out;
}
.hh-shields i {
  display: block;
  width: 11px;
  height: 15px;
  background: var(--hh-aqua);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  transition: background .2s;
}
.hh-shields i.is-lost {
  background: #334158;
}
.hh-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hh-controls button,
.hh-controls a,
.hh-keyboard-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  border: 1px solid #8cabc326;
  border-radius: 9px;
  background: #14203355;
  color: #aabed0;
  font-size: 18px;
  transition: border-color .2s, color .2s;
}
.hh-controls button:first-child {
  font-size: 11px;
  padding: 0 11px;
}
.hh-controls button:hover,
.hh-controls a:hover,
.hh-keyboard-toggle:hover {
  border-color: #8ce5d580;
  color: #d7fcf6;
}
.hh-flight-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 36px 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.7px;
  color: #71859d;
  flex-shrink: 0;
}
.hh-flight-info b {
  font-weight: 500;
  color: #a4b5c8;
}
.hh-hsk {
  border: 1px solid #304057;
  border-radius: 5px;
  padding: 4px 7px;
  color: #bac8d8;
  letter-spacing: 1px;
}
.hh-flight-count {
  margin-left: auto;
  letter-spacing: .3px;
  font-size: 11px;
  color: #8195aa;
}
.hh-stage {
  position: relative;
  flex: 1;
  min-height: 225px;
  outline: none;
  overflow: hidden;
}
.hh-stage canvas,
.hh-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hh-word {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100px;
  border: 1px solid #53748d4d;
  border-radius: 14px;
  background:
    linear-gradient(
      150deg,
      #17293dee,
      #101c2dec);
  box-shadow: 0 8px 28px #0000001f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  will-change: transform;
  transition:
    border-color .15s,
    box-shadow .15s,
    background .15s;
  padding: 10px 12px;
}
.hh-word::before {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(50% - 14px);
  width: 28px;
  height: 2px;
  background: #789bb5;
  border-radius: 2px;
  opacity: .6;
}
.hh-word.is-selected {
  border-color: #8ce5d5bb;
  background:
    linear-gradient(
      150deg,
      #183937f5,
      #10272ff2);
  box-shadow: 0 0 26px #68e6c817;
}
.hh-word.is-selected::before {
  background: #b3ffef;
  opacity: 1;
  width: 42px;
  left: calc(50% - 21px);
}
.hh-word.is-danger {
  border-color: #d9a07c80;
}
.hh-word.is-danger.is-selected {
  border-color: var(--hh-aqua);
}
.hh-hanzi {
  font-family:
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: var(--hh-hanzi-size, 29px);
  letter-spacing: 3px;
  line-height: 1.2;
  color: #f2f6fa;
  max-width: 100%;
  white-space: nowrap;
}
.hh-slots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 9px;
  font-family: "Noto Sans Mono", monospace;
  font-size: 12px;
  line-height: 15px;
  min-height: 15px;
}
.hh-syllable {
  display: flex;
  gap: 2px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.hh-letter {
  color: #6c7e94;
  min-width: 7px;
  text-align: center;
}
.hh-letter.is-typed {
  color: #a3ffe9;
}
.hh-letter.is-hint {
  color: #dcbd92;
}
.hh-reading {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px 8px;
  width: 100%;
}
.hh-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 26px;
  border-radius: 5px;
}
.hh-character .hh-hanzi {
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .12s;
}
.hh-character .hh-syllable {
  flex-wrap: nowrap;
  font: 12px/15px "Noto Sans Mono", monospace;
}
.hh-character.is-complete .hh-hanzi {
  color: #a3ffe9;
}
.hh-character.is-current {
  background: #8ce5d50d;
  box-shadow: 0 2px #8ce5d580;
}
.hh-boss .hh-reading {
  gap: 14px 10px;
}
.hh-boss .hh-character {
  gap: 4px;
}
.hh-horizon-label {
  position: absolute;
  bottom: 73px;
  left: 36px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #4c697f;
}
.hh-level-break {
  position: absolute;
  inset: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--hh-aqua);
  pointer-events: none;
}
.hh-level-complete {
  font-size: 10px;
  letter-spacing: 3px;
  color: #9eb9c9;
  margin: 0 0 23px;
}
.hh-level-orbit {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid #92efda66;
  border-radius: 50%;
  font-size: 60px;
  line-height: 1;
  background: #94f1d90a;
  box-shadow: 0 0 0 12px #94f1d905, 0 0 75px #94f1d920;
  animation: hh-level-arrival .65s ease-out both;
}
.hh-level-break h2 {
  color: #d8fff4;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 22px 0 8px;
}
.hh-level-copy {
  font-size: 13px;
  color: #90a9bd;
  margin: 0;
}
.hh-level-progress {
  width: 130px;
  height: 2px;
  margin: 27px 0 12px;
  background: #8ce5d526;
  overflow: hidden;
}
.hh-level-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hh-aqua);
  transform: scaleX(0);
  transform-origin: left;
}
.hh-level-countdown {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8eaaa9;
}
@keyframes hh-level-arrival {
  from {
    opacity: 0;
    transform: scale(.65) rotate(-30deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
.hh-console {
  margin: 0 36px;
  padding: 0 0 max(18px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.hh-receipt {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8c9eb1;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}
.hh-receipt b {
  font-weight: 500;
  color: #def9f2;
  font-size: 16px;
}
.hh-receipt em {
  font-style: normal;
  color: var(--hh-aqua);
  font-family: monospace;
}
.hh-receipt .hh-meaning {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}
.hh-input-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #44607870;
  border-radius: 12px;
  padding: 10px 17px;
  background: #111d2dbb;
  box-shadow: 0 8px 25px #0002;
  transition: border-color .12s;
}
.hh-input-row.is-wrong {
  border-color: #f1a58c;
}
.hh-stage:focus-visible + .hh-console .hh-input-row:not(.is-wrong) {
  border-color: #8ce5d566;
}
.hh-input {
  color: var(--hh-aqua);
  flex: 1;
  min-width: 0;
  font: 22px "Noto Sans Mono", monospace;
  letter-spacing: 2px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.hh-input::after {
  content: "";
  display: inline-block;
  height: 20px;
  width: 2px;
  vertical-align: -3px;
  background: var(--hh-aqua);
  opacity: .6;
  margin-left: 5px;
}
.hh-keyboard-toggle {
  font-size: 21px;
  flex-shrink: 0;
  background: transparent;
}
.hh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hh-keyboard {
  padding-top: 10px;
  max-width: 620px;
  margin: auto;
  touch-action: manipulation;
  user-select: none;
}
.hh-key-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 5px 0;
}
.hh-keyboard button {
  height: 40px;
  min-width: 0;
  flex: 1;
  max-width: 49px;
  background: #1a2a3e;
  border: 1px solid #34465e;
  border-radius: 7px;
  color: #dfebf4;
  font-size: 16px;
  touch-action: manipulation;
}
.hh-keyboard button:active {
  background: #35625d;
  color: #fff;
}
.hh-keyboard button.hh-wide-key {
  max-width: 88px;
  flex: 1.7;
  font-size: 11px;
}
.hh-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: #060d1ed9;
  backdrop-filter: blur(9px);
  overflow: auto;
}
.hh-dialog {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 470px;
  padding: 30px 38px 24px;
  border: 1px solid #4b658d4d;
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse at 50% 0,
      #263f504f,
      transparent 60%),
    #0e192b;
  box-shadow: 0 28px 100px #0005;
  text-align: center;
  outline: none;
}
.hh-dialog-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  width: 55px;
  height: 55px;
  border: 1px solid #83d9ca4a;
  border-radius: 50%;
  color: var(--hh-aqua);
  font-size: 37px;
  background: #82d6c908;
  box-shadow: 0 0 30px #5edfc510;
}
.hh-eyebrow {
  margin: 0 0 10px;
  color: #93c8c4;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
}
.hh-dialog h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 12px;
  color: #f4f8fa;
}
.hh-dialog-copy {
  font-size: 14px;
  line-height: 1.6;
  color: #97aabd;
  margin: 0 auto 20px;
  max-width: 340px;
}
.hh-example {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto 9px;
  gap: 7px;
}
.hh-example > span:first-child {
  font-size: 31px;
  letter-spacing: 6px;
}
.hh-example-pinyin {
  font: 13px monospace;
  color: var(--hh-aqua);
  letter-spacing: 2px;
}
.hh-example-pinyin i {
  display: inline-block;
  width: 4px;
}
.hh-example-beam {
  width: 1px;
  height: 27px;
  background: linear-gradient(#8ce5d511, #8ce5d5);
  box-shadow: 0 0 7px #8ce5d544;
}
.hh-example-ship {
  color: #b8f8ea;
  font-size: 26px;
  line-height: 1;
  transform: scaleX(.85);
}
.hh-intro > p {
  font-size: 13px;
  line-height: 1.8;
  color: #a8b8c8;
}
.hh-intro > p b {
  color: var(--hh-aqua);
  font-family: monospace;
  font-weight: 500;
}
.hh-intro-notes {
  margin: 19px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #7f96ac;
  font-size: 11px;
}
.hh-load-status {
  font-size: 12px;
  color: #c0ac8c;
  margin: 12px 0;
  line-height: 1.6;
}
.hh-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid #b9ffee80;
  border-radius: 10px;
  background: #96e5d3;
  color: #092c2d;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: background .15s, box-shadow .15s;
}
.hh-primary:hover {
  background: #b7f6e7;
  box-shadow: 0 0 24px #8ce5d515;
}
.hh-dialog-exit {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: #99acbf !important;
}
.hh-dialog-exit:hover {
  color: #e2ecf4 !important;
}
.hh-dialog-footnote {
  font-size: 10px;
  color: #607990;
  margin: 20px 0 0;
}
.hh-result-stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  border-block: 1px solid #344b624f;
  padding: 22px 0;
}
.hh-result-stats span {
  display: block;
  color: #8ba5bc;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.hh-result-stats strong {
  font: 25px "Noto Sans Mono", monospace;
  color: #b9f5e7;
}
.hh-save-status {
  font-size: 12px;
  color: #90a9bd;
  min-height: 17px;
}
.hh-review {
  text-align: left;
  margin: 22px 0;
}
.hh-review h2 {
  font-size: 12px;
  font-weight: 500;
  color: #bac9d7;
  margin-bottom: 12px;
}
.hh-review-word {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 12px;
  border-top: 1px solid #8cabc315;
  padding: 10px 0;
}
.hh-review-word b {
  font-size: 19px;
  font-weight: 500;
  grid-row: span 2;
}
.hh-review-word span {
  font-size: 12px;
  color: var(--hh-aqua);
}
.hh-review-word small {
  color: #899fb4;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.hh-noscript {
  position: absolute;
  inset: 40% 0 auto;
  z-index: 20;
  text-align: center;
  background: #17283b;
  padding: 25px;
}
@media (min-width: 1300px) {
  .hh-console {
    max-width: 1000px;
    width: calc(100% - 72px);
    margin-inline: auto;
  }
  .hh-header {
    padding-inline: 50px;
  }
  .hh-flight-info {
    padding-inline: 50px;
  }
}
@media (max-width: 760px) {
  .hh-xp-track { padding: 10px 18px 0; }
  .hh-xp-caption { font-size: 9px; }
  .hh-header {
    padding: 15px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .hh-brand {
    font-size: 11px;
    letter-spacing: 1.6px;
    gap: 8px;
  }
  .hh-emblem {
    font-size: 28px;
  }
  .hh-stats {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 55px;
    padding-top: 9px;
  }
  .hh-stats > div {
    min-width: 40px;
  }
  .hh-stats strong {
    font-size: 20px;
  }
  .hh-label {
    font-size: 8px;
    margin-bottom: 4px;
  }
  .hh-controls {
    gap: 6px;
  }
  .hh-controls button,
  .hh-controls a {
    height: 31px;
    min-width: 31px;
  }
  .hh-controls button:first-child {
    font-size: 10px;
    padding: 0 8px;
  }
  .hh-flight-info {
    padding: 12px 18px 0;
    gap: 10px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hh-flight-count {
    display: none;
  }
  .hh-horizon-label {
    left: 18px;
  }
  .hh-console {
    margin: 0 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .hh-input-row {
    min-height: 57px;
    padding: 9px 11px;
    gap: 10px;
  }
  .hh-input {
    font-size: 18px;
  }
  .hh-receipt {
    font-size: 11px;
    height: 30px;
    gap: 7px;
  }
  .hh-receipt b {
    font-size: 14px;
  }
  .hh-dialog {
    padding: 25px 24px 22px;
    max-width: 420px;
  }
  .hh-dialog h1 {
    font-size: 34px;
  }
  .hh-overlay {
    padding: 18px 14px;
  }
  .hh-game.has-keyboard .hh-level-complete {
    margin-bottom: 12px;
  }
  .hh-game.has-keyboard .hh-header {
    padding-block: 9px;
  }
  .hh-game.has-keyboard .hh-stats {
    padding-top: 0;
  }
  .hh-game.has-keyboard .hh-flight-info,
  .hh-game.has-keyboard .hh-receipt {
    display: none;
  }
  .hh-game.has-keyboard .hh-level-orbit {
    width: 44px;
    height: 44px;
    font-size: 31px;
  }
  .hh-game.has-keyboard .hh-level-break h2 {
    margin-top: 12px;
    font-size: 30px;
  }
  .hh-game.has-keyboard .hh-level-progress {
    margin-top: 12px;
  }
  .hh-game.has-keyboard .hh-level-copy {
    display: none;
  }
  .hh-key-row {
    gap: 4px;
  }
  .hh-keyboard button {
    height: 39px;
  }
  .hh-stage {
    min-height: 210px;
  }
}
@media (max-height: 740px) {
  .hh-dialog-orbit {
    display: none;
  }
  .hh-intro-notes {
    margin: 13px 0;
  }
  .hh-example {
    margin: 12px auto 4px;
  }
  .hh-dialog-footnote {
    margin-top: 13px;
  }
  .hh-dialog {
    padding-block: 22px;
  }
  .hh-example-beam {
    height: 17px;
  }
}
@media (max-height: 620px) {
  .hh-header {
    padding-block: 9px;
  }
  .hh-stats {
    padding-top: 0;
  }
  .hh-flight-info {
    padding-top: 6px;
  }
  .hh-console {
    padding-bottom: 8px;
  }
  .hh-stage {
    min-height: 160px;
  }
  .hh-game.has-keyboard .hh-receipt {
    display: none;
  }
  .hh-keyboard button {
    height: 30px;
  }
  .hh-keyboard {
    padding-top: 4px;
  }
  .hh-stats strong {
    font-size: 17px;
  }
  .hh-game.has-keyboard .hh-flight-info {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hh-game * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
