.nt-shell {
  max-width: min(92vw, 640px);
  margin: 0 auto;
  padding: 0 4px 24px;
  color: var(--cg-ink);
  font-family: Inter, Arial, sans-serif;
}

.nt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.nt-stats {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
}

.nt-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--cg-line);
  border-radius: 10px;
  background: var(--cg-panel);
  box-shadow: 0 8px 18px rgba(33, 43, 40, 0.07);
  text-align: center;
}

.nt-stat span {
  display: block;
  color: var(--cg-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nt-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  line-height: 1;
}

.nt-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.nt-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--cg-line);
  border-radius: 10px;
  background: var(--cg-panel);
  color: var(--cg-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nt-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.nt-btn:focus-visible,
.nt-play:focus-visible,
.nt-input:focus-visible,
.nt-option:focus-visible {
  outline: 3px solid rgba(24, 140, 160, 0.45);
  outline-offset: 2px;
}

.nt-icon { padding: 0; font-size: 18px; }

.nt-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #0f7f8f, #1d7f62);
  color: #fff;
}

.nt-board {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 274px;
  align-content: center;
  padding: 18px 16px 16px;
  border: 1px solid #1d3448;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0%, rgba(120, 220, 220, 0.16), transparent 55%), linear-gradient(165deg, #16283a, #0d1a26);
  box-shadow: 0 18px 44px rgba(13, 26, 38, 0.28);
}

.nt-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.nt-wave {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  justify-content: center;
  height: 74px;
  margin-top: 8px;
}

.nt-wave i {
  width: 6px;
  height: 12%;
  border-radius: 3px;
  background: linear-gradient(180deg, #6fe0d6, #1d7f8f);
  opacity: 0.42;
}

.nt-wave-on i {
  animation: nt-bounce 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--nt-i) * 52ms);
  opacity: 1;
}

.nt-meter {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.nt-meter-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6fe0d6, #7cf5b4);
  transition: width 70ms linear;
}

.nt-tick {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(13, 26, 38, 0.65);
}

.nt-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
}

.nt-meter-labels span:nth-child(2) { color: #7cf5b4; }

.nt-play {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 168px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6fe0d6, #1d7f8f);
  color: #06222a;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(31, 120, 130, 0.34);
}

.nt-play-icon { font-size: 15px; line-height: 1; }

.nt-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}

.nt-entry {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.nt-field { position: relative; flex: 1 1 auto; min-width: 0; }

.nt-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--cg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cg-ink);
  font: inherit;
  font-size: 15px;
}

.nt-input:disabled { background: #f2f4f2; }
.nt-shake { animation: nt-shake 320ms ease; }

.nt-suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 30, 34, 0.2);
}

.nt-suggest[hidden] { display: none; }

.nt-option {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--cg-line);
  background: #fff;
  color: var(--cg-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nt-option:last-child { border-bottom: 0; }
.nt-option b { font-weight: 800; }
.nt-option span { flex: 0 0 auto; color: var(--cg-muted); font-size: 11.5px; font-weight: 700; }
.nt-option.nt-active,
.nt-option:hover { background: #eef7f5; }

.nt-rows {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.nt-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--cg-line);
  border-radius: 10px;
  background: var(--cg-panel);
  font-weight: 700;
}

.nt-row span {
  flex: 0 0 34px;
  color: var(--cg-muted);
  font-size: 11px;
  font-weight: 850;
}

.nt-row b {
  flex: 1 1 auto;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-row i { flex: 0 0 auto; font-size: 16px; font-style: normal; }
.nt-row-empty { background: rgba(255, 255, 255, 0.5); border-style: dashed; }
.nt-hit { border-color: var(--cg-green); background: #e8f8f0; color: #14563f; }
.nt-miss { border-color: rgba(189, 60, 55, 0.5); background: #fdf0ef; color: #8d2e2a; }
.nt-skip { border-color: rgba(196, 122, 23, 0.5); background: #fdf6e8; color: #7d5010; }

.nt-result {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--cg-line);
  border-radius: 14px;
  background: var(--cg-panel);
  box-shadow: var(--cg-shadow);
  text-align: center;
}

.nt-result[hidden] { display: none; }
.nt-result-kicker { color: var(--cg-muted); font-size: 11px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.nt-result strong { font-size: 21px; }
.nt-result p { margin: 0; color: var(--cg-muted); font-size: 13px; }

.nt-result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.nt-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 26, 38, 0.45);
}

.nt-modal[hidden] { display: none; }

.nt-modal-card {
  position: relative;
  width: min(100%, 440px);
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(13, 26, 38, 0.3);
}

.nt-modal-card h2 { margin: 0 48px 12px 0; }
.nt-modal-card p { color: var(--cg-muted); line-height: 1.5; }

.nt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--cg-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

@keyframes nt-bounce {
  from { height: 14%; }
  to { height: 92%; }
}

@keyframes nt-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 640px) {
  .nt-shell { max-width: 100%; padding: 0 2px 20px; }
  .nt-board { min-height: 258px; padding: 16px 12px; border-radius: 14px; }
  .nt-wave i { width: 5px; }
  .nt-entry { flex-wrap: wrap; }
  .nt-field { flex: 1 1 100%; }
  .nt-entry .nt-btn { flex: 1 1 0; }
  .nt-stat { padding: 6px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-wave-on i { animation: none; height: 52%; }
  .nt-shake { animation: none; }
}
