:root {
  --ink: #243d33;
  --ink-soft: #4e6658;
  --muted: #7c8c7e;
  --green: #2b6b50;
  --mint: #dcebdd;
  --mint-soft: #edf4ea;
  --yellow: #ffd85b;
  --yellow-hi: #ffe682;
  --yellow-edge: #e0b336;
  --gold: #cf9621;
  --cream: #fffdf6;
  --cream-warm: #faf9ef;
  --line: #e2e8d9;
  --coral: #e8725a;
  --lavender: #8c6ec7;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  overscroll-behavior: none;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 232, 148, 0.28) 0%, transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(164, 212, 174, 0.28) 0%, transparent 42%),
    radial-gradient(#bccab652 0.9px, transparent 0.9px),
    #f2f5ee;
  background-size: 100% 100%, 100% 100%, 18px 18px, 100% 100%;
  font-family: var(--font);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 28px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
canvas {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

input {
  user-select: text;
  -webkit-user-select: text;
}

canvas {
  image-rendering: auto;
}

svg {
  flex-shrink: 0;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

/* ==================== 应用主骨架 ==================== */
#app-wrapper {
  width: min(1260px, 100%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

/* 局内自适应视口高度，确保顶栏 + 16:9 高清舞台 + 底部手柄一屏完整展现 */
#app-wrapper:not(.is-menu) {
  width: min(1240px, max(680px, calc((100dvh - 242px) * 16 / 9)), 100%);
  gap: 11px;
}

/* ==================== 顶部导航栏 ==================== */
#hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 6px;
}

.nailong-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
  color: var(--ink);
  padding: 0;
  transition: transform 0.2s var(--ease-spring);
}

.nailong-brand-badge:hover {
  transform: translateY(-1px);
}

.brand-avatar {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff1a6, #ffda66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 5px 14px rgba(219, 178, 55, 0.25);
  transform: rotate(-6deg);
  transition: transform 0.25s var(--ease-spring);
}

.nailong-brand-badge:hover .brand-avatar {
  transform: rotate(-2deg) scale(1.04);
}

#hud-avatar-canvas {
  width: 54px;
  height: 54px;
  transform: rotate(6deg);
  margin-top: -3px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.brand-dot {
  color: #e6ae32;
  font-size: 28px;
  line-height: 0;
}

.brand-english {
  font-size: 8.5px;
  letter-spacing: 2.8px;
  color: #6d7d69;
  font-weight: 700;
}

.header-caption {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #889684;
  margin-right: auto;
  margin-left: 16px;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== 按钮与玻璃面板 ==================== */
.ui-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s ease,
    color 0.18s ease;
  outline: 0;
  position: relative;
}

.ui-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.ui-btn:active:not(:disabled),
.ui-btn.touch-pressed {
  transform: translateY(2px) scale(0.97);
  box-shadow: none !important;
}

.ui-btn:focus-visible,
.menu-dock-btn:focus-visible,
.mode-tab:focus-visible,
.nailong-brand-badge:focus-visible {
  outline: 3px solid #75ad8f;
  outline-offset: 3px;
}

.nav-btn {
  background: transparent;
  color: #5c6d5a;
  padding: 9px 12px;
  font-size: 12.5px;
}

.nav-btn .icon {
  width: 16px;
  height: 16px;
}

.nav-btn:hover {
  background: #e5ede0;
  color: var(--green);
}

.icon-btn {
  height: 36px;
  width: 36px;
  padding: 8px;
  background: var(--cream);
  color: #5b6e5c;
  border-color: #e2e7d9;
  box-shadow: 0 2px 6px rgba(46, 74, 54, 0.05);
}

.icon-btn:hover {
  background: #e6efe1;
  border-color: #bdd1b8;
  color: var(--green);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.icon-btn[aria-pressed="true"] {
  color: #bc755c;
  background: #f4ebe0;
  border-color: #e4d4be;
}

.icon-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 1.8px;
  background: currentColor;
  transform: rotate(-45deg);
}

.nav-divider {
  height: 20px;
  width: 1px;
  background: #d9dfd0;
  margin: 0 7px;
}

.glass-panel {
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid #dfe6d6;
  border-radius: 24px;
  box-shadow:
    0 22px 65px rgba(36, 68, 48, 0.14),
    0 2px 8px rgba(36, 68, 48, 0.05);
}

.primary-btn {
  background: linear-gradient(180deg, #ffe270 0%, #ffd245 100%);
  color: #2f402a;
  border-color: #e5b737;
  box-shadow:
    0 5px 0 #dbad2e,
    0 10px 24px rgba(219, 173, 46, 0.28);
}

.primary-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffea87 0%, #ffd959 100%);
  box-shadow:
    0 6px 0 #dbad2e,
    0 14px 28px rgba(219, 173, 46, 0.36);
}

.secondary-btn {
  background: #ecf2e7;
  border-color: #d6e2cd;
  color: #3f5e44;
  box-shadow: 0 3px 0 #d2dec8;
}

.secondary-btn:hover:not(:disabled) {
  background: #e1ecda;
}

.ghost-btn {
  background: var(--cream);
  border-color: #dfe6d7;
  color: #5e6f59;
}

.ghost-btn:hover:not(:disabled) {
  background: #eef3e8;
}

/* ==================== 局内顶部仪表条 ==================== */
.hud-dashboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 18px;
  background: var(--cream);
  border: 1px solid #dfe6d6;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(42, 74, 54, 0.06);
}

.hud-left,
.hud-center {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.biome-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #edf4e7;
  border: 1px solid #d8e5ce;
  font-size: 12px;
  font-weight: 750;
  color: #2f5940;
}

.biome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4da362;
  box-shadow: 0 0 0 3px rgba(77, 163, 98, 0.22);
}

.hud-hearts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.heart-pip {
  width: 19px;
  height: 19px;
  color: #ec6d7c;
  fill: #f58896;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s;
}

.heart-pip.lost {
  color: #d6dcd0;
  fill: #e8ece2;
  transform: scale(0.84);
}

.state-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
}

.shield-tag {
  background: #def5ec;
  color: #25876b;
  border: 1px solid #bae8d7;
}

.shield-tag .icon {
  width: 13px;
  height: 13px;
}

.tier-tag {
  background: #f5f0da;
  color: #8c6d1f;
  border: 1px solid #eadba8;
  font-variant-numeric: tabular-nums;
}

.free-toggle-btn {
  padding: 7px 12px;
  font-size: 11px;
  border-radius: 10px;
  box-shadow: none;
  white-space: nowrap;
}

.ui-btn.free-toggle-btn.active,
.ui-btn.free-toggle-btn.active:hover {
  background: #2b6b50;
  border-color: #2b6b50;
  color: #fffdf7;
}

.danger-tag {
  background: #ffebe7;
  color: #c93b2b;
  border: 1px solid #f7bdb5;
  animation: pulseWarn 0.7s ease-in-out infinite alternate;
}

@keyframes pulseWarn {
  from {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(224, 72, 54, 0.35);
  }
  to {
    transform: scale(1.03);
    box-shadow: 0 0 0 5px rgba(224, 72, 54, 0);
  }
}

.countdown-badge {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 950;
  color: #2b6b50;
  background: rgba(255, 253, 246, 0.92);
  border: 4px solid #e1e8d6;
  box-shadow: 0 18px 46px rgba(34, 61, 50, 0.22);
  pointer-events: none;
  animation: popIn 0.24s var(--ease-spring);
}

.hud-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.metric-label {
  font-size: 10.5px;
  color: #889583;
  font-weight: 600;
}

.metric-val {
  font-size: 15px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.accent-gold {
  color: #cc8b18;
}

.accent-mint {
  color: #2c8a62;
}

.accent-ink {
  color: #243d33;
  font-size: 16.5px;
}

/* ==================== 主舞台与悬浮局内 HUD ==================== */
#canvas-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d7eee6;
  border-radius: 26px;
  border: 5px solid var(--cream);
  overflow: hidden;
  box-shadow:
    0 20px 56px rgba(42, 74, 54, 0.14),
    0 0 0 1px #dce4d3;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stage-overlay-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 6;
}

.energy-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 176px;
}

.meter-pill {
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid rgba(226, 232, 217, 0.95);
  border-radius: 13px;
  padding: 8px 11px;
  box-shadow: 0 6px 18px rgba(34, 61, 50, 0.1);
  text-align: left;
  width: 100%;
}

.dash-pill {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.dash-pill.ready {
  border-color: #ffd06b;
  box-shadow: 0 6px 20px rgba(235, 134, 52, 0.24);
}

.dash-pill.ready:hover {
  transform: translateY(-1px) scale(1.02);
}

.fever-pill.active {
  border-color: #ffd24d;
  animation: feverGlow 0.9s ease-in-out infinite alternate;
}

@keyframes feverGlow {
  from {
    box-shadow: 0 0 0 2px rgba(255, 212, 77, 0.35), 0 6px 20px rgba(255, 180, 50, 0.25);
  }
  to {
    box-shadow: 0 0 0 5px rgba(255, 148, 182, 0.45), 0 8px 26px rgba(255, 168, 76, 0.45);
  }
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 750;
  color: #3a5646;
}

.meter-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meter-title .icon {
  width: 13px;
  height: 13px;
  color: #e09822;
}

.dash-pill .meter-title .icon {
  color: #e36236;
}

.meter-pct {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #6a7d6c;
}

.meter-track {
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: rgba(58, 86, 70, 0.12);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.12s linear;
}

.fever-fill {
  background: linear-gradient(90deg, #ffcf48 0%, #ff8ea8 50%, #6ee0b8 100%);
}

.dash-fill {
  background: linear-gradient(90deg, #ff9947 0%, #f05a36 100%);
}

.stage-center-stack {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 56%;
}

.stage-progress-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 253, 246, 0.95);
  border: 1px solid rgba(226, 232, 217, 0.95);
  box-shadow: 0 5px 16px rgba(34, 61, 50, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: #3d5c49;
}

.stage-progress-track {
  width: 140px;
  height: 7px;
  border-radius: 99px;
  background: #e1ead9;
  overflow: hidden;
}

.stage-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6dc986, #ffd147);
  transition: width 0.15s linear;
}

.stage-toast {
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255, 253, 246, 0.96);
  border: 1px solid #e6ebd9;
  font-size: 12px;
  font-weight: 700;
  color: #2f5a42;
  box-shadow: 0 8px 22px rgba(38, 62, 53, 0.12);
  white-space: nowrap;
  animation: popIn 0.28s var(--ease-spring);
}

.buff-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.buff-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 6px 14px rgba(38, 62, 53, 0.1);
}

.chili-chip {
  background: rgba(255, 240, 232, 0.92);
  border: 1px solid #f7c2ad;
  color: #c74724;
}

.magnet-chip {
  background: rgba(235, 245, 255, 0.92);
  border: 1px solid #bad8fa;
  color: #2d66b8;
}

.pink-chip {
  background: rgba(255, 238, 245, 0.92);
  border: 1px solid #f5bfd4;
  color: #c43d70;
}

.gold-chip {
  background: rgba(255, 248, 224, 0.94);
  border: 1px solid #f2da8a;
  color: #b57c10;
}

.voice-bubble {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 15px 15px 15px 4px;
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid #e3e8d7;
  box-shadow: 0 8px 24px rgba(36, 61, 51, 0.12);
  font-size: 12px;
  font-weight: 750;
  color: #46664a;
  animation: popIn 0.25s var(--ease-spring);
}

.voice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2be38;
  box-shadow: 0 0 0 3px rgba(242, 190, 56, 0.26);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== 首页菜单态布局 ==================== */
.is-menu .hud-dashboard,
.is-menu #touch-controls,
.is-menu .stage-overlay-hud {
  display: none !important;
}

.is-menu #canvas-stage {
  aspect-ratio: auto;
  border: 1px solid #d9e3cf;
  background: var(--cream);
  box-shadow:
    0 26px 80px rgba(72, 99, 70, 0.12),
    0 4px 16px rgba(72, 99, 70, 0.05);
  isolation: isolate;
}

.is-menu #game-canvas {
  position: absolute;
  inset: 0;
}

.is-menu #modal-menu {
  position: relative;
}

.menu-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  grid-template-rows: 1fr auto;
  width: 100%;
  min-height: 642px;
  overflow: hidden;
  background: linear-gradient(112deg, #fffdf6 8%, #fafbf0 50%, #e5f0dd 100%);
}

.menu-copy {
  position: relative;
  z-index: 2;
  padding: 44px 12px 34px 54px;
}

.menu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  background: #eaf2e3;
  border: 1px solid #d9e6ce;
  border-radius: 99px;
  padding: 6px 13px;
  color: #5d7b52;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ea868;
  box-shadow: 0 0 0 3px rgba(110, 168, 104, 0.22);
  display: inline-block;
  flex-shrink: 0;
}

.game-title {
  font-size: 52px;
  letter-spacing: -2px;
  line-height: 1.15;
  font-weight: 950;
  color: #234b36;
  margin-top: 18px;
  white-space: nowrap;
}

.game-title > span {
  display: block;
  position: relative;
  color: #d9a32b;
  font-size: 40px;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

.title-spark {
  position: absolute;
  width: 24px;
  height: 24px;
  color: #e6b53c;
  top: 5px;
  margin-left: 11px;
  transform: rotate(12deg);
}

.game-subtitle {
  font-size: 13px;
  line-height: 1.88;
  color: #7d8b78;
  margin-top: 14px;
  letter-spacing: 0.3px;
}

/* 个人数据概览栏 */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 11px 16px;
  background: rgba(255, 254, 248, 0.78);
  border: 1px solid #e2e8d7;
  border-radius: 14px;
  width: fit-content;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-item b {
  font-size: 17px;
  font-weight: 850;
  color: #36593f;
  font-variant-numeric: tabular-nums;
}

.hero-stat-item span {
  font-size: 10px;
  color: #8c9884;
}

.hero-stats i {
  width: 1px;
  height: 24px;
  background: #dfe5d5;
}

/* 模式选择胶囊 */
.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(376px, 100%);
  margin-top: 18px;
  padding: 5px;
  background: #edf3e5;
  border: 1px solid #dde6d2;
  border-radius: 14px;
}

.mode-tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  color: #6b7d66;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.mode-tab b {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.mode-tab small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-tab.active {
  background: var(--cream);
  border-color: #d6e1cb;
  color: #264f39;
  box-shadow: 0 4px 12px rgba(48, 82, 56, 0.08);
}

.mode-tab:not(.active):hover {
  background: rgba(255, 253, 246, 0.55);
}

/* 昵称条 */
.nickname-bar {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 5px 6px 5px 14px;
  background: #fffefa;
  border: 1px solid #dfe5d4;
  border-radius: 12px;
  gap: 10px;
  width: min(376px, 100%);
  position: relative;
}

.nickname-bar label {
  font-size: 10.5px;
  font-weight: 650;
  color: #82907a;
  white-space: nowrap;
  border-right: 1px solid #e3e8db;
  padding-right: 11px;
}

.nickname-bar input {
  border: 0;
  outline: 0;
  background: none;
  min-width: 0;
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: #3f5c41;
  padding: 5px 0;
}

.nickname-bar:focus-within {
  border-color: #93b385;
  box-shadow: 0 0 0 3px rgba(154, 189, 138, 0.24);
}

.nickname-bar .icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: #eef3e7;
  box-shadow: none;
}

.nickname-bar .icon {
  width: 14px;
  height: 14px;
}

.nick-hint {
  font-size: 10px;
  position: absolute;
  right: 4px;
  bottom: -17px;
  color: #c96b4d;
}

/* 主 CTA */
.hero-cta-row {
  margin-top: 18px;
  width: min(376px, 100%);
}

.start-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 13px 18px;
  gap: 13px;
  text-align: left;
  border-radius: 15px;
}

.start-play {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.start-btn > span:nth-child(2) {
  font-size: 17.5px;
  letter-spacing: 0.8px;
  font-weight: 850;
}

.start-btn small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.68;
  margin-top: 3px;
}

.start-arrow {
  margin-left: auto;
  width: 22px;
  height: 22px;
  opacity: 0.72;
  transition: transform 0.2s var(--ease-spring);
}

.start-btn:hover .start-arrow {
  transform: translateX(4px);
}

.save-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9ba590;
  margin-top: 14px;
  letter-spacing: 0.2px;
}

.save-note .live-dot {
  width: 5px;
  height: 5px;
}

/* ==================== 右侧互动高清微缩景 ==================== */
.menu-art {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
}

.menu-art:active {
  cursor: grabbing;
}

.menu-art::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, #d9eac8 0%, #d3e5c266 65%, transparent 100%);
  border-radius: 50%;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.65;
}

.art-orbit {
  position: absolute;
  border: 1px dashed #b9ccb0;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 460px;
  height: 310px;
  left: 50%;
  top: 96px;
  transform: translateX(-50%) rotate(-20deg);
  opacity: 0.55;
}

.orbit-two {
  width: 390px;
  height: 410px;
  left: 50%;
  top: 32px;
  transform: translateX(-50%) rotate(28deg);
  opacity: 0.35;
}

.art-sun {
  position: absolute;
  width: 98px;
  height: 98px;
  background: radial-gradient(circle at 38% 35%, #fffce6, #f3dc84);
  border-radius: 50%;
  right: 54px;
  top: 48px;
  box-shadow:
    0 0 0 14px rgba(244, 232, 178, 0.28),
    0 0 0 30px rgba(244, 232, 178, 0.14);
  pointer-events: none;
}

.hero-speech {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 28px;
  background: #fffefa;
  border: 1px solid #e0e6d4;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 18px;
  color: #4f7245;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  transform: rotate(-6deg);
  box-shadow: 0 8px 22px rgba(72, 99, 60, 0.09);
  transition: transform 0.25s var(--ease-spring);
}

.hero-speech:hover {
  transform: rotate(-3deg) scale(1.04);
}

.hero-speech span {
  display: block;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.6px;
  color: #93a384;
  margin-top: 3px;
}

#menu-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.world-stamp {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid #e1e7d6;
  border-radius: 14px;
  padding: 10px 15px;
  min-width: 248px;
  box-shadow: 0 10px 26px rgba(58, 84, 48, 0.1);
  pointer-events: none;
}

.stamp-icon {
  background: #e7f0de;
  color: #5b8751;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-stamp small {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.8px;
  color: #9ba58d;
  margin-bottom: 3px;
  white-space: nowrap;
}

.world-stamp b {
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #466640;
  white-space: nowrap;
}

.stamp-skin-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 750;
  color: #b8841c;
  background: #fff3cb;
  border: 1px solid #f0dc96;
  border-radius: 99px;
  padding: 4px 9px;
  white-space: nowrap;
}

.art-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 7.5px;
  letter-spacing: 2px;
  color: #9fac90;
  pointer-events: none;
}

.art-caption > span {
  width: 22px;
  height: 1px;
  background: #bac7ac;
}

/* ==================== 首页底部三栏功能座 ==================== */
.menu-dock {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 254, 250, 0.72);
  border-top: 1px solid #e2e8d7;
  padding: 16px 30px;
  position: relative;
  z-index: 2;
  gap: 18px;
}

.menu-dock-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 8px 14px 8px 10px;
  color: var(--ink);
  border-radius: 14px;
  transition: background 0.2s, transform 0.2s var(--ease-spring);
}

.menu-dock-btn:hover {
  background: rgba(230, 240, 222, 0.68);
  transform: translateY(-2px);
}

.menu-dock-btn:not(:last-child) {
  border-right: 1px solid #e3e8d9;
  border-radius: 14px 0 0 14px;
}

.dock-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transform: rotate(-5deg);
  transition: transform 0.25s var(--ease-spring);
}

.menu-dock-btn:hover .dock-icon {
  transform: rotate(0deg) scale(1.06);
}

.dock-icon .icon {
  width: 20px;
  height: 20px;
  transform: rotate(5deg);
}

.mint {
  background: #e1eedb;
  color: #4f8854;
}

.peach {
  background: #f8e9ce;
  color: #bd8536;
}

.lavender {
  background: #ebe6f4;
  color: #8468ad;
}

.menu-dock-btn b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #445f46;
}

.menu-dock-btn small {
  display: block;
  font-size: 10.5px;
  color: #93a089;
  margin-top: 4px;
}

.dock-arrow {
  width: 16px;
  height: 16px;
  color: #98a98e;
  margin-left: auto;
  transition: transform 0.2s var(--ease-spring);
}

.menu-dock-btn:hover .dock-arrow {
  transform: translateX(3px);
}

/* 首页底部键盘提示 */
.menu-shell-note {
  display: none;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8e9b85;
  padding: 0 12px;
}

.is-menu .menu-shell-note {
  display: flex;
}

.menu-shell-note > span {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.menu-shell-note .icon {
  width: 14px;
  height: 14px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid #d9e0d0;
  box-shadow: 0 2px 0 #d9e0d0;
  font-size: 10px;
  font-weight: 700;
  color: #4a634b;
}

/* ==================== 弹窗通用样式 ==================== */
.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 48, 39, 0.56);
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay#modal-menu {
  padding: 0;
  background: none;
  backdrop-filter: none;
  animation: none;
}

.modal-card {
  width: min(980px, 98%);
  max-height: 94%;
  overflow-y: auto;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: #b7c8a8 transparent;
  animation: cardRise 0.26s var(--ease-spring);
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.small-card {
  width: min(410px, 94%);
  text-align: center;
  align-items: center;
  padding: 32px;
  gap: 16px;
}

.modal-badge-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #6a875d;
  background: #eaf2e3;
  border: 1px solid #d7e4cc;
  padding: 4px 12px;
  border-radius: 99px;
}

.modal-card h2 {
  color: #294f3a;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.4px;
}

.modal-sub {
  font-size: 12px;
  line-height: 1.7;
  color: #84927d;
  margin-top: 4px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e4e9db;
  padding-bottom: 16px;
  gap: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.heading-tag {
  background: #eaf1e2;
  border-radius: 6px;
  color: #6c875e;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}

.star-summary {
  font-size: 11.5px;
  font-weight: 650;
  background: #f8f2d8;
  color: #8a7b42;
  padding: 7px 13px;
  border: 1px solid #ebe0b6;
  border-radius: 10px;
  white-space: nowrap;
}

.star-summary b {
  color: #c28a18;
  font-size: 14px;
}

/* ==================== 5 章 30 关闯关地图 ==================== */
.chapters-scroll {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
}

.chapter-block {
  background: #f4f7ec;
  border: 1px solid #dfe7d4;
  border-radius: 18px;
  overflow: hidden;
}

.chapter-banner {
  padding: 13px 18px;
  color: #fffdf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chapter-banner-left small {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 1.4px;
  font-weight: 750;
  opacity: 0.9;
}

.chapter-banner-left h3 {
  font-size: 16px;
  font-weight: 850;
  margin-top: 2px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
}

.chapter-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-diff-chip,
.chapter-star-chip {
  background: rgba(255, 253, 246, 0.28);
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.level-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 14px;
}

.level-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 112px;
  padding: 11px 8px 10px;
  border-radius: 14px;
  border: 1.5px solid #dbe4ce;
  background: #fffefa;
  color: #3a5941;
  text-align: center;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.level-node.unlocked:hover {
  transform: translateY(-3px);
  border-color: #93b886;
  box-shadow: 0 8px 18px rgba(48, 82, 56, 0.11);
}

.level-node.cleared {
  background: #ecf4e0;
  border-color: #c5d9a8;
}

.level-node.current {
  border-color: #e5b737;
  background: linear-gradient(180deg, #fffdf4 0%, #fff7db 100%);
  box-shadow: 0 6px 18px rgba(224, 179, 54, 0.2);
}

.level-node.locked {
  opacity: 0.48;
  background: #ecefe4;
}

.lv-top-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  font-weight: 750;
  color: #8b9a80;
}

.lv-diff-dots {
  color: #e09638;
  letter-spacing: 0.5px;
  font-size: 9px;
}

.lv-name {
  font-size: 12px;
  font-weight: 800;
  color: #2b5039;
  line-height: 1.25;
}

.lv-meta {
  font-size: 9.5px;
  color: #829079;
  font-variant-numeric: tabular-nums;
}

.lv-stars {
  font-size: 13px;
  letter-spacing: 2px;
  color: #d9a72e;
  min-height: 16px;
}

.endless-quick-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(125deg, #275e45, #4ba373 60%, #e5b742);
  color: #fffdf7;
  flex-wrap: wrap;
}

.endless-quick-banner h3 {
  font-size: 16px;
  font-weight: 850;
}

.endless-quick-banner p {
  font-size: 11.5px;
  opacity: 0.9;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .level-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .level-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== 奶龙装扮工坊卡片 ==================== */
.skins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skin-card {
  background: #fffefa;
  border: 1.5px solid #e1e7d7;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}

.skin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(48, 82, 56, 0.1);
}

.skin-card.equipped {
  border-color: #e4b63b;
  background: linear-gradient(180deg, #fffdf4 0%, #fff8e2 100%);
  box-shadow: 0 8px 24px rgba(224, 179, 54, 0.18);
}

.skin-stage {
  background: radial-gradient(ellipse at 50% 64%, #e6f0da, #f3f6ec);
  border-radius: 13px;
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.skin-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 253, 246, 0.9);
  color: #5d7854;
  border: 1px solid #dfe6d5;
}

.skin-preview-canvas {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.skin-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: #2f543e;
}

.skin-card p {
  font-size: 11px;
  color: #82907b;
  line-height: 1.6;
  flex: 1;
}

.skin-action-btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 11px;
}

/* ==================== 伙伴与道具图鉴 ==================== */
.codex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.codex-card {
  background: #fffefa;
  border: 1px solid #e2e7d8;
  border-radius: 17px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.codex-visuals {
  background: radial-gradient(ellipse at 40% 62%, #e5efda, #f2f5eb);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 13px;
}

.codex-canvas {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.codex-ref-img {
  width: 52px;
  height: 62px;
  object-fit: cover;
  border-radius: 9px;
  border: 3px solid #fffdf8;
  box-shadow: 0 4px 12px rgba(58, 84, 48, 0.14);
  transform: rotate(6deg);
  align-self: flex-end;
}

.codex-card h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #365941;
}

.codex-card p {
  font-size: 11px;
  color: #7d8b77;
  line-height: 1.75;
}

.codex-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px dashed #dde4d2;
}

.codex-section-heading h3 {
  font-size: 16px;
  font-weight: 850;
  color: #2f553f;
}

.codex-section-heading p {
  font-size: 11.5px;
  color: #889681;
}

.combat-codex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.combat-card {
  background: #f6f8ef;
  border: 1px solid #e1e7d7;
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.combat-card canvas {
  width: 100%;
  height: 92px;
  object-fit: contain;
  background: #fffdf7;
  border-radius: 10px;
}

.combat-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: #385842;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.combat-card h3 span {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #e6efde;
  color: #5b7f53;
}

.combat-card p {
  font-size: 10.5px;
  color: #7e8d77;
  line-height: 1.6;
}

/* ==================== 排行榜 ==================== */
.leaderboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  color: #6b7d65;
  background: #eff3e7;
  border-color: #e0e7d6;
  padding: 8px 15px;
  font-size: 12px;
}

.tab-btn.active {
  color: #fffdf7;
  background: #2f6c50;
  border-color: #2f6c50;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e3e8da;
  background: #fffefa;
}

.clean-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  color: #4f6350;
}

.clean-table th,
.clean-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid #eef1e6;
  white-space: nowrap;
}

.clean-table th {
  background: #f2f5ea;
  color: #82907a;
  font-size: 11px;
  font-weight: 700;
}

.clean-table tbody tr:hover {
  background: #f7f9f0;
}

.clean-table tbody tr.is-self {
  background: #fff9e3;
  font-weight: 750;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-weight: 850;
  font-size: 12px;
  background: #edf2e5;
  color: #61755b;
}

.rank-pill.r1 {
  background: #ffe070;
  color: #7a4f0a;
}

.rank-pill.r2 {
  background: #e2eaf0;
  color: #465d70;
}

.rank-pill.r3 {
  background: #f5d8bc;
  color: #854d21;
}

.empty-row {
  text-align: center !important;
  padding: 42px !important;
  color: #93a089;
  line-height: 1.9;
}

/* ==================== 结算战报弹窗 ==================== */
.result-card {
  width: min(490px, 95%);
  padding: 28px 30px;
  gap: 18px;
}

.result-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rank-medal {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 950;
  color: #704909;
  background: linear-gradient(145deg, #fff1a1, #ffca3a);
  border: 3px solid #fffdf6;
  box-shadow:
    0 0 0 2px #ecc24b,
    0 10px 24px rgba(224, 173, 46, 0.3);
  transform: rotate(-5deg);
}

.result-headline {
  min-width: 0;
}

.result-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.record-pill {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.7px;
  color: #fffdf8;
  background: linear-gradient(90deg, #eb7444, #f2ae2e);
  padding: 3px 10px;
  border-radius: 99px;
}

.result-stars-inline {
  font-size: 18px;
  letter-spacing: 3px;
  color: #e0ab2b;
}

.result-stats-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #f2f5ea;
  border: 1px solid #e1e8d6;
  border-radius: 16px;
  padding: 18px 20px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-cell span {
  font-size: 11px;
  color: #85937e;
}

.stat-cell b {
  font-size: 22px;
  font-weight: 850;
  color: #2e563f;
  font-variant-numeric: tabular-nums;
}

.result-bank-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 15px;
  border-radius: 12px;
  background: #fff9e5;
  border: 1px solid #efe0ad;
  font-size: 12px;
  color: #7c682c;
}

.result-bank-bar b {
  color: #c28715;
  font-size: 14px;
}

.link-btn {
  border: 0;
  background: none;
  color: #2b6b50;
  font-weight: 750;
  font-size: 12px;
}

.link-btn:hover {
  text-decoration: underline;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-actions .primary-btn {
  grid-column: 1 / -1;
  min-height: 46px;
  font-size: 15px;
}

.result-actions .ghost-btn:only-of-type,
.result-actions .secondary-btn.hidden + .ghost-btn {
  grid-column: 1 / -1;
}

.menu-btn-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.menu-btn-col .ui-btn {
  min-height: 44px;
}

/* ==================== 局内底部控制栏 ==================== */
#touch-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  gap: 12px;
  border-radius: 18px;
}

.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pad-btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
}

.pad-btn small,
.dash-pad-btn small {
  font-weight: 550;
  opacity: 0.72;
  font-size: 11px;
}

.dash-pad-btn {
  min-height: 44px;
  padding: 10px 16px;
  background: #fff1e6;
  border: 1px solid #f5cab0;
  color: #c7542a;
  box-shadow: 0 3px 0 #e8baa0;
}

.dash-pad-btn.ready {
  background: linear-gradient(180deg, #ff9966, #eb6a40);
  border-color: #d9572e;
  color: #fffdf8;
  box-shadow: 0 4px 0 #bf4822, 0 8px 18px rgba(235, 106, 64, 0.28);
}

.status-hint {
  font-size: 12px;
  color: #7c8a77;
  text-align: center;
  flex: 1;
}

.status-hint b {
  color: #2f5b42;
  font-variant-numeric: tabular-nums;
}

/* ==================== 响应式自适应 ==================== */
@media (max-width: 1024px) {
  body {
    padding: 14px 16px;
  }
  .header-caption {
    display: none;
  }
  .menu-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .menu-copy {
    padding: 30px 26px 22px;
  }
  .menu-art {
    grid-column: 1;
    grid-row: 2;
    min-height: 360px;
  }
  .menu-dock {
    grid-template-columns: 1fr;
    padding: 14px 20px;
    gap: 8px;
  }
  .menu-dock-btn:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #e3e8d9;
    border-radius: 12px 12px 0 0;
  }
  .skins-grid,
  .codex-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .combat-codex-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    padding: 10px;
    align-items: flex-start;
  }
  .game-title {
    font-size: 38px;
  }
  .game-title > span {
    font-size: 29px;
  }
  .desktop-break {
    display: none;
  }
  .nav-btn span {
    display: none;
  }
  .status-hint {
    display: none;
  }
  .energy-stack {
    width: 140px;
  }
  .skins-grid,
  .codex-grid,
  .combat-codex-grid {
    grid-template-columns: 1fr;
  }
  #touch-controls {
    padding: 9px 10px;
  }
  .pad-btn small,
  .dash-pad-btn small {
    display: none;
  }
}
