/* ============================================================
   陪跑 正式版骨架 · 学习节主页内嵌（组件 comp_focus.js）
   2026-09-07 用户拍板：不跳独立页——计时器出现在左下星宠卡
   正上方（位置由 JS 动态贴 .corner.pet 顶），主页其余不动
   圆环样式照 demo/05 提取
   ============================================================ */
.focus-box {
  position: fixed; left: 3vw; z-index: 18;
  width: min(24vw, 440px);
  display: none;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.focus-box.on { display: block; animation: fxIn .3s ease; }
@keyframes fxIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.fx {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 26px;
  padding: 16px 18px 14px;
  box-shadow: 0 12px 34px rgba(224,85,112,.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-align: center;
  color: #5a3a42;
}

/* ---- 纯数字计时（2026-09-08 用户拍板：去掉圆环，只留大数字） ---- */
.fx-clock { padding: 10px 0 6px; }
.fx-clock .time {
  font-size: clamp(54px, 10vh, 96px); font-weight: 900; color: #d6456d;
  font-variant-numeric: tabular-nums; letter-spacing: 3px; line-height: 1; text-align: center;
}
.fx-clock .time.break { color: #4a9d7a; }
.fx-clock .lab {
  font-size: 14px; color: #a87f8b; margin-top: 10px; font-weight: 800;
  text-align: center; letter-spacing: 2px;
}

.fx-doing { font-size: 14.5px; font-weight: 800; color: #5a3a42; margin-top: 8px; line-height: 1.5; }
.fx-emoji { font-size: 17px; }
.fx-voice { font-size: 10.5px; color: #b7a0a8; margin-top: 6px; line-height: 1.6; }

/* 到点夸卡 */
.fx-praise {
  background: #fff3d6; border: 1px solid #f5d9a0;
  border-radius: 16px; padding: 9px 12px; font-size: 13.5px; font-weight: 800;
  color: #8a6420; line-height: 1.7; margin-bottom: 8px; animation: fxPraise .4s ease;
}
@keyframes fxPraise { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* 按钮 */
.fx-ops { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.fx-ops button {
  border: 1.5px solid transparent; border-radius: 999px; padding: 8px 18px;
  font-size: 13px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.fx-stop { background: #fff; border-color: #ecc4cd; color: #a87f8b; }
.fx-stop:hover { color: #d6456d; background: #fff0f3; }
.fx-skip { background: #fff; border-color: #cfe5da; color: #4a9d7a; }
.fx-skip:hover { background: #f0faf5; }

/* 询问态（休息好啦） */
.fx-ask-e { font-size: 40px; display: inline-block; animation: fxBounce 1.4s ease infinite; }
@keyframes fxBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.fx-ask-t { font-size: 16px; font-weight: 900; color: #5a3a42; margin-top: 6px; line-height: 1.5; }
.fx-again { background: var(--leaf); color: #fff;
  box-shadow: 0 5px 14px rgba(224,85,112,.3); }
.fx-again:hover { filter: brightness(1.06); }
.fx-done { background: #fff; border-color: #ecc4cd; color: #a87f8b; }
.fx-done:hover { color: #d6456d; }

/* 学习中：主页操作条禁用态 */
.ops-row .ops-btn:disabled {
  opacity: .55; cursor: not-allowed; filter: grayscale(.5);
  box-shadow: none; transform: none;
}
.ops-row .ops-btn:disabled:hover { background: inherit; color: inherit; filter: grayscale(.5); }

/* ============================================================
   摄像头接线（2026-09-14 任务卡 §二.A）：离席暂停横幅 + 兜底「继续学习」+ 摄像头状态行
   ============================================================ */
.fx-paused {
  display: none; margin-top: 10px; padding: 7px 10px;
  background: #fff6e5; border: 1px solid #f0dcb0; border-radius: 14px;
  font-size: 12.5px; font-weight: 800; color: #8a6420; line-height: 1.6;
}
.fx-paused.on { display: block; }
.fx-paused .fx-continue {
  display: inline-block; margin: 6px 0 0; border: 1.5px solid #cfe5da; border-radius: 999px;
  padding: 6px 16px; font-size: 12.5px; font-weight: 800; font-family: inherit;
  background: #fff; color: #4a9d7a; cursor: pointer;
}
.fx-paused .fx-continue:hover { background: #f0faf5; }
.fx-cam { font-size: 10.5px; color: #b7a0a8; margin-top: 6px; line-height: 1.6; }
