:root {
  --nr-leaf: #f07820;
  --nr-leaf-hot: #ffb347;
  --nr-chakra: #3ecfff;
  --nr-paper: #f4efe4;
  --nr-muted: #9bb0c9;
  --nr-font-display: 'Black Ops One', system-ui, sans-serif;
  --nr-font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

.nr-shell {
  width: 100%;
  margin: 0;
  padding: 8px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nr-shell-embedded {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 16px;
  box-sizing: border-box;
}

.nr-top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: space-between;
}

.nr-top-embedded {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 24, 40, 0.72);
}

html[data-theme='light'] .nr-top-embedded {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.nr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.nr-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--nr-font-display);
  font-size: 1.35rem;
  color: #1a1008;
  background: linear-gradient(145deg, var(--nr-leaf-hot), var(--nr-leaf));
  box-shadow: 0 8px 24px rgba(240, 120, 32, 0.35);
}

.nr-brand h1 {
  margin: 0;
  font-family: var(--nr-font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--nr-paper);
}

html[data-theme='light'] .nr-brand h1 {
  color: #1a1408;
}

.nr-brand p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--nr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nr-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.nr-stat {
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(19, 32, 56, 0.85);
  border: 1px solid rgba(155, 176, 201, 0.18);
  text-align: right;
}

html[data-theme='light'] .nr-stat {
  background: #f4f7fb;
  border-color: rgba(0, 0, 0, 0.08);
}

.nr-stat span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nr-muted);
}

.nr-stat strong {
  font-family: var(--nr-font-display);
  font-size: 1.15rem;
  color: var(--nr-leaf-hot);
  font-weight: 400;
}

.nr-stat-power.is-ready {
  border-color: rgba(62, 207, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(62, 207, 255, 0.15) inset;
}

.nr-stat-power.is-ready strong {
  color: #3ecfff;
}

.nr-stat-hp strong {
  color: #7dce82;
}

.nr-stat-hp.is-low strong {
  color: #e84b4b;
}

.nr-stat-mp strong {
  color: #3ecfff;
}

.nr-stage {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(240, 120, 32, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45);
  background: #0e1828;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 620px);
}

#nr-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.nr-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(240, 120, 32, 0.2), transparent 45%),
    rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nr-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nr-card {
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(28, 51, 79, 0.95), rgba(14, 24, 40, 0.98));
  border: 1px solid rgba(240, 120, 32, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.nr-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nr-chakra);
}

.nr-card h2 {
  margin: 0 0 10px;
  font-family: var(--nr-font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--nr-leaf-hot);
  letter-spacing: 0.03em;
}

.nr-card p {
  margin: 0 0 16px;
  color: var(--nr-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.nr-keys {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--nr-paper);
  font-size: 0.9rem;
}

.nr-keys kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 2px 7px;
  margin-right: 2px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--nr-font-body);
  font-size: 0.78rem;
  font-weight: 600;
}

.nr-restart-btn {
  appearance: none;
  border: 1px solid rgba(240, 120, 32, 0.45);
  cursor: pointer;
  align-self: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--nr-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1008;
  background: linear-gradient(145deg, var(--nr-leaf-hot), var(--nr-leaf));
  box-shadow: 0 6px 16px rgba(240, 120, 32, 0.28);
}

.nr-restart-btn:hover {
  filter: brightness(1.05);
}

html[data-theme='light'] .nr-restart-btn {
  color: #1a1008;
}

.nr-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--nr-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #1a1008;
  background: linear-gradient(135deg, var(--nr-leaf-hot), var(--nr-leaf));
  box-shadow: 0 10px 28px rgba(240, 120, 32, 0.4);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.nr-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.nr-btn:active {
  transform: translateY(1px);
}

.nr-controls {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nr-pad {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 12px;
  font-family: var(--nr-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--nr-paper);
  background: rgba(19, 32, 56, 0.9);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.nr-pad:active {
  transform: scale(0.98);
  background: rgba(28, 51, 79, 1);
}

.nr-pad-accent {
  color: #1a1008;
  background: linear-gradient(135deg, var(--nr-leaf-hot), var(--nr-leaf));
  border-color: transparent;
}

.nr-attack-pads {
  display: contents;
}

#product-dashboard {
  padding: 0 0 12px;
  width: 100%;
  min-width: 0;
}

@media (max-width: 820px) {
  .nr-hud {
    width: 100%;
    justify-content: stretch;
  }

  .nr-stat {
    flex: 1;
    text-align: center;
  }

  .nr-controls {
    display: flex;
  }
}

@media (max-width: 520px) {
  .nr-stage {
    border-radius: 12px;
  }
}
