.nn-allocation {
  min-width: 0;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  background: #fff;
}
.nn-allocation legend {
  padding: 0 6px;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 850;
}
.nn-help {
  margin: 6px 0;
  color: var(--muted-dark);
  font-size: 14px;
}
.nn-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.nn-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 2px solid #b7cae2;
  border-radius: 14px;
  background: #f7fbff;
  cursor: pointer;
  font-weight: 500;
}
.nn-mode-card:hover { border-color: var(--blue-bright); }
.nn-mode-card:has(input:checked) {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(211 22 51 / 12%);
  background: #fff5f6;
}
.nn-mode-card input {
  width: auto;
  margin: 3px 0 0;
  padding: 0;
}
.nn-mode-card span { min-width: 0; }
.nn-mode-card strong { display: block; color: var(--text-dark); }
.nn-mode-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.4;
}
.nn-mode-card--coming-soon {
  overflow: hidden;
  min-height: 108px;
  border-color: #c9d3df;
  background: #eef2f6;
  cursor: not-allowed;
}
.nn-mode-card--coming-soon:hover { border-color: #c9d3df; }
.nn-mode-card--coming-soon input,
.nn-mode-card--coming-soon .nn-mode-copy {
  opacity: .28;
}
.nn-coming-soon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 120%;
  padding: 8px 12px;
  border-top: 2px solid rgb(211 22 51 / 55%);
  border-bottom: 2px solid rgb(211 22 51 / 55%);
  background: rgb(255 255 255 / 88%);
  color: var(--red);
  font-size: clamp(13px, 2.4vw, 17px);
  font-weight: 950;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-6deg);
}
.nn-choice-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d7e2ef;
}
.nn-choice-panel > label { margin: 0; }
.nn-number-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 6px;
}
.nn-number-row input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.nn-check-button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--navy-mid);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}
.nn-check-button:hover { background: var(--blue); }
.nn-check-button:disabled { cursor: wait; opacity: .65; }
.nn-status {
  min-height: 1.5em;
  margin: 6px 0 0;
  font-weight: 800;
}
.nn-status[data-state="available"] { color: #166534; }
.nn-status[data-state="taken"],
.nn-status[data-state="error"] { color: #9f1239; }
.nn-status[data-state="checking"] { color: var(--muted-dark); }
.nn-reveal {
  margin-top: 18px;
  padding: 20px;
  border: 2px solid #9ac5a9;
  border-radius: 18px;
  background: #eaf8ef;
  color: #123b22;
  text-align: center;
}
.nn-reveal > span { display: block; font-weight: 800; }
.nn-reveal > strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: clamp(42px, 10vw, 76px);
  letter-spacing: -.05em;
  line-height: 1;
  opacity: .2;
  transform: scale(.92);
}
.nn-reveal.is-revealed > strong {
  animation: nn-number-reveal .7s cubic-bezier(.2,.9,.2,1) forwards;
}
.nn-reveal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.nn-reveal-actions a {
  padding: 8px 12px;
  border: 1px solid #7aa98b;
  border-radius: 999px;
  background: #fff;
  color: #123b22;
  font-weight: 750;
  text-decoration: none;
}
.nn-reveal-actions a:hover { text-decoration: underline; }
@keyframes nn-number-reveal {
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 640px) {
  .nn-mode-grid { grid-template-columns: 1fr; }
  .nn-number-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .nn-reveal.is-revealed > strong {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
