/* Note Zapper — classroom note-reading arcade. Namespaced nz-. */

body { display: block; padding: 0; margin: 0; }

.nz-page { max-width: 900px; margin: 0 auto; padding: 24px 20px 48px; }

.nz-head { text-align: center; margin-bottom: 18px; }
.nz-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--text, #0f172a); }
.nz-head p { color: var(--text-light, #64748b); font-size: 15.5px; margin: 0; }

.nz-stage { background: var(--card, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 18px;
    padding: 18px 20px 20px; box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.1)); }

/* Always-visible settings bar */
.nz-controls { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center;
    padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border, #e2e8f0); }
.nz-group-label { display: block; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-light, #64748b); margin-bottom: 6px; }
.nz-toggle { display: flex; background: var(--bg, #f8fafc); border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 3px; }
.nz-toggle button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px;
    color: var(--text-light, #64748b); padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.nz-toggle button.active { background: var(--primary, #0d9488); color: #fff; }
.nz-toggle.nz-locked { opacity: .45; pointer-events: none; }
.nz-lock-note { text-align: center; font-size: 12.5px; color: var(--text-light, #64748b); margin: -4px 0 12px; }

.nz-mode-note { text-align: center; font-size: 13.5px; color: var(--text-light, #64748b); max-width: 560px; margin: 8px auto 0; line-height: 1.6; }

.nz-start, .nz-again { display: block; margin: 18px auto 0; font: inherit; font-weight: 800; font-size: 18px;
    padding: 14px 44px; border-radius: 14px; border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 6px 18px rgba(13,148,136,.35); }

/* HUD */
.nz-hud { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-weight: 800;
    font-size: 17px; color: var(--text, #0f172a); margin-bottom: 6px; }
.nz-hud .l { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--text-light, #64748b); display: block; text-align: center; }
.nz-hud > div { text-align: center; min-width: 64px; }
.nz-timer { font-variant-numeric: tabular-nums; color: var(--primary, #0d9488); }
.nz-timer.danger { color: #dc2626; }

.nz-field { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 14px; overflow: hidden; }
.nz-svg { display: block; }

.nz-feedback { text-align: center; min-height: 34px; font-size: 22px; font-weight: 800; margin: 8px 0 2px; }
.nz-feedback.good { color: var(--primary, #0d9488); }
.nz-feedback.bad { color: #dc2626; }

/* Accidental arm buttons */
.nz-accs { display: flex; justify-content: center; gap: 10px; margin: 2px 0 10px; }
.nz-accs button { font: inherit; font-size: clamp(20px, 3vw, 30px); font-weight: 800; width: clamp(58px, 9vw, 84px);
    padding: 8px 0; border-radius: 12px; border: 2px solid var(--border, #e2e8f0); background: var(--bg, #f8fafc);
    color: var(--text, #0f172a); cursor: pointer; user-select: none; touch-action: manipulation; }
.nz-accs button.active { background: var(--primary, #0d9488); border-color: var(--primary, #0d9488); color: #fff; }

.nz-letters { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 4px; }
.nz-letter { font: inherit; font-size: clamp(22px, 4vw, 40px); font-weight: 800; padding: 16px 0;
    border-radius: 14px; border: 2px solid var(--border, #e2e8f0); background: var(--bg, #f8fafc);
    color: var(--text, #0f172a); cursor: pointer; user-select: none; touch-action: manipulation; }
.nz-letter:hover { border-color: var(--primary, #0d9488); color: var(--primary, #0d9488); }
.nz-letter:active { transform: scale(.96); }

.nz-keys-hint { text-align: center; font-size: 12.5px; color: var(--text-light, #64748b); margin: 10px 0 0; }

.nz-play-actions { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.nz-small-btn { font: inherit; font-weight: 700; font-size: 13.5px; padding: 9px 18px; border-radius: 10px;
    border: 2px solid var(--border, #e2e8f0); background: transparent; color: var(--text-light, #64748b); cursor: pointer; }
.nz-small-btn:hover { border-color: var(--primary, #0d9488); color: var(--primary, #0d9488); }

/* Game over */
.nz-over { text-align: center; }
.nz-over h2 { font-size: 26px; font-weight: 800; color: var(--text, #0f172a); margin: 6px 0 4px; }
.nz-over-score { font-size: 64px; font-weight: 800; color: var(--primary, #0d9488); line-height: 1.1; }
.nz-over-sub { color: var(--text-light, #64748b); font-weight: 600; margin: 4px 0 14px; }
.nz-over-stats { display: flex; justify-content: center; gap: 24px; color: var(--text-light, #64748b);
    font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.nz-over-stats b { color: var(--text, #0f172a); font-size: 20px; display: block; text-align: center; }

/* Fullscreen: let the staff grow to the screen */
.nz-stage:fullscreen { display: flex; flex-direction: column; justify-content: center;
    border-radius: 0; padding: 3vh 5vw; overflow: auto; }
.nz-stage:fullscreen .nz-field { width: min(92vw, 1500px); margin: 0 auto; }
.nz-stage:fullscreen .nz-hud { font-size: 24px; gap: 40px; }
.nz-stage:fullscreen .nz-feedback { font-size: 32px; min-height: 44px; }
.nz-stage:fullscreen .nz-letters { max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%; }
.nz-stage:fullscreen .nz-letter { font-size: clamp(34px, 4vw, 56px); padding: 22px 0; }
.nz-stage:fullscreen .nz-accs button { font-size: 38px; width: 110px; }

#leaderboard { margin-top: 26px; }

.nz-info { margin-top: 30px; color: var(--text-light, #64748b); font-size: 15px; line-height: 1.7; }
.nz-info h2 { font-size: 21px; font-weight: 800; color: var(--text, #0f172a); margin: 24px 0 8px; }
.nz-info a { color: var(--primary, #0d9488); font-weight: 700; text-decoration: none; }
.nz-info a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .nz-letters { gap: 6px; }
    .nz-letter { padding: 12px 0; }
    .nz-hud { gap: 16px; }
}
