
/* 2N21 Fruit Catch v1.0.1 */
.n21fc{ --b:#3b82f6; --p:#ec4899; --y:#f59e0b; --g:#22c55e; --u:#8b5cf6; color:#111827; }
.n21fc-card{ max-width: 1200px; margin: 14px auto; background:#fff; border:1px solid #e5e7eb; border-radius: 22px; box-shadow: 0 18px 55px rgba(0,0,0,.10); overflow:hidden; }
.n21fc-head{ display:flex; justify-content:space-between; gap:12px; padding: 14px; align-items:flex-start;
  background:
    radial-gradient(circle at 20% 20%, rgba(236,72,153,.18), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,.18), transparent 44%),
    radial-gradient(circle at 40% 85%, rgba(245,158,11,.18), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(249,250,251,1));
  border-bottom:1px solid #e5e7eb;
}
.n21fc-brand{ font-weight: 950; font-size: 12px; letter-spacing:.4px; text-transform: uppercase; }
.n21fc-title{ font-weight: 1000; font-size: 22px; margin-top: 2px; }
.n21fc-sub{ font-size: 12px; color:#4b5563; font-weight: 800; margin-top: 4px; max-width: 720px; }

.n21fc-top{ display:flex; gap:14px; flex-wrap: wrap; padding: 14px; }
.n21fc-nickbox{ flex: 1 1 380px; }
.n21fc-label{ display:block; font-size: 12px; font-weight: 950; margin-bottom: 6px; }
.n21fc-row{ display:flex; gap:8px; }
.n21fc-input{ width:100%; padding: 10px 12px; border:1px solid #e5e7eb; border-radius: 16px; font-size: 14px; background:#fff; color:#111827; outline:none; font-weight: 800; }
.n21fc-input:focus{ border-color: var(--b); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.n21fc-hint{ font-size: 12px; color:#6b7280; margin-top: 6px; font-weight: 700; }

.n21fc-stats{ flex: 1 1 520px; display:flex; gap:10px; justify-content:flex-end; flex-wrap: wrap; }
.n21fc-stat{ flex: 1 1 120px; min-width: 120px; border:1px solid #e5e7eb; background:#f9fafb; border-radius: 18px; padding: 10px 12px; }
.n21fc-stat-label{ font-size: 12px; color:#6b7280; font-weight: 900; }
.n21fc-stat-val{ font-size: 26px; font-weight: 1000; margin-top: 2px; }

.n21fc-stage{ padding: 0 14px 14px; }
.n21fc-canvas-wrap{ border-radius: 22px; overflow:hidden; border: 1px solid #e5e7eb; background:#f8fafc; position:relative; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.8); }
.n21fc-canvas{ width:100%; height: 400px; display:block; touch-action: none; }

.n21fc-ctrl-hint{ margin-top: 10px; font-weight: 900; color:#6b7280; font-size: 12px; text-align:center; }

.n21fc-overlay{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.55));
}
.n21fc-overlay-card{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius: 20px;
  padding: 14px 14px;
  max-width: 560px;
  text-align:center;
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
}
.n21fc-overlay-title{ font-weight: 1000; font-size: 20px; }
.n21fc-overlay-sub{ font-size: 12px; font-weight: 800; color:#4b5563; margin-top: 6px; }

.n21fc-toast{
  position:absolute; left: 50%; top: 16px; transform: translateX(-50%);
  max-width: min(760px, calc(100% - 24px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 18px;
  padding: 10px 12px;
  font-weight: 900;
  color:#111827;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  display:none;
}
.n21fc-toast.show{ display:block; animation: n21fc-pop .18s ease-out; }
@keyframes n21fc-pop{ from{ transform: translateX(-50%) translateY(-8px); opacity:0; } to{ transform: translateX(-50%) translateY(0); opacity:1; } }

.n21fc-bottom{ display:flex; gap:14px; flex-wrap:wrap; padding: 12px 14px 14px; }
.n21fc-actions{ flex: 1 1 180px; }
.n21fc-leader{ flex: 1 1 520px; border:1px solid #e5e7eb; background:#f9fafb; border-radius: 20px; padding: 12px; }
.n21fc-leader-title{ font-weight: 1000; margin-bottom: 8px; font-size: 16px; }
.n21fc-board{ display:grid; gap:8px; }
.n21fc-rowline{ display:flex; justify-content:space-between; gap:10px; padding: 10px 12px; background:#fff; border:1px solid #e5e7eb; border-radius: 16px; font-size: 13px; font-weight: 900; }
.n21fc-pill{ font-size: 11px; font-weight: 1000; padding: 2px 10px; border-radius: 999px; background: rgba(59,130,246,.12); color: #1d4ed8; }

.n21fc-btn{
  appearance:none; -webkit-appearance:none;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#111827;
  padding: 10px 12px;
  border-radius: 16px;
  cursor:pointer;
  font-weight: 1000;
  font-size: 13px;
}
.n21fc-btn:hover{ background:#f3f4f6; }
.n21fc-btn-primary{ background: var(--y); border-color: var(--y); color:#111827; }
.n21fc-btn-primary:hover{ background: #fbbf24; }
.n21fc-btn-ghost{ background:#fff; }
.n21fc-btn:focus{ outline:none; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.n21fc-btn-big{ padding: 12px 18px; font-size: 14px; border-radius: 18px; }

.n21fc-modal{ position:fixed; inset:0; z-index: 999999; display:none; }
.n21fc-modal[aria-hidden="false"]{ display:block; }
.n21fc-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.n21fc-panel{ position:absolute; left:50%; top:50%; transform: translate(-50%,-50%); width: 460px; max-width: calc(100vw - 36px);
  background:#fff; border-radius: 20px; border:1px solid #e5e7eb; box-shadow: 0 22px 80px rgba(0,0,0,.35); overflow:hidden; }
.n21fc-panel-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding: 12px; border-bottom:1px solid #e5e7eb; }
.n21fc-panel-title{ font-weight: 1000; }
.n21fc-panel-body{ padding: 12px; }
.n21fc-switch{ display:flex; gap:10px; align-items:center; font-weight: 1000; margin-bottom: 10px; }
.n21fc-switch input{ transform: scale(1.1); }
.n21fc-range{ width:100%; }

@media (max-width: 760px){
  .n21fc-canvas{ height: 320px; }
  .n21fc-stats{ justify-content:flex-start; }
}
