/* Neon Lines: dark synthwave board, glowing trails, big thumb pads */
.n-wrap {
  --n-extra: 250px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  user-select: none;
  -webkit-user-select: none;
}
.n-local { --n-extra: 400px; }

.n-pips { display: flex; gap: var(--sp-2); justify-content: center; }
.n-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px var(--sp-3); border-radius: var(--r-full);
  background: var(--c-surface); border: 1px solid var(--c-border);
  font-size: var(--fs-sm); color: var(--c-text);
}
.n-chip-dot { width: 10px; height: 10px; border-radius: 50%; }
.n-chip.p0 .n-chip-dot { background: var(--c-p0); box-shadow: 0 0 8px var(--c-p0-glow); }
.n-chip.p1 .n-chip-dot { background: var(--c-p1); box-shadow: 0 0 8px var(--c-p1-glow), inset 0 0 0 3px var(--c-surface); }
.n-pip { width: 12px; height: 12px; border-radius: 4px; border: 2px solid rgba(255, 255, 255, 0.25); display: inline-block; }
.n-chip.p0 .n-pip.on { background: var(--c-p0); border-color: var(--c-p0); box-shadow: 0 0 8px var(--c-p0-glow); }
.n-chip.p1 .n-pip.on { background: var(--c-p1); border-color: var(--c-p1); box-shadow: 0 0 8px var(--c-p1-glow); }
.n-you { font-weight: 700; }

.n-stage {
  position: relative;
  width: min(100%, calc((100dvh - var(--n-extra)) * 0.7333), 420px);
  min-width: 220px;
  aspect-ratio: 22 / 30;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(120, 140, 255, 0.35);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.35), inset 0 0 24px rgba(99, 102, 241, 0.18);
  touch-action: none;
}
.n-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.n-rot .n-canvas { transform: rotate(180deg); }

.n-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-4);
  font-weight: 900; color: #fff; text-shadow: 0 0 18px rgba(129, 140, 248, 0.9);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-mid) var(--ease-out);
  font-size: var(--fs-2xl);
}
.n-overlay.show { opacity: 1; }
.n-overlay[data-kind="count"] { font-size: 96px; }

.n-pad { display: flex; gap: var(--sp-3); width: 100%; max-width: 420px; }
.n-pad--top { transform: rotate(180deg); }
.n-btn {
  flex: 1; min-height: 64px; border-radius: var(--r-lg);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-weight: 700; font-size: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  border: 2px solid var(--c-border);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.n-btn span { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); }
.n-btn.p0 { border-color: var(--c-p0); box-shadow: 0 0 14px var(--c-p0-glow); }
.n-btn.p1 { border-color: var(--c-p1); box-shadow: 0 0 14px var(--c-p1-glow); }
.n-btn:active { transform: scale(0.96); background: var(--c-surface-2); }

@media (prefers-reduced-motion: reduce) { .n-overlay { transition: none; } }
