/* ===== Site shell (matches the rest of nephraware.org) ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #142e47; --teal: #006f68; --teal-strong: #005b55;
  --paper: #f8faf7; --mint: #dcf3e9; --muted: #56746a;
  --line: #dde8e3; --surface: #ffffff;
}
html { font-size: 16px; }
body { font-family: "Manrope", "Segoe UI", sans-serif; background: var(--paper); color: var(--navy); line-height: 1.65; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.site-header { background: rgba(248,250,247,.97); border-bottom: 1px solid var(--line); position: relative; z-index: 100; }
.header-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 750; letter-spacing: -.06em; color: var(--navy); }
.brand:hover { text-decoration: none; }
.menu { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; font-size: .85rem; font-weight: 600; color: var(--navy); cursor: pointer; }
nav.nav { display: flex; align-items: center; gap: 17px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
nav.nav a { color: var(--navy); opacity: .75; transition: opacity .15s; }
nav.nav a:hover { opacity: 1; text-decoration: none; }
.nav-cta { border: 1px solid #bacfc9; border-radius: 6px; padding: 9px 16px; opacity: 1 !important; }
.nav-cta:hover { background: var(--mint); }
footer { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 20px; }
.footer-top { display: flex; justify-content: space-between; gap: 35px; align-items: flex-start; }
.footer-brand-name { display: flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 750; letter-spacing: -.05em; color: var(--navy); margin-bottom: 10px; }
.footer-brand-name img { width: 20px; height: 23px; object-fit: contain; }
.footer-top .tagline { font-size: .8rem; color: var(--muted); max-width: 300px; }
.footer-links { display: flex; gap: 22px; font-size: .8rem; flex-wrap: wrap; }
.footer-links a { color: var(--navy); opacity: .7; }
.footer-links a:hover { opacity: 1; text-decoration: none; }
.disclaimer-block { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.disclaimer-block strong { color: var(--navy); }
.disclaimer-block details { margin-top: 6px; }
.disclaimer-block summary { cursor: pointer; font-weight: 600; }
.disclaimer-block p { max-width: 880px; margin-top: 6px; }
.copyright { font-size: .7rem; color: var(--muted); margin-top: 20px; }
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .menu { display: block; }
  nav.nav { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: rgba(248,250,247,.98); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; z-index: 200; }
  nav.nav.open { display: flex; }
  nav.nav a { padding: 10px 0; width: 100%; opacity: 1; }
  .footer-top { flex-direction: column; }
}

/* ===== Stage ===== */
.nr-stage {
  --ink: #2a1035; --cream: #fff6e9; --coral: #ff4d6d; --rose: #ff8fa3; --gold: #ffd166;
  --aqua: #2ee6c8; --sky: #4cc9f0; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.22);
  position: relative; height: calc(100vh - 65px); height: calc(100dvh - 65px);
  min-height: 540px; max-height: 1000px; overflow: hidden; isolation: isolate;
  background: #14061f; color: var(--cream);
  font-family: "Nunito", "Manrope", sans-serif; font-weight: 700; line-height: 1.4;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.nr-stage:fullscreen { height: 100vh; max-height: none; }
#nr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.nr-stage h1, .nr-stage h2, .nr-stage h3 { font-family: "Fredoka", "Nunito", sans-serif; color: inherit; letter-spacing: 0; line-height: 1.1; }
.nr-stage button { font-family: inherit; }
.nr-stage [hidden] { display: none !important; }
.nr-noscript { position: absolute; inset: auto 0 20px; text-align: center; }

/* ----- Buttons ----- */
.nr-btn {
  font: 600 1.05rem/1 "Fredoka", "Nunito", sans-serif; letter-spacing: .02em;
  border: 0; border-radius: 999px; padding: .85em 1.6em; cursor: pointer;
  color: #4a2400; background: linear-gradient(180deg, #ffe08a, #ffb703);
  box-shadow: 0 5px 0 #b86e00, 0 12px 22px rgba(0,0,0,.35);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.nr-btn:hover { filter: brightness(1.08); }
.nr-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b86e00, 0 4px 10px rgba(0,0,0,.35); }
.nr-btn:focus-visible, .nr-icon-btn:focus-visible, .nr-node:focus-visible, .nr-card:focus-visible, .nr-seg-btn:focus-visible, .nr-opt:focus-visible, .nr-sw:focus-visible, .nr-pill:focus-visible, .nr-stage input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.nr-btn-primary { color: #fff; background: linear-gradient(180deg, #ff8fa3, #ff4d6d); box-shadow: 0 5px 0 #a30f3a, 0 12px 26px rgba(255,77,109,.4); text-shadow: 0 2px 0 rgba(120,10,40,.35); }
.nr-btn-primary:active { box-shadow: 0 1px 0 #a30f3a, 0 4px 10px rgba(0,0,0,.35); }
.nr-btn-ghost { color: var(--cream); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.nr-btn-ghost:active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); transform: translateY(2px); }
.nr-btn-xl { font-size: 1.6rem; padding: .7em 2.6em; }
.nr-icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; color: var(--cream);
  background: rgba(20,6,31,.55); box-shadow: inset 0 0 0 2px var(--glass-line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nr-icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.nr-icon-btn:hover { background: rgba(255,255,255,.2); }
#nr-sound .nr-mute { display: none; }
#nr-sound[aria-pressed="false"] .nr-wave { display: none; }
#nr-sound[aria-pressed="false"] .nr-mute { display: inline; }
.nr-corner { position: absolute; top: 14px; right: 14px; display: flex; gap: 10px; z-index: 8; }

/* ----- Screens ----- */
.nr-screen {
  position: absolute; inset: 0; z-index: 5; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 16px;
  padding: 64px 16px 24px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--scrim, rgba(58,16,84,.72)), rgba(12,3,22,.9));
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: nr-fade .3s ease both;
}
.nr-screen > * { flex-shrink: 0; }
@keyframes nr-fade { from { opacity: 0; } }
@keyframes nr-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes nr-bob { 50% { transform: translateY(-8px) rotate(3deg); } }
.nr-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.nr-h { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; }
.nr-sub { max-width: 44ch; color: rgba(255,246,233,.82); font-size: 1rem; text-wrap: balance; }

/* Title */
.nr-title { background: radial-gradient(90% 70% at 50% 42%, rgba(20,6,31,.5), rgba(12,3,22,.82)); backdrop-filter: none; -webkit-backdrop-filter: none; gap: 14px; }
.nr-logo { display: flex; flex-direction: column; align-items: center; font-size: clamp(3.2rem, 13vw, 7.4rem); font-weight: 700; line-height: .86; text-transform: uppercase; filter: drop-shadow(0 6px 0 #6d0f33) drop-shadow(0 14px 26px rgba(255,77,109,.55)); animation: nr-pop .6s cubic-bezier(.2,1.2,.4,1) both; }
.nr-logo span { background: linear-gradient(180deg, #fff3c4 10%, #ffd166 45%, #ff8fa3 92%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .04em .06em; }
.nr-logo span:last-child { font-size: 1.32em; background-image: linear-gradient(180deg, #ffd9e0 5%, #ff8fa3 40%, #ff4d6d 90%); letter-spacing: .04em; }
.nr-tagline { font-size: clamp(1rem, 2.6vw, 1.3rem); color: var(--cream); text-wrap: balance; }
.nr-title-crew { display: flex; gap: clamp(6px, 2vw, 16px); align-items: center; justify-content: center; min-height: 64px; }
.nr-title-crew img { width: clamp(44px, 9vw, 68px); height: auto; animation: nr-bob 2.6s ease-in-out infinite; }
.nr-title-crew img:nth-child(2n) { animation-delay: -.9s; }
.nr-title-crew img:nth-child(3n) { animation-delay: -1.7s; }
.nr-best { min-height: 1.4em; font-size: .9rem; color: var(--gold); }

/* Map */
.nr-map { position: relative; flex: none; }
.nr-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nr-map .flow { animation: nr-dash 1.2s linear infinite; }
@keyframes nr-dash { to { stroke-dashoffset: -44; } }
.nr-node { position: absolute; transform: translate(-50%, -30px); width: 150px; background: none; border: 0; color: var(--cream); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nr-node-ball { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font: 700 1.6rem/1 "Fredoka", sans-serif; color: #fff; background: radial-gradient(circle at 32% 28%, #ffb3c1, #ff4d6d 55%, #a30f3a); box-shadow: 0 5px 0 #7a0c2c, 0 0 0 4px rgba(255,255,255,.9), 0 10px 26px rgba(255,77,109,.6); transition: transform .12s; }
.nr-node:hover .nr-node-ball { transform: scale(1.08); }
.nr-node:active .nr-node-ball { transform: translateY(4px); }
.nr-node.is-next .nr-node-ball { animation: nr-pulse 1.3s ease-in-out infinite; }
@keyframes nr-pulse { 50% { box-shadow: 0 5px 0 #7a0c2c, 0 0 0 4px #fff, 0 0 0 14px rgba(255,209,102,.35), 0 10px 26px rgba(255,77,109,.6); } }
.nr-node.is-done .nr-node-ball { background: radial-gradient(circle at 32% 28%, #b8fff1, #2ee6c8 55%, #0b8f7c); box-shadow: 0 5px 0 #06695c, 0 0 0 4px rgba(255,255,255,.9), 0 10px 26px rgba(46,230,200,.5); color: #063d36; }
.nr-node.is-locked { cursor: default; }
.nr-node.is-locked .nr-node-ball { background: #3a2a4d; color: rgba(255,255,255,.5); box-shadow: 0 5px 0 #23162f, 0 0 0 4px rgba(255,255,255,.25); transform: none; }
.nr-node.is-locked .nr-node-name { opacity: .5; }
.nr-node-ball svg { width: 26px; height: 26px; fill: currentColor; }
.nr-node-name { font: 600 .95rem/1.15 "Fredoka", sans-serif; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.nr-stars { display: inline-flex; gap: 2px; }
.nr-stars svg { width: 15px; height: 15px; fill: rgba(255,255,255,.22); }
.nr-stars svg.on { fill: var(--gold); filter: drop-shadow(0 0 5px rgba(255,209,102,.8)); }

/* Cards and panels */
.nr-panel { width: min(100%, 560px); padding: 22px 22px 24px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); box-shadow: inset 0 0 0 2px var(--glass-line), 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; gap: 12px; animation: nr-pop .4s cubic-bezier(.2,1.2,.4,1) both; }
.nr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(46,230,200,.16); color: #9ff5e6; font-size: .8rem; box-shadow: inset 0 0 0 1.5px rgba(46,230,200,.4); }
.nr-chip i { font-style: normal; opacity: .75; font-weight: 600; }
.nr-say { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.nr-say svg { width: 72px; height: auto; flex: none; animation: nr-bob 2.4s ease-in-out infinite; }
.nr-bubble { position: relative; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 12px 16px; font-size: 1.02rem; line-height: 1.35; flex: 1; }
.nr-bubble::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right-color: var(--cream); }
.nr-bubble b { color: #d61f4c; }
.nr-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.nr-team { border-radius: 18px; padding: 10px 8px 12px; background: rgba(46,230,200,.12); box-shadow: inset 0 0 0 2px rgba(46,230,200,.45); }
.nr-team.no { background: rgba(255,77,109,.12); box-shadow: inset 0 0 0 2px rgba(255,77,109,.45); }
.nr-team h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); margin-bottom: 6px; }
.nr-team.no h3 { color: var(--rose); }
.nr-team-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.nr-team figure { display: flex; flex-direction: column; align-items: center; font-size: .72rem; width: 54px; color: rgba(255,246,233,.9); }
.nr-team img { width: 46px; height: 46px; }
.nr-btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }

/* Result */
.nr-bigstars { display: flex; gap: 8px; }
.nr-bigstars svg { width: 62px; height: 62px; fill: rgba(255,255,255,.14); }
.nr-bigstars svg.on { fill: var(--gold); filter: drop-shadow(0 4px 0 #b86e00) drop-shadow(0 0 16px rgba(255,209,102,.8)); animation: nr-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.nr-bigstars svg:nth-child(2) { transform: translateY(-10px); animation-delay: .25s; }
.nr-bigstars svg:nth-child(3) { animation-delay: .5s; }
.nr-stats { display: flex; gap: 10px; width: 100%; justify-content: center; }
.nr-stat { flex: 1; max-width: 150px; padding: 8px 6px; border-radius: 14px; background: rgba(0,0,0,.22); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,246,233,.7); }
.nr-stat b { display: block; font: 700 1.5rem/1.1 "Fredoka", sans-serif; color: var(--cream); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.nr-fact { width: 100%; text-align: left; border-radius: 16px; padding: 12px 14px; background: var(--cream); color: var(--ink); font-size: .96rem; line-height: 1.4; }
.nr-fact strong { display: block; font: 600 .78rem/1 "Fredoka", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #d61f4c; margin-bottom: 5px; }
.nr-newcrew { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: .85rem; color: var(--gold); }
.nr-newcrew img { width: 40px; height: 40px; animation: nr-bob 2s ease-in-out infinite; }

/* Crew */
.nr-crew-detail { width: min(100%, 620px); min-height: 124px; display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 20px; background: var(--cream); color: var(--ink); }
.nr-crew-detail img { width: 92px; height: 92px; flex: none; }
.nr-crew-detail h3 { font-size: 1.4rem; }
.nr-crew-detail h3 small { font: 700 .8rem "Nunito", sans-serif; color: #7b5a86; margin-left: 6px; }
.nr-crew-detail p { font-size: .9rem; line-height: 1.35; margin-top: 3px; font-weight: 600; }
.nr-crew-detail p b { color: #d61f4c; font-weight: 800; }
.nr-crew-grid { width: min(100%, 620px); display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.nr-card { border: 0; cursor: pointer; border-radius: 16px; padding: 8px 4px 10px; color: var(--cream); background: var(--glass); box-shadow: inset 0 0 0 2px var(--glass-line); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .82rem; font-weight: 700; transition: transform .12s, background .12s; }
.nr-card img { width: 56px; height: 56px; }
.nr-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); }
.nr-card[aria-pressed="true"] { background: rgba(255,209,102,.22); box-shadow: inset 0 0 0 2px var(--gold); }
.nr-card.is-locked { cursor: default; }
.nr-card.is-locked img { filter: brightness(0) invert(1); opacity: .16; }
.nr-card.is-locked:hover { transform: none; background: var(--glass); }

/* ----- HUD ----- */
.nr-hud { position: absolute; inset: 0 0 auto 0; z-index: 3; padding: 10px 12px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.nr-hud-top { display: flex; align-items: center; gap: 10px; width: min(100%, 880px); }
.nr-hud .nr-icon-btn { pointer-events: auto; }
.nr-hearts { display: flex; gap: 2px; flex: none; }
.nr-hearts svg { width: 24px; height: 24px; fill: #ff4d6d; filter: drop-shadow(0 2px 0 #7a0c2c) drop-shadow(0 0 6px rgba(255,77,109,.7)); transition: transform .2s, fill .2s; }
.nr-hearts svg.off { fill: rgba(255,255,255,.16); filter: none; transform: scale(.82); }
.nr-meter { position: relative; flex: 1; height: 30px; border-radius: 999px; overflow: hidden; background: rgba(20,6,31,.6); box-shadow: inset 0 0 0 2px var(--glass-line); min-width: 0; }
.nr-meter-fill { position: absolute; inset: 3px auto 3px 3px; width: 0; max-width: calc(100% - 6px); border-radius: 999px; background: linear-gradient(90deg, #2ee6c8, #ffd166); box-shadow: 0 0 14px rgba(46,230,200,.7); transition: width .25s cubic-bezier(.3,1.4,.5,1); }
.nr-meter-label { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .82rem/1 "Fredoka", sans-serif; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nr-meter.bump { animation: nr-bump .22s ease; }
@keyframes nr-bump { 50% { transform: scale(1.05); } }
.nr-score-wrap { display: flex; align-items: center; gap: 6px; flex: none; }
.nr-score { font: 700 1.5rem/1 "Fredoka", sans-serif; min-width: 2.6ch; text-align: right; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.nr-combo { font: 700 .95rem/1 "Fredoka", sans-serif; color: var(--ink); background: var(--gold); padding: 4px 8px; border-radius: 999px; box-shadow: 0 0 14px rgba(255,209,102,.8); }
.nr-combo.bump { animation: nr-pop .25s ease; }
.nr-rule { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; padding: 5px 12px; border-radius: 999px; background: rgba(20,6,31,.62); box-shadow: inset 0 0 0 2px var(--glass-line); font-size: .86rem; max-width: 100%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nr-rule img { width: 28px; height: 28px; margin: -3px -2px; }
.nr-rule .t { font: 600 .74rem/1 "Fredoka", sans-serif; letter-spacing: .1em; padding: 4px 8px; border-radius: 999px; background: var(--aqua); color: #063d36; }
.nr-rule .t.no { background: var(--coral); color: #fff; }
.nr-rule .grp { display: inline-flex; align-items: center; gap: 5px; }
.nr-rule .dots { display: inline-flex; gap: 4px; }
.nr-rule .dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--gold); }
.nr-rule .dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.nr-rule.swap { animation: nr-pop .35s ease; }
.nr-gauge { display: flex; align-items: center; gap: 8px; }
.nr-gauge-bar { position: relative; width: clamp(120px, 34vw, 300px); height: 16px; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #3b2a10 18%, #10344a 82%, #38bdf8); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.nr-gauge-zone { position: absolute; top: 2px; bottom: 2px; border-radius: 999px; background: linear-gradient(180deg, #86efac, #22c55e); box-shadow: 0 0 10px rgba(34,197,94,.8); }
.nr-gauge-pin { position: absolute; top: -6px; width: 14px; height: 28px; margin-left: -7px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 12px #fff; transition: left .12s linear; }
.nr-pee { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: rgba(255,246,233,.85); }
.nr-pee i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }

.nr-toast { position: absolute; left: 50%; bottom: 18px; z-index: 4; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; max-width: min(92%, 460px); padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: .92rem; line-height: 1.25; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.2,1.3,.4,1), opacity .2s; }
.nr-toast.show { transform: translate(-50%, 0); opacity: 1; }
.nr-toast img { width: 38px; height: 38px; flex: none; }
.nr-toast.bad { box-shadow: 0 0 0 3px var(--coral), 0 10px 30px rgba(0,0,0,.45); }
.nr-toast.good { box-shadow: 0 0 0 3px var(--aqua), 0 10px 30px rgba(0,0,0,.45); }
.nr-shout { position: absolute; left: 0; right: 0; top: 42%; z-index: 4; text-align: center; pointer-events: none; opacity: 0; font: 700 clamp(2.4rem, 9vw, 5rem)/1 "Fredoka", sans-serif; text-transform: uppercase; color: #fff3c4; filter: drop-shadow(0 5px 0 #a30f3a) drop-shadow(0 0 24px rgba(255,209,102,.8)); }
.nr-shout.go { animation: nr-shout 1.1s ease both; }
@keyframes nr-shout { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 18% { opacity: 1; transform: scale(1.12) rotate(2deg); } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.nr-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 30px rgba(255,40,80,.85); }
.nr-flash.go { animation: nr-flash .45s ease; }
@keyframes nr-flash { 15% { opacity: 1; } 100% { opacity: 0; } }

.nr-shout.hold { animation: nr-hold 2.4s ease both; }
@keyframes nr-hold { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 11% { opacity: 1; transform: scale(1.2) rotate(3deg); } 19% { transform: scale(1); } 50% { transform: scale(1.06); } 86% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

/* Speed picker */
.nr-seg-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.nr-seg-wrap > span { font: 600 .76rem/1 "Fredoka", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nr-seg { display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.3); max-width: 100%; }
.nr-seg-btn { border: 0; cursor: pointer; padding: .55em .9em; border-radius: 999px; background: none; color: var(--cream); font: 600 .92rem/1 "Fredoka", sans-serif; }
.nr-seg-btn:hover { background: rgba(255,255,255,.12); }
.nr-seg-btn[aria-pressed="true"] { background: linear-gradient(180deg, #ffe08a, #ffb703); color: #4a2400; box-shadow: 0 3px 0 #b86e00; }

/* Game style */
.nr-style { background: radial-gradient(120% 90% at 50% 0%, rgba(12,3,22,.42), rgba(12,3,22,.7)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nr-opt-group { width: min(100%, 700px); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.nr-opt-group h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nr-opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nr-opt { border: 0; cursor: pointer; width: 92px; padding: 10px 4px 9px; border-radius: 16px; color: var(--cream); background: rgba(20,6,31,.72); box-shadow: inset 0 0 0 2px var(--glass-line); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; line-height: 1.15; transition: transform .12s; }
.nr-opt:hover { transform: translateY(-3px); }
.nr-opt svg { width: 60px; height: 40px; fill: none; stroke: var(--rose); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.nr-opt .sw { width: 60px; height: 40px; border-radius: 12px; display: block; }
.nr-opt[aria-pressed="true"] { background: rgba(90,60,10,.78); box-shadow: inset 0 0 0 3px var(--gold), 0 0 18px rgba(255,209,102,.5); }
.nr-opt[aria-pressed="true"] svg { stroke: var(--gold); }

/* Character editor */
.nr-custom { width: min(100%, 620px); display: grid; gap: 9px; padding: 12px 14px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 2px var(--glass-line); text-align: left; }
.nr-field { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.nr-field > span { width: 50px; flex: none; font: 600 .74rem/1 "Fredoka", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.nr-field em { font-style: normal; font-size: .76rem; font-weight: 600; color: rgba(255,246,233,.7); }
.nr-stage input[type="text"] { -webkit-user-select: text; user-select: text; font: 800 1rem/1.2 "Nunito", sans-serif; color: var(--ink); background: var(--cream); border: 0; border-radius: 10px; padding: 7px 10px; width: 140px; }
.nr-swatches, .nr-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.nr-sw { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.nr-sw[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 12px #fff; }
.nr-pill { border: 0; cursor: pointer; padding: .42em .8em; border-radius: 999px; font: 700 .8rem/1 "Nunito", sans-serif; color: var(--cream); background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1.5px var(--glass-line); }
.nr-pill[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: none; }

@media (max-width: 520px) {
  .nr-seg-btn { padding: .55em .62em; font-size: .84rem; }
  .nr-opt { width: 78px; }
  .nr-hud { padding: 8px 8px 0; gap: 6px; }
  .nr-hud-top { gap: 6px; }
  .nr-hearts svg { width: 19px; height: 19px; }
  .nr-score { font-size: 1.25rem; }
  .nr-icon-btn { width: 40px; height: 40px; }
  .nr-rule { font-size: .78rem; padding: 4px 9px; }
  .nr-rule img { width: 24px; height: 24px; }
  .nr-panel { padding: 18px 14px 20px; border-radius: 22px; }
  .nr-say svg { width: 56px; }
  .nr-bubble { font-size: .94rem; }
  .nr-bigstars svg { width: 52px; height: 52px; }
  .nr-node { width: 132px; }
  .nr-node-ball { width: 54px; height: 54px; font-size: 1.4rem; }
  .nr-node-name { font-size: .86rem; }
  .nr-crew-detail img { width: 70px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-stage *, .nr-stage *::before { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

/* ===== Grown-ups section ===== */
.nr-about { padding: 56px 0 64px; }
.nr-about-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.nr-about h2 { font-family: "Nunito", "Manrope", sans-serif; font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 12px; }
.nr-about-lede { color: var(--muted); max-width: 68ch; margin-bottom: 26px; }
.nr-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.nr-about-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.nr-about-card h3 { font-family: "Nunito", "Manrope", sans-serif; font-size: 1rem; letter-spacing: -.02em; margin-bottom: 6px; }
.nr-about-card p { font-size: .87rem; color: var(--muted); line-height: 1.55; }
.nr-about-note { font-size: .85rem; color: var(--muted); max-width: 72ch; margin-top: 22px; }

.nr-about-class { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: var(--mint, #dcf3e9); color: var(--navy, #142e47); }
.nr-about-class h3 { margin: 0 0 8px; font-size: 1.05rem; }
.nr-about-class p { margin: 0 0 10px; line-height: 1.6; max-width: 70ch; }
.nr-about-class p:last-child { margin-bottom: 0; }
