/* ==========================================================================
   猫咪练习场 · 阳光猫窝奶油卡通主题 (同步主游戏视觉风格)
   ========================================================================== */
:root {
  color-scheme: light;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: #462e1f;
  background: #f4e6cc;
}

body {
  background: radial-gradient(circle at 50% 0, #fff7e6 0%, #f1e0c2 75%);
  color: #462e1f;
}

button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible {
  outline: 2.5px solid #f49442;
  outline-offset: 3px;
}

.eyebrow { color: #cc6b1c; }
.page-header h1 { color: #462e1f; font-weight: 900; }

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #fff9ee;
  border: 2px solid #5a3c28;
  border-radius: 12px;
  color: #462e1f;
  font-weight: 800;
  box-shadow: 0 2px 0 #5a3c28;
}

.quality {
  padding: 6px 12px;
  background: #fff9ee;
  border: 1.5px solid #c9a77a;
  border-radius: 10px;
  color: #6e4f3a;
  font-weight: 700;
}

.quality input { accent-color: #f49442; }

.lesson-tab {
  background: #fff9ee;
  border: 2px solid #cfa97c;
  border-bottom: 4px solid #b08a5d;
  border-radius: 13px;
  color: #6e4f3a;
  font-weight: 700;
}

.lesson-tab .lesson-number { color: #a38063; }

.lesson-tab[aria-current="step"] {
  background: linear-gradient(180deg, #ffe694, #ffd45c);
  border-color: #5a3c28;
  border-bottom-color: #bd8818;
  color: #462e1f;
  font-weight: 900;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.lesson-tab[aria-current="step"] .lesson-number { color: #8c5a10; }
.lesson-tab.finished:after { color: #368749; }

.mission {
  background: #fff9ee;
  border: 2px solid #5a3c28;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 3px 0 #5a3c28;
}

.mission h2 { color: #462e1f; font-weight: 900; }
.mission p:not(.eyebrow) { color: #6e4f3a; }
.progress-block strong { color: #cc6b1c; font-weight: 900; }

progress {
  height: 8px;
  border: 1.5px solid #5a3c28;
  border-radius: 999px;
  background: #ebd8b7;
}
progress::-webkit-progress-bar { background: #ebd8b7; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #5ec472, #82dc92); }

.arena {
  border: 3px solid #5a3c28;
  border-radius: 20px;
  box-shadow: 0 6px 0 rgba(70, 46, 31, 0.35);
}

.arena-top span {
  background: #fff9ee;
  border: 2px solid #5a3c28;
  border-radius: 11px;
  color: #462e1f;
  font-weight: 800;
  box-shadow: 0 2px 0 #5a3c28;
  backdrop-filter: none;
}

.timing-cue {
  background: #fff6dc;
  border: 2px solid #5a3c28;
  border-radius: 13px;
  color: #6b3c12;
  box-shadow: 0 3px 0 #5a3c28;
}

.timing-cue.perfect {
  background: #e5f8e7;
  border-color: #368749;
  color: #1f5c2d;
}

.joystick {
  border: 2.5px solid rgba(90, 60, 40, 0.55);
  background: rgba(255, 248, 232, 0.48);
}

.stick {
  border: 2px solid #5a3c28;
  background: linear-gradient(180deg, #fffdf7, #f5dfb8);
  box-shadow: 0 3px 0 rgba(90, 60, 40, 0.45);
}

.joystick-label { color: #5a3c28; font-weight: 800; }

.action {
  background: linear-gradient(180deg, #eef8fc, #cce7f4);
  border: 2.5px solid #5a3c28;
  border-bottom: 5px solid #365f75;
  border-radius: 20px;
  color: #462e1f;
  box-shadow: 0 4px 10px rgba(45, 28, 16, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

#hiss.action {
  background: linear-gradient(180deg, #f3fbf0, #d4eed1);
  border-bottom-color: #3e6b46;
}

.action b { color: #462e1f; font-weight: 900; }
.action small { color: #6e4f3a; font-weight: 600; }

.action.primary {
  background: linear-gradient(180deg, #ffb266, #f49442);
  border-color: #5a3c28;
  border-bottom-color: #b85d19;
  border-radius: 24px;
  color: #3d1d06;
}

.action.primary small { color: #542a0c; }
.action.pressed { transform: translateY(3px) scale(0.96); border-bottom-width: 2px; box-shadow: none; }

.practice-footer p { color: #5a3c28; font-weight: 700; }
.text-button {
  background: #fff9ee;
  border: 1.5px solid #c9a77a;
  border-radius: 10px;
  padding: 7px 12px;
  color: #462e1f;
  font-weight: 700;
}

.practice-notes {
  border-top: 2px dashed rgba(90, 60, 40, 0.25);
  color: #6e4f3a;
}
.practice-notes summary { color: #462e1f; font-weight: 800; }
.load-status { color: #93735b; }

.result { background: rgba(48, 32, 20, 0.52); backdrop-filter: none; }
.result-card {
  background: #fff9ee;
  border: 2.5px solid #5a3c28;
  border-radius: 22px;
  color: #462e1f;
  box-shadow: 0 6px 0 rgba(70, 46, 31, 0.36);
}
.result-icon {
  background: #e5f8e7;
  border: 2px solid #368749;
  color: #2f7d40;
  font-weight: 900;
}
.result-card p { color: #6e4f3a; }
.solid-button {
  background: linear-gradient(180deg, #ffb266, #f49442);
  border: 2px solid #5a3c28;
  border-bottom: 4px solid #b85d19;
  border-radius: 13px;
  color: #3d1d06;
  font-weight: 900;
}
.result-back { color: #c2641a; font-weight: 700; }
