/* onboarding.css —— kid-point 首次启动引导弹层
 * 儿童可用性硬指标：正文 ≥20px / 按钮 ≥24px / 触摸区 ≥64px / 高饱和强对比
 */

.onb-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 42, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: onb-fade 0.24s ease-out;
}

@keyframes onb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.onb-card {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: #FFFDF7;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  animation: onb-rise 0.28s cubic-bezier(0.22, 1.2, 0.36, 1);
}

@keyframes onb-rise {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.onb-emoji {
  font-size: 46px;
  line-height: 1;
  text-align: center;
  margin-bottom: 6px;
}

.onb-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: #2E4A22;
  text-align: center;
  letter-spacing: 0.5px;
}

.onb-desc {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #6B6152;
  text-align: center;
}

.onb-field {
  margin-bottom: 18px;
}

.onb-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #4A3628;
}

.onb-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;             /* 触摸区 */
  padding: 12px 16px;
  font-size: 20px;              /* 正文 ≥20px */
  color: #2E2A24;
  background: #FFFFFF;
  border: 2px solid #D9D0C0;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
}

.onb-input:focus {
  border-color: #7BAF4E;
  box-shadow: 0 0 0 4px rgba(123, 175, 78, 0.18);
}

.onb-err {
  min-height: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #D9483B;
}

.onb-btn {
  width: 100%;
  min-height: 60px;             /* 触摸区 ≥64px 视觉裕度 */
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(180deg, #8CC44F 0%, #6CA23C 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 0 #57822F, 0 10px 22px rgba(87, 130, 47, 0.28);
  transition: transform 0.1s, box-shadow 0.1s;
}

.onb-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #57822F, 0 4px 12px rgba(87, 130, 47, 0.24);
}

.onb-btn:disabled {
  opacity: 0.66;
  cursor: default;
}

body.onb-open {
  overflow: hidden;
}

/* 深色主题兜底（当前无深色，留口子） */
@media (prefers-color-scheme: dark) {
  .onb-card { background: #FFFDF7; }   /* 引导页始终浅底，保证儿童可读 */
}
