/* style.css — 割草！Mow! 糖果花园软胶机台 */
/* 设计红线：无四角散落按钮、无右侧 SaaS 卡片集群、沉浸环境背景、移动端底部广告安全留白 */

:root {
  --cream: #fff6e8;
  --cream-2: #ffe9c9;
  --wood: #8a5a3b;
  --wood-dark: #6b4428;
  --green: #5da04a;
  --green-dark: #3d7a38;
  --pollen: #ffd34d;
  --rose: #ff7f8a;
  --ink: #3a2a20;
  --panel-w: 236px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(255, 246, 224, 0.5), transparent 60%),
    radial-gradient(1000px 640px at 108% 18%, rgba(140, 230, 120, 0.4), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 211, 77, 0.25), transparent 60%),
    linear-gradient(160deg, #9ed28a 0%, #b7e08a 42%, #dcefa8 100%);
  background-attachment: fixed;
  min-height: 100%;
}

#game-app {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------------- 顶部一体化状态条（拒绝四角散落） ---------------- */

#stage-bar {
  position: relative;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--cream) 0%, #f4e3c6 100%);
  border: 2px solid rgba(138, 90, 59, 0.35);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    0 6px 18px rgba(50, 90, 40, 0.22);
}

#app-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  letter-spacing: 1px;
}

#app-title-main {
  font-weight: 800;
  color: var(--green-dark);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

#app-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--wood);
  opacity: 0.85;
}

.stage-actions {
  display: flex;
  gap: 8px;
}

.bar-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf6 0%, #f3e0be 100%);
  border: 2px solid rgba(138, 90, 59, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 3px 0 var(--wood-dark),
    0 5px 10px rgba(60, 40, 20, 0.18);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  touch-action: manipulation;
}

.bar-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 4px 0 var(--wood-dark),
    0 7px 14px rgba(60, 40, 20, 0.2);
}

.bar-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(90, 60, 30, 0.35),
    0 1px 0 var(--wood-dark);
}

.bar-glyph {
  font-size: 15px;
  margin-right: 4px;
}

/* ---------------- 机台三栏骨架 ---------------- */

#stage-core {
  display: grid;
  grid-template-columns: var(--panel-w) minmax(0, 1fr) var(--panel-w);
  gap: 14px;
  align-items: stretch;
}

.wing {
  background: linear-gradient(180deg, var(--cream) 0%, #f6e7cb 100%);
  border: 2px solid rgba(138, 90, 59, 0.4);
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 8px 22px rgba(50, 90, 40, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.wing-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--wood-dark);
  letter-spacing: 2px;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(138, 90, 59, 0.3);
}

.wing-emoji {
  font-size: 17px;
}

.plaque-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 250, 238, 0.75);
  border: 1.5px solid rgba(138, 90, 59, 0.22);
  border-radius: 14px;
  padding: 10px;
}

.plaque-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--wood);
  text-transform: uppercase;
}

.plaque-value {
  font-size: 18px;
  color: var(--ink);
}

.plaque-value-lg {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--green-dark);
}

/* 构筑清单 */

.loadout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 12px;
}

.loadout-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.loadout-icon {
  font-size: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

.loadout-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loadout-level {
  font-weight: 800;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.loadout-empty {
  color: rgba(58, 42, 32, 0.4);
  justify-content: center !important;
}

.evolved-tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #ffb84d, #f2941f);
  border-radius: 999px;
  padding: 1px 7px;
  flex-shrink: 0;
}

.recipe-hint {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--green-dark);
  word-break: break-word;
}

.wing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hint-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(58, 42, 32, 0.6);
}

/* 实体按键质感 */

.key-btn,
.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf6 0%, #f1dcb8 100%);
  border: 2px solid rgba(138, 90, 59, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    0 3px 0 var(--wood-dark),
    0 6px 12px rgba(60, 40, 20, 0.16);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  touch-action: manipulation;
  user-select: none;
}

.key-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.key-btn:active,
.btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(90, 60, 30, 0.35),
    0 1px 0 var(--wood-dark);
}

.key-primary,
.btn-primary {
  background: linear-gradient(180deg, #ffd97a 0%, #f5a93c 100%);
  border-color: rgba(150, 100, 30, 0.6);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    0 3px 0 #a86a1e,
    0 6px 12px rgba(140, 90, 20, 0.28);
}

/* ---------------- 中央花田舞台 ---------------- */

#arena {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#meadow-bezel {
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(160deg, #b07a45 0%, #8a5a3b 55%, #6b4428 100%);
  box-shadow:
    inset 0 3px 8px rgba(40, 20, 5, 0.5),
    0 12px 30px rgba(50, 90, 40, 0.3);
  border: 3px solid rgba(255, 246, 224, 0.35);
}

#stage-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #cdeab0;
  touch-action: none;
}

#toast {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translate(-50%, -30px);
  background: rgba(58, 42, 32, 0.88);
  color: #fff6e8;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 30;
  max-width: 88%;
  text-align: center;
}

#toast.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------------- 右翼仪表 ---------------- */

.gauge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gauge {
  background: rgba(255, 250, 238, 0.75);
  border: 1.5px solid rgba(138, 90, 59, 0.22);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gauge-value {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--green-dark);
}

.meter-track {
  position: relative;
  height: 13px;
  border-radius: 999px;
  background: rgba(138, 90, 59, 0.22);
  box-shadow: inset 0 2px 4px rgba(90, 60, 30, 0.25);
  overflow: hidden;
}

.meter-track i {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 0%;
  border-radius: 999px;
  transition: width 0.12s linear;
}

.hp-track i {
  background: linear-gradient(90deg, #ff9d6b, #ff7f8a);
  box-shadow: 0 0 8px rgba(255, 127, 138, 0.7);
}

.mow-track i {
  background: linear-gradient(90deg, #ffe173, #ffb84d);
  box-shadow: 0 0 8px rgba(255, 211, 77, 0.8);
}

.xp-track i {
  background: linear-gradient(90deg, #a5e07e, #5fc46a);
  box-shadow: 0 0 8px rgba(95, 196, 106, 0.7);
}

.mow-track.is-full i {
  animation: mowPulse 0.8s ease-in-out infinite;
}

.mow-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--wood);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mow-tag.is-ready {
  opacity: 1;
  color: #d97a00;
  animation: mowPulse 1s ease-in-out infinite;
}

@keyframes mowPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
}

.scoreboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.score-line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 4px 8px;
}

.score-line strong {
  font-variant-numeric: tabular-nums;
  color: var(--green-dark);
}

/* ---------------- 触控操作台（移动端） ---------------- */

#control-deck {
  display: none;
}

/* ---------------- 浮层 ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 55, 30, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding: 18px;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--cream) 0%, #f6e7cb 100%);
  border: 3px solid rgba(138, 90, 59, 0.5);
  border-radius: 26px;
  padding: 26px 26px 22px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    0 24px 60px rgba(20, 40, 20, 0.4);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.overlay.is-open .panel {
  transform: translateY(0);
}

.panel-kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--wood);
  margin-bottom: 4px;
}

.panel-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: var(--green-dark);
}

.panel-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(58, 42, 32, 0.75);
}

.panel-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.panel-actions .btn {
  min-width: 130px;
}

/* 模式选择 */

.mode-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.mode-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf6, #f0dcb6);
  border: 2px solid rgba(138, 90, 59, 0.4);
  border-radius: 999px;
  padding: 9px 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 3px 0 var(--wood-dark);
  transition: transform 0.08s ease;
}

.mode-emoji {
  font-size: 15px;
  line-height: 1;
}

.mode-chip.is-active {
  background: linear-gradient(180deg, #ffd97a, #f5a93c);
  border-color: rgba(150, 100, 30, 0.6);
}

.mode-chip.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.mode-desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--wood);
  min-height: 18px;
}

/* 机台卡 */

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

.char-card {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  background: linear-gradient(180deg, #fffdf6, #f6e6c8);
  border: 2.5px solid rgba(138, 90, 59, 0.3);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(60, 40, 20, 0.14);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  touch-action: manipulation;
}

.char-card.is-selected {
  border-color: #f5a93c;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(255, 211, 77, 0.55),
    0 6px 16px rgba(140, 90, 20, 0.3);
  transform: translateY(-2px);
}

.char-card.is-locked {
  opacity: 0.6;
  filter: grayscale(0.7);
}

.char-emoji {
  font-size: 30px;
  line-height: 1.2;
}

.char-name {
  font-size: 15px;
  color: var(--ink);
}

.char-desc {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(58, 42, 32, 0.65);
}

/* 三选一卡 */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice-card {
  position: relative;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  background: linear-gradient(180deg, #fffdf6, #f6e6c8);
  border: 2.5px solid rgba(138, 90, 59, 0.3);
  border-radius: 18px;
  padding: 20px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 5px 14px rgba(60, 40, 20, 0.16);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  touch-action: manipulation;
}

.choice-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(255, 211, 77, 0.5),
    0 8px 20px rgba(140, 90, 20, 0.3);
}

.choice-card:active {
  transform: translateY(1px);
}

.choice-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--wood);
  background: rgba(255, 225, 160, 0.55);
  border-radius: 999px;
  padding: 2px 10px;
}

.choice-icon {
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 4px rgba(60, 40, 20, 0.18));
}

.choice-name {
  font-size: 17px;
  color: var(--green-dark);
}

.choice-level {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.choice-key {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(58, 42, 32, 0.5);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(138, 90, 59, 0.3);
  border-radius: 6px;
  padding: 1px 6px;
}

/* 结算 */

.result-stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 34px;
  margin: 8px 0 2px;
}

.result-stars .star {
  color: rgba(138, 90, 59, 0.25);
  transform: scale(0.85);
  transition: transform 0.3s ease, color 0.3s ease;
}

.result-stars .star.is-lit {
  color: #ffb84d;
  transform: scale(1);
  text-shadow: 0 0 16px rgba(255, 184, 77, 0.8);
}

.result-badge {
  text-align: center;
  margin: 4px 0;
  font-weight: 800;
  font-size: 14px;
  color: #d97a00;
  min-height: 20px;
}

.result-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13.5px;
}

.result-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--green-dark);
}

.result-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(58, 42, 32, 0.6);
}

/* 图鉴 */

.codex-section {
  margin-bottom: 12px;
}

.codex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.codex-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(138, 90, 59, 0.14);
  color: rgba(58, 42, 32, 0.55);
}

.codex-chip.is-owned {
  background: linear-gradient(180deg, #a5e07e, #5fc46a);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.codex-chip-ico {
  margin-right: 5px;
  font-size: 13px;
  vertical-align: -1px;
}

/* 帮助 */

.help-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(58, 42, 32, 0.85);
}

.help-list li::marker {
  color: var(--green);
  font-weight: 800;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  :root {
    --panel-w: 208px;
  }
}

@media (max-width: 900px) {
  #stage-core {
    grid-template-columns: 1fr;
  }

  .wing {
    display: none;
  }

  #stage-bar {
    padding: 6px 10px;
  }

  #app-title {
    font-size: 18px;
  }

  #app-subtitle {
    display: none;
  }
}

@media (max-width: 768px) {
  #game-app {
    padding: 8px 10px max(68px, calc(16px + env(safe-area-inset-bottom)));
  }

  /* 移动端：掌机操作台 + 底部广告安全避让 */
  #control-deck {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(255, 246, 224, 0.96), rgba(246, 231, 203, 0.96));
    border: 2px solid rgba(138, 90, 59, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(50, 90, 40, 0.22);
    touch-action: none;
    user-select: none;
  }

  .joystick-zone {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(138, 90, 59, 0.18));
    border: 2px solid rgba(138, 90, 59, 0.4);
    touch-action: none;
  }

  .joystick-base {
    position: absolute;
    inset: 0;
    border-radius: 50%;
  }

  .joystick-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fffdf6, #f0b64d);
    border: 2px solid rgba(150, 100, 30, 0.6);
    box-shadow: 0 4px 10px rgba(60, 40, 20, 0.25);
    transform: translate(0, 0);
    transition: transform 0.03s linear;
  }

  .pad-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    border-radius: 20px;
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.8),
      0 3px 0 var(--wood-dark),
      0 6px 14px rgba(60, 40, 20, 0.22);
    touch-action: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .pad-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 3px 6px rgba(90, 60, 30, 0.35), 0 1px 0 var(--wood-dark);
  }

  .pad-burst {
    width: 96px;
    height: 96px;
    background: radial-gradient(circle at 35% 30%, #ffd97a, #f5a93c);
    border: 3px solid rgba(150, 100, 30, 0.55);
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
  }

  .pad-pause {
    width: 64px;
    height: 64px;
    background: linear-gradient(180deg, #fffdf6, #f1dcb8);
    border: 2px solid rgba(138, 90, 59, 0.45);
    font-size: 13px;
    font-weight: 800;
  }

  .pad-label {
    font-size: 12px;
    font-weight: 800;
  }

  .pad-btn kbd {
    font-size: 10px;
    opacity: 0.6;
  }

  .joystick-zone .pad-label {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--wood-dark);
  }

  /* 面板移动化 */
  .panel {
    padding: 20px 16px 16px;
    border-radius: 22px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .choice-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 12px 14px;
    gap: 8px;
  }

  .choice-card .choice-icon {
    font-size: 26px;
    margin: 0;
  }

  .choice-card .choice-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  #meadow-bezel {
    padding: 6px;
    border-radius: 16px;
  }

  #stage-canvas {
    border-radius: 10px;
  }
}

/* 动效降级 */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
