/* 接水果 Catch Fruit · 独立样式（选择器统一前缀 .g-catchfruit） */

.g-catchfruit {
  justify-content: flex-start;
  gap: 10px;
}

/* ---------------- 顶部 ---------------- */

.g-catchfruit .cf-head {
  align-items: center;
  min-height: 44px;
}

.g-catchfruit .cf-head .grow { width: 100%; }
.g-catchfruit .cf-head .seg { width: 100%; padding: 4px; }
.g-catchfruit .cf-head .seg-item { min-height: 38px; font-size: 12px; }
.g-catchfruit .btn:focus { outline: none; }
.g-catchfruit .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- 数据 ---------------- */

.g-catchfruit .stats { gap: 8px; }
.g-catchfruit .stat { padding: 8px 6px; }
.g-catchfruit .stat-v { font-size: 16.5px; }
.g-catchfruit .stat-v.low { color: #ff8b96; }

/* ---------------- 舞台 ---------------- */

.g-catchfruit .cf-stagewrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.g-catchfruit .cf-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(242, 209, 107, 0.16), transparent 55%),
    radial-gradient(90% 60% at 8% 108%, rgba(95, 224, 200, 0.1), transparent 60%),
    linear-gradient(180deg, #0c1322 0%, #0e182a 46%, #0b1420 100%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 54px -32px rgba(0, 0, 0, 0.95);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.g-catchfruit .cf-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 72% 14%, rgba(255, 255, 255, 0.42), transparent 100%),
    radial-gradient(1.4px 1.4px at 44% 9%, rgba(255, 255, 255, 0.35), transparent 100%),
    radial-gradient(1.2px 1.2px at 86% 34%, rgba(255, 255, 255, 0.3), transparent 100%),
    radial-gradient(1.4px 1.4px at 28% 42%, rgba(255, 255, 255, 0.22), transparent 100%);
  opacity: 0.8;
}

.g-catchfruit .cf-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 底部草地 / 篮筐落脚处 */
.g-catchfruit .cf-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(126, 231, 135, 0) 0%, rgba(126, 231, 135, 0.1) 100%);
  border-bottom: 2px solid rgba(126, 231, 135, 0.16);
}

/* ---------------- 开始 / 结算覆盖层 ---------------- */

.g-catchfruit .cf-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 11, 18, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s;
}

.g-catchfruit .cf-cover.show { opacity: 1; visibility: visible; }

.g-catchfruit .cf-cover-card {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.g-catchfruit .cf-cover-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.g-catchfruit .cf-cover-sub {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.g-catchfruit .cf-cover-stats {
  display: flex;
  gap: 8px;
  margin: 13px 0 4px;
}

.g-catchfruit .cf-cstat {
  flex: 1;
  min-width: 0;
  padding: 7px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.g-catchfruit .cf-cstat span {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-bottom: 2px;
}

.g-catchfruit .cf-cstat b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.g-catchfruit .cf-cover .btn {
  min-height: 45px;
  margin-top: 12px;
}

.g-catchfruit .cf-cover-extra {
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--faint);
}

/* ---------------- 操作行 / 底部 ---------------- */

.g-catchfruit .cf-toolbar .btn { min-height: 42px; }

.g-catchfruit .cf-meta { padding: 8px 12px 9px; }
.g-catchfruit .cf-meta-head { align-items: baseline; gap: 8px; }
.g-catchfruit .cf-meta-head .hint:first-child { color: var(--dim); font-weight: 600; }
.g-catchfruit .cf-meta-head .hint:last-child { flex: none; color: var(--dim); font-variant-numeric: tabular-nums; }
.g-catchfruit .cf-tip {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--faint);
}

/* ---------------- 窄屏 / 动效偏好 ---------------- */

@media (max-width: 359px) {
  .g-catchfruit .cf-head .seg-item { font-size: 11px; }
  .g-catchfruit .stat-v { font-size: 15.5px; }
  .g-catchfruit .cf-stage { min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-catchfruit .cf-cover { transition: none; }
}
