/* =========================================================================
   星语打字乐园 · 响应式
   ========================================================================= */

@media (min-width: 1101px) {
  .wardrobe-preview.panel {
    position: sticky;
    top: 78px;
  }
}

@media (max-width: 1120px) {
  .landing-main {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .hero-panel {
    padding: 38px 32px 30px;
    min-height: 520px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 4.6vw, 52px);
  }

  .park-hero {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .pasture-hero {
    grid-template-columns: 170px minmax(0, 1fr) 190px;
  }

  .arcade-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 1000px) {
  .hud {
    gap: 10px;
    padding: 9px 18px;
  }

  .hud-nav-link {
    padding: 6px 8px;
    font-size: 12px;
  }

  .hud-pill {
    padding: 5px 9px;
  }

  .landing-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .side-manifesto {
    grid-column: 1 / -1;
  }

  .membership-zone {
    align-self: stretch;
  }

  .hero-panel {
    min-height: 0;
  }

  .park-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .park-welcome {
    padding-top: 0;
  }

  .quest-card {
    max-width: 520px;
  }

  .park-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .park-lower {
    grid-template-columns: 1fr;
  }

  .custom-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .wardrobe-grid {
    grid-template-columns: 1fr;
  }

  .wardrobe-preview {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .preview-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .preview-stage {
    grid-row: 2 / 5;
    height: 330px;
  }

  .preview-actions {
    margin: 0;
    align-self: end;
  }

  .preview-summary {
    align-self: start;
  }

  .arcade-layout {
    grid-template-columns: 1fr;
  }

  .arcade-aside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sky-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .sky-hero-art {
    order: -1;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .pasture-hero {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .pasture-legend {
    grid-column: 1 / -1;
  }

  .pasture-legend p {
    max-width: 62ch;
  }

  .sky-locked-hero {
    gap: 20px;
    padding: 24px;
  }

  .sky-locked-visual {
    width: 200px;
    height: 200px;
  }

  .rates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 挑战 */
  .ch-main {
    grid-template-columns: 1fr;
  }

  .ch-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .aside-reward {
    grid-column: 1 / -1;
  }

  .guide-mini,
  .next-key-panel {
    height: 100%;
  }

  .next-key-display kbd {
    width: 58px;
    height: 58px;
    font-size: 27px;
  }
}

@media (max-width: 860px) {
  .landing-top {
    padding: 18px 18px 8px;
  }

  .landing-main {
    padding: 6px 18px 24px;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 28px 26px;
    gap: 20px;
  }

  .hero-copy {
    justify-content: flex-start;
  }

  .hero-visual {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-scene {
    border-radius: 22px;
  }

  .hero-avatar {
    width: 32%;
  }

  .page-shell,
  .park-main {
    padding: 22px 20px 40px;
  }

  .park-balloon {
    transform: scale(0.78);
    transform-origin: top right;
    right: 2%;
    top: 128px;
  }

  .park-lower {
    margin-top: 20px;
  }

  .pasture-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 20px;
  }

  .pasture-hero-copy .eyebrow {
    justify-content: center;
  }

  .pasture-stats,
  .pasture-actions {
    justify-content: center;
  }

  .pasture-legend {
    text-align: left;
    width: 100%;
  }

  .pasture-avatar {
    width: 150px;
    height: 172px;
  }

  .pasture-rules {
    grid-template-columns: 1fr;
  }

  .sky-locked-hero {
    flex-direction: column;
    text-align: center;
  }

  .sky-locked-copy .eyebrow {
    justify-content: center;
  }

  .sky-locked-actions,
  .sky-locked-hero .sky-locked-keys {
    justify-content: center;
  }

  .sky-locked-visual {
    height: 160px;
  }

  .locked-gate {
    font-size: 70px;
  }

  .sky-locked-tips {
    grid-template-columns: 1fr;
  }

  .sky-progress {
    flex-direction: column;
    text-align: center;
  }

  .sky-progress-track {
    text-align: left;
  }

  .sky-guardian-grid,
  .sky-trial-grid {
    grid-template-columns: 1fr;
  }

  .settings-profile-top {
    gap: 14px;
  }

  .settings-avatar {
    width: 108px;
    height: 124px;
  }

  .arcade-hero .boxes-hero-art {
    display: none;
  }

  .boxes-hero {
    padding: 22px 24px;
  }

  .boxes-hero-art {
    width: 190px;
    height: 170px;
  }

  .big-gift {
    font-size: 74px;
  }

  .tour-card {
    right: 20px;
    bottom: 20px;
  }

  .tour-flyer {
    width: 140px;
    margin-left: -70px;
  }

  .tour-avatar {
    width: 108px;
  }

  .tour-wings {
    width: 170px;
    margin-left: -85px;
    height: 78px;
  }

  /* 挑战 */
  .ch-header {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .ch-header-actions {
    width: calc(100% - 54px);
    margin-left: 55px;
    justify-content: flex-end;
  }

  .ch-statsbar {
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ch-statsbar::-webkit-scrollbar {
    display: none;
  }

  .ch-aside {
    grid-template-columns: 1fr;
  }

  .aside-reward {
    display: none;
  }

  .guide-mini {
    display: none;
  }

  .next-key-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 13px;
    text-align: left;
  }

  .next-ime-panel {
    display: none;
  }

  .next-key-panel .aside-kicker {
    flex-shrink: 0;
    font-size: 9px;
  }

  .next-key-display {
    margin: 0;
  }

  .next-key-display kbd {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 11px;
    box-shadow: 0 3px 0 var(--line);
  }

  .next-finger {
    margin-left: auto;
    text-align: right;
  }

  .hands {
    gap: 20px;
  }

  .tower-stage {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px;
    min-height: 330px;
    padding: 12px;
  }

  .tower-copy h2 {
    font-size: 23px;
  }

  .tower-copy > p {
    font-size: 11px;
  }

  .ch-stage {
    padding: 11px;
  }

  .target-scroll {
    max-height: 205px;
  }

  .target-text {
    font-size: 21px;
  }

  .chinese-context {
    max-height: 96px;
  }
}

@media (max-width: 720px) {
  .hud {
    gap: 7px;
    padding: 8px 12px;
  }

  .brand-text {
    display: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .hud-nav {
    gap: 0;
  }

  .hud-nav-link {
    padding: 6px 7px;
    font-size: 11.5px;
  }

  .hud-nav-link span {
    font-size: 13px;
  }

  .hud-name {
    display: none;
  }

  .hud-avatar {
    padding: 2px;
    gap: 0;
  }

  .mini-avatar {
    width: 31px;
    height: 31px;
  }

  .member-badge {
    right: -2px;
    top: -7px;
    font-size: 8px;
  }

  .hud-pill {
    gap: 3px;
    padding: 4px 8px;
  }

  .hud-pill b {
    font-size: 11px;
  }

  .help-btn {
    width: 32px;
    height: 32px;
  }

  .landing-top-actions .mini-link:first-child {
    display: none;
  }

  .landing-footer {
    padding: 16px 18px 22px;
  }

  .landing-side {
    grid-template-columns: 1fr;
  }

  .landing-side .side-manifesto {
    grid-column: auto;
  }

  .hero-panel {
    padding: 24px 20px 22px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(31px, 8vw, 42px);
    margin: 10px 0 12px;
  }

  .hero-lede {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .hero-actions {
    margin: 18px 0 14px;
    gap: 8px;
  }

  .hero-actions .btn {
    padding: 10px 17px;
    font-size: 13px;
  }

  .hero-tags span {
    font-size: 10px;
  }

  .hero-float-letter {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .hero-float-letter.fl-star {
    font-size: 20px;
  }

  .hero-caption {
    font-size: 10px;
  }

  .profile-card {
    padding: 16px;
  }

  .landing-main {
    padding: 6px 14px 20px;
  }

  .landing-top {
    padding: 14px 14px 6px;
  }

  .page-heading h1 {
    font-size: clamp(27px, 7vw, 36px);
  }

  .page-heading p {
    font-size: 12.5px;
  }

  .page-shell,
  .park-main {
    padding: 18px 14px 34px;
  }

  .park-welcome h1 {
    font-size: clamp(28px, 7vw, 38px);
  }

  .park-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }

  .place-art {
    height: 156px;
  }

  .park-balloon {
    display: none;
  }

  .study-tabs {
    gap: 6px;
  }

  .study-tab {
    min-width: 116px;
    padding: 8px 11px;
  }

  .study-tab-icon {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .level-guide {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .study-section-head {
    align-items: flex-start;
    gap: 10px;
  }

  .study-section-title {
    gap: 10px;
  }

  .study-section-icon {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .study-section-title h2 {
    font-size: 22px;
  }

  .pack-grid {
    grid-template-columns: 1fr;
  }

  .pack-card {
    padding: 16px;
  }

  .study-tip-strip,
  .boxes-tip,
  .pasture-tip,
  .wardrobe-tip,
  .sky-tip {
    padding: 12px 14px;
    font-size: 11.5px;
  }

  .sky-locked-panel {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }

  .sky-locked-art {
    width: 88px;
    height: 88px;
    font-size: 42px;
  }

  .sky-locked-panel h2 {
    font-size: 21px;
  }

  .sky-locked-keys,
  .sky-locked-actions {
    justify-content: center;
  }

  .boxes-hero {
    padding: 20px;
  }

  .boxes-hero-art {
    display: none;
  }

  .boxes-hero-copy h2 {
    font-size: 24px;
  }

  .boxes-hero-stats {
    gap: 14px;
  }

  .box-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .boxes-rates {
    padding: 18px;
  }

  .rates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .wardrobe-preview {
    display: block;
  }

  .sky-moon,
  .wardrobe-moon,
  .sky-star {
    display: none;
  }

  .preview-stage {
    height: 310px;
    margin: 8px 0;
  }

  .preview-actions {
    margin: 10px 0;
  }

  .preview-summary {
    margin-top: 4px;
  }

  .slot-tab {
    padding: 6px 9px;
  }

  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }

  .item-swatch,
  .pet-swatch {
    height: 54px;
  }

  .settings-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-profile {
    padding: 18px;
  }

  .settings-panel {
    padding: 18px;
  }

  .settings-profile-top {
    align-items: flex-start;
  }

  .settings-identity h2 {
    font-size: 21px;
  }

  .keypack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .volume-control input[type="range"] {
    width: 86px;
  }

  .arcade-aside {
    grid-template-columns: 1fr;
  }

  .arcade-stage {
    min-height: 560px;
  }

  .arcade-field {
    min-height: 330px;
  }

  .game-stat b {
    font-size: 19px;
  }

  .game-stat span {
    font-size: 8.5px;
  }

  .arcade-typing {
    padding: 9px 11px;
  }

  .typing-label {
    display: none;
  }

  .intro-card {
    padding: 22px 20px 18px;
  }

  .intro-card h2 {
    font-size: 23px;
  }

  .intro-steps span {
    font-size: 8.5px;
  }

  .arcade-result-card {
    padding: 22px 18px 18px;
  }

  .result-stats {
    gap: 5px;
  }

  .result-stats b {
    font-size: 17px;
  }

  .result-reward {
    font-size: 10px;
    padding: 4px 9px;
  }

  .sky-hero {
    padding: 14px 16px;
  }

  .sky-progress {
    padding: 16px;
    gap: 14px;
  }

  .sky-section-head h2 {
    font-size: 22px;
  }

  .sky-guardian {
    flex-wrap: wrap;
  }

  .sky-guardian .btn {
    width: 100%;
    margin-top: 2px;
  }

  .sky-locked-tips {
    margin-top: 14px;
  }

  .settings-avatar {
    width: 92px;
    height: 108px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-panel {
    padding: 20px 18px 16px;
    max-height: 92vh;
  }

  .modal-head h2 {
    font-size: 21px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .pet-modal-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .secret-grid {
    gap: 6px;
  }

  .secret-door {
    padding: 10px 5px 8px;
  }

  .secret-door-arch {
    width: 44px;
    height: 50px;
    font-size: 20px;
  }

  .secret-door b {
    font-size: 11px;
  }

  .secret-door small {
    font-size: 8.5px;
  }

  .tour-card {
    left: 18px;
    right: 18px;
    bottom: 16px;
    width: auto;
    padding: 20px 20px 15px;
  }

  .tour-flyer {
    width: 118px;
    margin-left: -59px;
  }

  .tour-avatar {
    width: 92px;
  }

  .tour-wings {
    width: 150px;
    margin-left: -75px;
    height: 68px;
    top: 26px;
  }

  .door-banner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .door-banner-cta {
    margin-left: 0;
  }

  .door-banner-art i {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  /* 挑战 */
  .challenge-screen {
    padding: 10px 10px 20px;
  }

  .ch-heading h1 {
    font-size: 17px;
    white-space: normal;
  }

  .ch-heading p {
    display: none;
  }

  .ch-cat {
    font-size: 8.5px;
  }

  .ch-header-actions {
    width: calc(100% - 48px);
    margin-left: 48px;
  }

  .ch-back {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .ch-stat b {
    font-size: 14px;
  }

  .ch-stat i {
    display: none;
  }

  .ch-statsbar {
    gap: 10px;
    padding: 7px 11px;
    margin-top: 8px;
  }

  .ch-stage {
    padding: 9px;
    border-radius: 16px;
  }

  .ch-main {
    margin-top: 9px;
    gap: 9px;
  }

  .target-text {
    font-size: 18.5px;
    line-height: 1.7;
  }

  .target-text.is-pinyin {
    font-size: 16px;
  }

  .target-text.is-code {
    font-size: 13.5px;
  }

  .target-scroll {
    max-height: 210px;
  }

  .target-card {
    padding: 9px 11px;
  }

  .chinese-context {
    max-height: 86px;
  }

  .verse-line .verse-cn {
    font-size: 11px;
  }

  .verse-line .verse-py {
    font-size: 9px;
  }

  .ch-keyboard-zone {
    margin-top: 8px;
    padding: 7px;
    border-radius: 14px;
  }

  .hands {
    display: none;
  }

  .keyboard {
    min-width: 615px;
  }

  .vk-key {
    height: 32px;
    font-size: 10px;
    border-radius: 6px;
  }

  .keyboard-note {
    font-size: 8.5px;
  }

  .tower-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 0;
    padding: 12px;
  }

  .tower-wrap {
    width: 138px;
  }

  .tower-body {
    width: 108px;
  }

  .tower-window {
    height: 28px;
    font-size: 11px;
  }

  .tower-roof {
    width: 124px;
    height: 42px;
  }

  .tower-copy > p {
    display: none;
  }

  .tower-copy h2 {
    font-size: 19px;
    margin: 3px 0;
  }

  .tower-count {
    justify-content: center;
    margin: 6px 0;
  }

  .tower-count b {
    font-size: 30px;
  }

  .tower-next-letters {
    justify-content: center;
    margin-bottom: 4px;
  }

  .tower-next-letters kbd {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .tower-moon {
    width: 40px;
    height: 40px;
    top: 14px;
    left: 16px;
  }

  .next-finger {
    display: none;
  }

  .next-key-panel {
    justify-content: center;
  }

  .next-key-panel .aside-kicker {
    display: none;
  }

  .ch-ime-zone {
    margin-top: 8px;
    padding: 10px 12px;
  }

  .ime-textarea {
    min-height: 80px;
    font-size: 16px;
  }

  .ime-head span:last-child {
    display: none;
  }

  .ready-card {
    padding: 22px 18px 16px;
    max-height: 94vh;
    overflow-y: auto;
  }

  .ready-preview {
    margin: 10px 0;
  }

  .result-card {
    padding: 20px 16px 16px;
    max-height: 94vh;
    overflow-y: auto;
  }

  .result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 11px 0;
  }

  .result-card .result-rewards {
    margin-bottom: 12px;
  }

  .challenge-loading,
  .challenge-error {
    min-height: 100dvh;
    padding: 16px;
  }

  .error-card {
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  .landing-top-actions .mini-link {
    font-size: 10.5px;
    padding: 6px 10px;
  }

  .hero-panel {
    padding: 20px 16px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8.6vw, 36px);
  }

  .hero-lede {
    font-size: 12.5px;
  }

  .hero-visual {
    margin-top: 2px;
  }

  .hero-float-letter.fl-a {
    left: 42%;
  }

  .profile-stats b {
    font-size: 16px;
  }

  .tier-grid {
    gap: 7px;
  }

  .tier-card {
    padding: 11px;
  }

  .landing-footer {
    font-size: 10px;
  }

  .hud {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 8px 12px 6px;
  }

  .hud-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow: visible;
  }

  .hud-nav-link {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 5px 0 4px;
  }

  .hud-player {
    margin-left: auto;
  }

  .hud-nav-link b {
    display: block;
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .hud-nav-link span {
    font-size: 16px;
    line-height: 1.2;
  }

  .hud-keys {
    display: none;
  }

  .hud-pill b {
    font-size: 10.5px;
  }

  .hud-player {
    gap: 5px;
  }

  .park-grid,
  .box-grid,
  .pet-grid {
    grid-template-columns: 1fr;
  }

  .park-chips {
    gap: 5px;
  }

  .park-chip {
    font-size: 10.5px;
    padding: 5px 9px;
  }

  .quest-card {
    padding: 14px;
  }

  .place-art {
    height: 150px;
  }

  .park-lower {
    margin-top: 16px;
  }

  .study-tab {
    min-width: 106px;
  }

  .study-tab-copy b {
    font-size: 12px;
  }

  .study-section-title p {
    display: none;
  }

  .custom-form-foot {
    flex-wrap: wrap;
  }

  .custom-row {
    align-items: flex-start;
  }

  .custom-row-actions {
    flex-direction: row;
  }

  .sky-locked-panel > div {
    min-width: 0;
  }

  .boxes-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .rates-grid {
    gap: 6px;
  }

  .rates-grid > div {
    padding: 9px 7px;
  }

  .rates-grid b {
    font-size: 19px;
  }

  .box-card {
    padding: 16px;
  }

  .preview-stage {
    height: 280px;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .settings-profile-top .eyebrow {
    justify-content: center;
  }

  .settings-identity h2 {
    justify-content: center;
  }

  .settings-badges {
    justify-content: center;
  }

  .settings-xp {
    text-align: left;
  }

  .settings-profile-foot {
    justify-content: center;
    text-align: center;
  }

  .settings-inventory {
    justify-content: center;
  }

  .setting-row {
    gap: 8px;
  }

  .volume-control input[type="range"] {
    width: 72px;
  }

  .plan-bonus {
    font-size: 8.5px;
  }

  .arcade-layout {
    gap: 10px;
  }

  .arcade-screen .page-heading {
    margin-bottom: 2px;
  }

  .arcade-stage {
    min-height: 520px;
    border-radius: 22px;
  }

  .arcade-game-hud {
    padding: 9px 8px;
  }

  .game-stat {
    padding: 3px 2px;
  }

  .game-stat b {
    font-size: 17px;
  }

  .game-stat span {
    font-size: 7.5px;
  }

  .game-stat:last-child {
    display: none;
  }

  .arcade-game-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .arcade-field {
    min-height: 300px;
  }

  .meteor-word {
    font-size: 12px;
    padding: 2px 7px;
    border-width: 1.5px;
  }

  .meteor-rock {
    font-size: 21px;
  }

  .typing-buffer {
    font-size: 16px;
    min-height: 34px;
  }

  .arcade-cannon {
    font-size: 30px;
  }

  .intro-steps {
    gap: 5px;
  }

  .intro-steps > div {
    padding: 7px 4px;
  }

  .intro-steps span {
    font-size: 8px;
  }

  .arcade-result-card {
    padding: 18px 14px 14px;
  }

  .result-reward {
    font-size: 9.5px;
  }

  .result-buttons .btn {
    font-size: 12px;
    padding: 8px 13px;
  }

  .sky-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sky-progress-pet {
    width: 110px;
  }

  .sky-section-head {
    gap: 6px;
  }

  .sky-guardian {
    padding: 13px;
  }

  .sky-guardian-emoji {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }

  .sky-locked-hero {
    padding: 20px 16px;
  }

  .sky-locked-actions .btn {
    width: 100%;
  }

  .pasture-avatar {
    width: 136px;
    height: 154px;
  }

  .pasture-hero-copy h2 {
    font-size: 22px;
  }

  .pasture-stats {
    gap: 12px;
  }

  .pasture-stats > div b {
    font-size: 17px;
  }

  .pet-card {
    padding: 14px;
  }

  .modal-actions .btn {
    font-size: 12px;
    padding: 8px 13px;
  }

  .secret-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .secret-door small {
    display: none;
  }

  .door-banner-copy small {
    white-space: normal;
  }

  .tour-card h2 {
    font-size: 21px;
  }

  .tour-card > p {
    font-size: 12px;
  }

  .tour-actions {
    flex-wrap: wrap;
  }

  .tour-flyer {
    width: 104px;
    margin-left: -52px;
  }

  .tour-avatar {
    width: 82px;
  }

  /* 挑战 */
  .ch-header-actions .ch-exit-text {
    display: none;
  }

  .btn-hint {
    padding: 6px 10px;
    font-size: 11px;
  }

  .ch-progress {
    flex-basis: 100%;
  }

  .ch-statsbar {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .ch-stat span {
    font-size: 8px;
  }

  .ch-stat b {
    font-size: 13px;
  }

  .target-text {
    font-size: 17.5px;
  }

  .target-scroll {
    max-height: 180px;
  }

  .chinese-context {
    max-height: 72px;
  }

  .ch-keyboard-zone {
    padding: 6px 5px;
  }

  .keyboard {
    min-width: 580px;
  }

  .vk-key {
    height: 30px;
    font-size: 9.5px;
  }

  .next-key-panel {
    gap: 8px;
  }

  .next-key-display kbd {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .next-finger {
    font-size: 9px;
    max-width: 45%;
  }

  .tower-window {
    height: 25px;
  }

  .tower-body {
    width: 100px;
    padding: 8px 8px 0;
  }

  .tower-roof {
    width: 114px;
    height: 38px;
  }

  .tower-wrap {
    width: 126px;
  }

  .tower-base {
    width: 126px;
  }

  .tower-count b {
    font-size: 26px;
  }

  .ready-title-row h2 {
    font-size: 22px;
  }

  .ready-tips {
    font-size: 10.5px;
  }

  .result-stats {
    gap: 4px;
  }

  .result-stats b {
    font-size: 16px;
  }

  .result-actions .btn {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 380px) {
  .hud-nav-link span {
    font-size: 14px;
  }

  .hud-pill {
    padding: 3px 6px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .item-grid {
    grid-template-columns: 1fr 1fr;
  }

  .keyboard {
    min-width: 550px;
  }

  .secret-grid {
    grid-template-columns: 1fr;
  }

  .secret-door {
    flex-direction: row;
    text-align: left;
    gap: 8px;
  }

  .secret-door-arch {
    flex-shrink: 0;
  }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
