/* Mouse Halo 固有：動きを試せるデモと、設定パネルの再現（疑似スクリーンショット）。色は k386.css の変数を使う。 */

.mh-stage {
  --x: 58%;
  --y: 52%;
  --halo: #21adff;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: none;
  touch-action: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(160deg, #1d2b44, #0e1626);
  background-size: 32px 32px, 32px 32px, auto;
}
.mh-stage__bar {
  position: absolute; inset: 0 0 auto; height: 22px;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 12px;
}
.mh-stage__bar span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.75); }
.mh-stage__bar span.is-on { background: rgba(255, 255, 255, 0.85); }
.mh-stage__win {
  position: absolute; inset: 20% 12% 14%;
  border-radius: 12px;
  background: rgba(245, 247, 250, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.mh-stage__win::before {
  content: ""; display: block; height: 26px; border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: radial-gradient(circle at 16px 13px, #ff5f57 0 5px, transparent 5.5px),
              radial-gradient(circle at 34px 13px, #febc2e 0 5px, transparent 5.5px),
              radial-gradient(circle at 52px 13px, #28c840 0 5px, transparent 5.5px);
}
.mh-stage__win i { display: block; height: 8px; margin: 14px 18px 0; border-radius: 4px; background: rgba(0, 0, 0, 0.1); }
.mh-stage__win i:nth-child(2) { width: 62%; }
.mh-stage__win i:nth-child(3) { width: 78%; }
.mh-stage__win i:nth-child(4) { width: 45%; }
.mh-stage__hint {
  position: absolute; left: 12px; top: 30px;
  font-size: 0.75rem; font-weight: 700; color: rgba(255, 255, 255, 0.7);
}
.mh-halo, .mh-cursor, .mh-ripple { position: absolute; pointer-events: none; }
.mh-halo {
  left: var(--x); top: var(--y); width: 54px; height: 54px;
  border: 3px solid var(--halo); border-radius: 50%;
  background: color-mix(in srgb, var(--halo) 10%, transparent);
  box-shadow: 0 0 10px var(--halo);
  opacity: 0.82;
  transform: translate(-50%, -50%);
  transition: left 0.06s linear, top 0.06s linear;
}
.mh-cursor {
  left: var(--x); top: var(--y); width: 18px; height: 26px;
  transform: translate(-2px, -2px);
}
.mh-ripple {
  width: 54px; height: 54px;
  border: 3px solid var(--halo); border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  animation: mh-ripple 0.48s ease-out forwards;
}
@keyframes mh-ripple { to { opacity: 0; transform: translate(-50%, -50%) scale(2); } }
@media (prefers-reduced-motion: reduce) {
  .mh-halo { transition: none; }
  .mh-ripple { animation-duration: 0.01s; }
}

/* メニューバーから開く設定パネル（実際の項目と初期値を再現） */
.mh-panel {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  color: var(--ink);
}
.mh-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mh-panel__top b { display: block; font-size: 1rem; }
.mh-panel__top small { color: var(--muted); font-size: 0.78rem; }
.mh-switch { width: 38px; height: 22px; border-radius: 11px; background: #34c759; position: relative; flex: none; }
.mh-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.mh-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 12px 0; }
.mh-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 4px; }
.mh-row em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-swatch { width: 38px; height: 20px; border-radius: 5px; background: #21adff; border: 1px solid rgba(0, 0, 0, 0.15); }
.mh-slider { height: 4px; border-radius: 2px; background: var(--rule); position: relative; margin-bottom: 10px; }
.mh-slider span { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: #0a84ff; }
.mh-slider span::after { content: ""; position: absolute; right: -8px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.mh-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; }
.mh-panel__foot span:last-child { padding: 2px 10px; border-radius: 6px; border: 1px solid var(--rule); color: var(--ink); font-size: 0.85rem; }
.mh-row--sub { margin: 4px 0; }
.mh-row--sub small { color: var(--muted); font-size: 0.78rem; }
.mh-btn { padding: 1px 10px; border-radius: 6px; border: 1px solid var(--rule); font-size: 0.8rem; }
.mh-check { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; margin-top: 6px; }
.mh-box { width: 14px; height: 14px; border-radius: 4px; background: #0a84ff; position: relative; }
.mh-box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mh-switch--off { background: var(--rule-strong, #c7c7cc); transform: scale(0.8); transform-origin: right center; }
.mh-switch--off::after { right: auto; left: 2px; }
