/* Neon Breaker - all UI styles. rem/em based; safe-area insets + 100dvh keep phones tidy.
   Sections: base, top bar + HUD, banner + hint, overlays (menu, world map, cards, settings, how-to), responsive */
:root { --acc: #FF3D8B; --bar-h: 62px; --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --neon-c: #2FD6FF; --neon-p: #FF3D8B; }
html { font-size: clamp(15px, calc(11px + .38vw), 27px); height: 100%; }
html, body { margin: 0; height: 100%; height: 100dvh; overflow: hidden; background: #070318; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-b); color: var(--paper); }
button { font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
svg.fill, .fill svg { fill: currentColor; stroke: none; }
#app, .nb { position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: hidden; background: #070318; }
.nb-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body.playing .nb-cv { cursor: none; }

/* ---------- buttons (extend the brand .btn) ---------- */
.btn { gap: .5em; white-space: nowrap; touch-action: manipulation; min-height: 2.9em; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn em { font-style: normal; opacity: .75; font-size: .8em; }
.btn--pink { --bg: var(--pink); --fg: #fff; --sh: #8f1c4d; }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --sh: rgba(0, 0, 0, .35); font-size: .9rem; }
.btn--ico { padding: .85em 1em; }
.btn--sm { min-height: 0; }
.shake { animation: nbshake .35s; }
@keyframes nbshake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- top bar ---------- */
.nb-bar { position: absolute; z-index: 45; left: 0; right: 0; top: 0; height: calc(var(--sat) + var(--bar-h)); padding: var(--sat) calc(var(--sar) + 12px) 0 calc(var(--sal) + 12px); display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 2, 22, .82), rgba(6, 2, 22, .5) 70%, rgba(6, 2, 22, 0)); }
.nb-bar > * { pointer-events: auto; }
.bar-l, .bar-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-c { position: absolute; left: 50%; top: calc(var(--sat) + 4px); height: var(--bar-h); transform: translateX(-50%); display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; white-space: nowrap; line-height: 1.1; }
body.playing .bar-c { display: flex; }
body.playing.boss .bar-c { display: none; }
.bar-c small { font-size: max(12px, .62rem); font-weight: 800; letter-spacing: .16em; color: #CFC9F5; text-shadow: 0 2px 4px rgba(0, 0, 0, .7); }
.bar-c b { font-family: var(--font-d); font-weight: 400; font-size: clamp(1rem, .8rem + .6vw, 1.7rem); color: #fff; text-shadow: 0 0 .5em var(--acc), 0 2px 0 rgba(0, 0, 0, .5); }
.nb-home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; }
.nb-home img { width: 34px; height: 34px; }
.nb-home b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; line-height: 1; }
.nb-home b i { font-style: normal; color: var(--lime); }
body.playing .nb-home { display: none; }
.nb-tool { width: 46px; height: 46px; flex: none; border: 0; padding: 0; display: grid; place-items: center; border-radius: 13px; background: rgba(15, 12, 34, .6); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; }
.nb-tool svg { width: 21px; height: 21px; }
.nb-tool:hover { background: rgba(255, 255, 255, .16); }
.tool-pause, .hud-score, .hud-combo, .hud-lives { display: none; }
body.playing .tool-pause { display: grid; } body.playing .hud-score { display: block; } body.playing .hud-lives { display: flex; } body.playing .hud-combo { display: grid; }
.hud-score { line-height: 1; text-shadow: 0 .1em 0 rgba(0, 0, 0, .5); }
.hud-score small, .hud-combo small { font-size: max(12px, .6rem); font-weight: 800; letter-spacing: .14em; color: #B9B3E6; display: block; }
.hud-score b { display: block; font-family: var(--font-d); font-weight: 400; font-size: clamp(1.25rem, 1rem + .7vw, 2rem); letter-spacing: .02em; font-variant-numeric: tabular-nums; margin-top: .1em; text-shadow: 0 0 .45em color-mix(in srgb, var(--acc) 70%, transparent), 0 .08em 0 rgba(0, 0, 0, .5); }
.hud-combo { margin-left: 4px; grid-template-columns: auto; justify-items: start; line-height: 1; opacity: .35; transition: opacity .2s; }
.hud-combo.hot { opacity: 1; }
.hud-combo b { font-family: var(--font-d); font-weight: 400; font-size: 1.15rem; color: var(--sun); text-shadow: 0 0 .5em rgba(255, 210, 63, .6), 0 2px 0 rgba(0, 0, 0, .5); }
.hud-combo.pop b { animation: nbpop .3s var(--ease); }
@keyframes nbpop { 0% { transform: scale(1.5); } 100% { transform: none; } }
.hud-lives { gap: 6px; padding: 0 4px; }
.lf { display: block; width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2) inset; }
.lf.on { background: radial-gradient(circle at 35% 30%, #fff, #fff 25%, var(--acc) 75%); box-shadow: 0 0 10px var(--acc), 0 0 0 1.5px rgba(255, 255, 255, .8) inset; }

.hud-pow { position: absolute; z-index: 12; left: calc(var(--sal) + 12px); bottom: calc(var(--sab) + 12px); display: flex; flex-wrap: wrap; gap: .4rem; max-width: 70vw; pointer-events: none; }
.pw { display: inline-flex; align-items: center; gap: .3rem; padding: 0 .7rem 0 0; border-radius: 99px; background: rgba(15, 12, 34, .6); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; animation: nbpopin .3s var(--ease); }
.pw .ic { width: 3rem; height: auto; margin: -.2rem 0; }
.pw i { display: block; width: 3.4rem; height: .4rem; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.pw i u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
@keyframes nbpopin { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.hud-boss { position: absolute; z-index: 12; left: 50%; top: calc(var(--sat) + 7px); transform: translateX(-50%); width: min(44vw, 640px); pointer-events: none; animation: nbpopin .5s var(--ease); }
.hud-boss[hidden] { display: none; }
.hb-name { display: flex; align-items: baseline; justify-content: center; gap: .8em; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); margin-bottom: .25em; white-space: nowrap; }
.hb-name b { font-family: var(--font-d); font-weight: 400; font-size: 1.05rem; letter-spacing: .06em; color: #FF9DB8; text-shadow: 0 0 .6em rgba(255, 61, 139, .8), 0 2px 0 rgba(0, 0, 0, .6); }
.hb-name span { font-size: max(12px, .7rem); font-weight: 700; color: #DCD7FF; letter-spacing: .1em; text-transform: uppercase; }
.hb-bar { position: relative; height: .85rem; border-radius: 99px; background: rgba(15, 12, 34, .75); box-shadow: 0 0 0 2px rgba(255, 255, 255, .18) inset, 0 .3em 1em rgba(0, 0, 0, .4); overflow: hidden; }
.hb-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #FF3D8B, #FF5B2E 55%, #FFD23F); box-shadow: 0 0 1em rgba(255, 61, 139, .6); transition: width .12s linear; }
.hb-bar u { position: absolute; top: 0; bottom: 0; width: 3px; background: rgba(15, 12, 34, .9); } .hb-bar .n1 { left: 33%; } .hb-bar .n2 { left: 66%; }

/* ---------- banner + hint ---------- */
.nb-banner { position: absolute; z-index: 25; left: 0; right: 0; top: 42%; text-align: center; pointer-events: none; opacity: 0; padding: 0 1em; }
.nb-banner h2 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 1rem + 4vw, 5rem); line-height: 1; color: #fff; text-shadow: 0 .06em 0 rgba(0, 0, 0, .5), 0 0 .5em var(--acc), 0 0 1.2em var(--acc); }
.nb-banner p { margin: .4em 0 0; font-weight: 800; font-size: clamp(.9rem, .6rem + .6vw, 1.5rem); letter-spacing: .16em; text-transform: uppercase; color: #E6E1FF; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.nb-banner.warn h2 { color: #FF3D5A; text-shadow: 0 .06em 0 rgba(0, 0, 0, .5), 0 0 .6em #FF3D5A; animation: nbblink .45s steps(2) infinite; }
.nb-banner.show { animation: nbbanner 2.4s var(--ease) forwards; }
.nb-banner.warn.show { animation: nbbannerw 3.2s var(--ease) forwards; }
@keyframes nbbanner { 0% { opacity: 0; transform: translateY(24px) scale(.88); } 14% { opacity: 1; transform: none; } 72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
@keyframes nbbannerw { 0% { opacity: 0; transform: scale(1.4); } 8% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nbblink { 50% { opacity: .4; } }
.nb-hint { position: absolute; z-index: 24; left: 50%; bottom: calc(var(--sab) + 34%); transform: translateX(-50%); width: max-content; max-width: min(92vw, 40rem); padding: .6em 1.2em; border-radius: 99px; background: rgba(15, 12, 34, .82); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .18) inset, 0 0 1.4rem color-mix(in srgb, var(--acc) 35%, transparent); font-weight: 700; font-size: max(13px, .95rem); text-align: center; color: #E2DEFF; opacity: 0; pointer-events: none; transition: opacity .5s; }
.nb-hint.show { opacity: 1; } .nb-hint b { color: var(--lime); }

/* ---------- overlays ---------- */
.nb-ov { position: absolute; inset: 0; z-index: 40; display: none; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.nb-ov::-webkit-scrollbar { display: none; }
.nb-ov.show { display: block; animation: nbfade .25s ease; }
@keyframes nbfade { from { opacity: 0; } }
@keyframes nbrise { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.ov--menu.show { background: linear-gradient(90deg, rgba(8, 2, 28, .92) 0%, rgba(8, 2, 28, .7) 32%, rgba(8, 2, 28, 0) 58%), linear-gradient(0deg, rgba(8, 2, 28, .45), rgba(8, 2, 28, 0) 26%); }
.ov--screen.show { background: rgba(7, 2, 26, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ov--center.show { background: rgba(7, 2, 26, .6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ov--final.show { background: rgba(20, 4, 50, .34); }
.screen { min-height: 100%; padding: calc(var(--sat) + var(--bar-h) + 1rem) calc(var(--sar) + 1.2rem) calc(var(--sab) + 1.4rem) calc(var(--sal) + 1.2rem); }
.screen--c { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.head { display: flex; align-items: center; gap: 1rem; width: min(100rem, 100%); margin: 0 auto 1.2rem; }
.head h2 { margin: 0; flex: 1; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.6vw, 3rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .4); }
.head-r { display: flex; gap: .6rem; }

/* main menu */
.menu { min-height: 100%; display: grid; align-items: center; padding: calc(var(--sat) + var(--bar-h)) calc(var(--sar) + clamp(1.2rem, 5vw, 6rem)) calc(var(--sab) + 1.4rem) calc(var(--sal) + clamp(1.2rem, 5vw, 6rem)); }
.menu-l { width: min(40rem, 100%); animation: nbrise .55s var(--ease); }
.kick { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-weight: 800; font-size: max(12px, .78rem); letter-spacing: .16em; text-transform: uppercase; color: var(--neon-c); }
.kick::before { content: ""; width: 1.8em; height: 3px; border-radius: 3px; background: currentColor; }
.kick i { font-style: normal; color: #D6D1FA; letter-spacing: .1em; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.gtitle { margin: .12em 0 .18em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3.2rem, min(9vw, 17vh), 9rem); display: grid; justify-items: start; }
.gtitle b { display: block; font-weight: 400; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; background-size: 100% 100%; }
.gtitle b:first-child { background-image: linear-gradient(180deg, #fff 0%, #b8f3ff 35%, #2FD6FF 62%, #1c7ad8 100%); filter: drop-shadow(0 0 .35em rgba(47, 214, 255, .55)) drop-shadow(0 .05em 0 rgba(0, 0, 0, .55)); }
.gtitle b.b2 { margin-left: .5em; background-image: linear-gradient(180deg, #fff6c8 0%, #FFD23F 28%, #FF5B2E 60%, #FF3D8B 100%); filter: drop-shadow(0 0 .35em rgba(255, 61, 139, .6)) drop-shadow(0 .05em 0 rgba(0, 0, 0, .55)); animation: nbglow 3.4s ease-in-out infinite; }
@keyframes nbglow { 50% { filter: drop-shadow(0 0 .6em rgba(255, 91, 46, .9)) drop-shadow(0 .05em 0 rgba(0, 0, 0, .55)); } }
.tag { margin: 0 0 1.5rem; font-size: clamp(.95rem, .5vw + .75rem, 1.35rem); font-weight: 600; color: #DCD7FF; max-width: 30em; line-height: 1.45; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.cta .btn--big { font-size: clamp(1.1rem, .5vw + .9rem, 1.6rem); }
.cta2 { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1.05; }
.chip svg { width: 1.7em; height: 1.7em; flex: none; }
.chip small { display: block; font-size: max(12px, .62rem); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.chip b { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; } .chip b i { font-style: normal; font-size: .65em; color: var(--mute); }
.chip-s b, .chip-s svg { color: var(--sun); } .chip-e b { color: var(--pink); } .chip-w b { color: var(--lime); }

/* world map */
.worlds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 1.2vw, 1.4rem); width: min(100rem, 100%); margin: 0 auto; }
.world { --acc: #FF3D8B; position: relative; padding: 1rem 1.1rem 1.1rem; border-radius: 22px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 16px 40px rgba(0, 0, 0, .4); animation: nbrise .5s calc(var(--i) * .05s) both var(--ease); }
.world-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ic { display: block; width: 100%; height: auto; }
.world::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 2, 28, .35), rgba(8, 2, 28, .82)); }
.world header { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: end; margin-bottom: .8rem; }
.world-n { grid-column: 1 / -1; font-weight: 800; font-size: max(12px, .7rem); letter-spacing: .18em; color: var(--acc); text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.world h3 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(1.1rem, .7rem + .9vw, 1.9rem); line-height: 1; text-shadow: 0 0 .5em var(--acc), 0 3px 0 rgba(0, 0, 0, .5); }
.world p { grid-column: 1; margin: .25em 0 0; font-size: max(12px, .8rem); font-weight: 600; color: #DCD7FF; text-shadow: 0 2px 4px rgba(0, 0, 0, .7); }
.world-st { grid-row: 2; grid-column: 2; display: inline-flex; align-items: center; gap: .3em; font-family: var(--font-d); color: var(--sun); font-size: .95rem; } .world-st svg { width: 1.2em; height: 1.2em; } .world-st i { font-style: normal; color: var(--mute); font-size: .7em; }
.nodes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.node { position: relative; display: grid; justify-items: center; align-content: center; gap: .15em; min-height: 4.6rem; padding: .5em .2em; border: 0; border-radius: 15px; color: #fff; background: rgba(15, 8, 40, .72); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 4px 0 rgba(0, 0, 0, .4); transition: transform .12s var(--ease), box-shadow .15s, background .15s; }
.node b { font-family: var(--font-d); font-weight: 400; font-size: 1.35rem; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.node:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--acc) 30%, rgba(15, 8, 40, .8)); box-shadow: 0 0 0 2px var(--acc) inset, 0 7px 0 rgba(0, 0, 0, .4), 0 0 1.2rem color-mix(in srgb, var(--acc) 50%, transparent); }
.node:active { transform: translateY(2px); }
.nst { display: flex; gap: 1px; min-height: 1em; } .nst svg { width: 1em; height: 1em; } .nst .st svg { width: 1em; height: 1em; color: rgba(255, 255, 255, .22); fill: currentColor; stroke: none; } .nst .st.on svg { color: var(--sun); filter: drop-shadow(0 0 .25em rgba(255, 210, 63, .8)); }
.node.lock { filter: grayscale(.85) brightness(.65); cursor: not-allowed; } .node.lock .nst svg { color: #fff; }
.node.cur { box-shadow: 0 0 0 3px var(--acc) inset, 0 4px 0 rgba(0, 0, 0, .4), 0 0 1.6rem color-mix(in srgb, var(--acc) 60%, transparent); animation: nbcur 1.8s ease-in-out infinite; }
@keyframes nbcur { 50% { box-shadow: 0 0 0 3px var(--acc) inset, 0 4px 0 rgba(0, 0, 0, .4), 0 0 2.6rem var(--acc); } }
.node.boss { background: linear-gradient(180deg, rgba(120, 10, 60, .85), rgba(40, 4, 40, .9)); box-shadow: 0 0 0 2px #FF3D8B inset, 0 4px 0 rgba(0, 0, 0, .4); }
.node.boss em { position: absolute; top: -.55em; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .2em; padding: 0 .55em; border-radius: 99px; background: #FF3D8B; color: #fff; font-style: normal; font-family: var(--font-d); font-size: max(12px, .6rem); letter-spacing: .04em; box-shadow: 0 2px 0 #8f1c4d; white-space: nowrap; }
.node.boss em svg { width: 1.1em; height: 1.1em; stroke-width: 2.6; }

/* cards */
.card { --acc: #FF3D8B; width: min(34rem, 100%); text-align: center; padding: 1.8rem 1.8rem 1.5rem; border-radius: 28px; background: linear-gradient(180deg, #2A1B5E, #170F3C); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 45%, transparent) inset, 0 30px 80px rgba(0, 0, 0, .55), 0 0 4rem color-mix(in srgb, var(--acc) 18%, transparent); animation: nbrise .35s var(--ease); margin: auto; }
.card h2 { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.8rem, 1rem + 2.2vw, 3rem); line-height: 1; margin: 0 0 .3em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 .5em color-mix(in srgb, var(--acc) 60%, transparent); }
.card .k { display: block; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: max(12px, .75rem); color: var(--acc); margin-bottom: .4em; }
.card .sub { margin: 0 0 1rem; color: #CFC9F5; font-weight: 600; }
.card .acts { display: grid; gap: .6rem; margin-top: 1.1rem; } .card .acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .card .acts .btn { width: 100%; }
.card .rec { display: inline-block; margin: .4rem 0; padding: .3em 1em; border-radius: 99px; background: var(--sun); color: var(--ink); font-family: var(--font-d); font-size: .9rem; transform: rotate(-3deg); box-shadow: 0 3px 0 #B68A00; }
.score-big { font-family: var(--font-d); font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem); line-height: 1; color: var(--acc); text-shadow: 0 5px 0 rgba(0, 0, 0, .4), 0 0 .4em color-mix(in srgb, var(--acc) 60%, transparent); font-variant-numeric: tabular-nums; margin: .15em 0; }
.biglab { font-size: max(12px, .7rem); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr)); gap: .5rem; margin: 1rem 0; }
.grid div { padding: .6em .4em; border-radius: 14px; background: rgba(255, 255, 255, .06); line-height: 1.1; }
.grid small { display: block; font-size: max(12px, .62rem); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .3em; }
.grid b { font-family: var(--font-d); font-weight: 400; font-size: 1.25rem; }
.bigstars { display: flex; justify-content: center; gap: .5rem; margin: .5rem 0 .8rem; }
.bst { display: inline-block; transform: scale(0); animation: nbstar .55s var(--d) forwards cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.bst:nth-child(2) { margin-top: -.7rem; } .bst svg { width: 4.2rem; height: 4.2rem; fill: rgba(255, 255, 255, .2); stroke: none; } .bst.on svg { fill: var(--sun); filter: drop-shadow(0 0 .6rem rgba(255, 210, 63, .7)); }
@keyframes nbstar { 0% { transform: scale(0) rotate(-50deg); } 100% { transform: scale(1) rotate(0); } }
.objs { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .35rem; text-align: left; }
.objs li { display: flex; align-items: center; gap: .6em; padding: .4em .8em; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 700; font-size: .92rem; color: #CFC9F5; animation: nbrise .4s var(--d) both; }
.objs li i { display: block; } .objs li i svg { width: 1.2em; height: 1.2em; stroke-width: 3; }
.objs li.ok { background: rgba(198, 255, 61, .13); color: #fff; } .objs li.ok i svg { color: var(--lime); } .objs li.no { color: #8F89BE; } .objs li.no i svg { color: #FF5B2E; }
.unl { margin: .7rem 0 0; padding: .45em 1em; border-radius: 14px; background: color-mix(in srgb, var(--acc) 22%, transparent); box-shadow: 0 0 0 2px var(--acc) inset; font-family: var(--font-d); text-transform: uppercase; font-size: .85rem; animation: nbrise .5s 1.2s both var(--ease); }
.card--set { width: min(36rem, 100%); text-align: left; } .card--set h2 { text-align: center; }
.opt { margin: .7rem 0; display: grid; gap: .35rem; } .opt small { font-size: max(12px, .66rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; } .seg button { flex: 1; min-width: 4.4em; min-height: 2.6em; padding: .5em .8em; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: .9rem; color: #D6D1FA; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; }
.seg button:hover { background: rgba(255, 255, 255, .14); } .seg button.on { background: var(--pink); color: #fff; box-shadow: none; }
input[type=range] { width: 100%; height: 2.2em; accent-color: var(--pink); touch-action: pan-y; }
.card--how { width: min(70rem, 100%); text-align: left; } .card--how h2 { text-align: center; } .card--how .k { text-align: center; }
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; } .how-w { grid-column: 1 / -1; }
.how h4 { margin: 0 0 .5rem; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; color: var(--neon-c); }
.how ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; font-weight: 600; font-size: .93rem; color: #DCD7FF; line-height: 1.35; }
.how kbd { font-family: var(--font-d); font-size: .75rem; padding: .3em .55em; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 3px 0 #9992c2; white-space: nowrap; margin-right: .35em; }
.plain li { padding-left: 1.1em; position: relative; } .plain li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45em; height: .45em; border-radius: 50%; background: var(--pink); }
.pk li { display: grid; grid-template-columns: 4.4rem 1fr; gap: .7rem; align-items: center; } .pk .ic { width: 4.4rem; height: auto; } .pk b { display: block; color: #fff; } .pk span { font-size: .82rem; color: #B9B3E6; }
.pk2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .worlds { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  html { font-size: 15px; }
  .nb-home b { display: none; } .nb-home { padding: 6px; }
  .nb-tool { width: 42px; height: 42px; } .nb-tool[data-a=full] { display: none; }
  .bar-l, .bar-r { gap: 8px; } .bar-c { display: none !important; }
  .hud-boss { top: calc(var(--sat) + var(--bar-h) - 2px); width: 78vw; } .hb-name { display: none; }
  .how { grid-template-columns: 1fr; } .pk2 { grid-template-columns: 1fr; }
  .menu { align-items: end; text-align: center; padding-bottom: calc(var(--sab) + 1rem); } .menu-l { margin: 0 auto; } .gtitle { justify-items: center; font-size: clamp(3rem, 16vw, 5rem); } .gtitle b.b2 { margin-left: 0; }
  .kick { justify-content: center; } .kick::before { display: none; } .tag { margin-inline: auto; font-size: .95rem; margin-bottom: 1rem; } .cta, .cta2, .chips { justify-content: center; }
  .ov--menu.show { background: linear-gradient(0deg, rgba(8, 2, 28, .94) 0%, rgba(8, 2, 28, .62) 55%, rgba(8, 2, 28, .1) 100%); }
  .hide-s { display: none; } .chip { padding: .4em .8em; } .chip b { font-size: 1rem; }
  .card { padding: 1.3rem 1.1rem 1.1rem; } .bst svg { width: 3.4rem; height: 3.4rem; }
  .node { min-height: 4.2rem; } .node b { font-size: 1.15rem; }
  .hud-pow { max-width: 92vw; bottom: calc(var(--sab) + 10px); left: 50%; transform: translateX(-50%); justify-content: center; }
  .pw .ic { width: 2.6rem; } .pw i { width: 2.6rem; }
}
@media (max-height: 560px) {
  .hide-s { display: none; } .chips .chip:nth-child(n+3) { display: none; } .cta2 { margin-top: .6rem; } .cta { margin-top: .2rem; }
  .screen { padding-top: calc(var(--sat) + var(--bar-h) + .4rem); } .gtitle { font-size: clamp(2.4rem, 14vh, 5rem); } .tag { display: none; } .chips { margin-top: .8rem; } .kick i { display: none; }
  .card { padding: 1rem 1.2rem; } .card h2 { font-size: 1.7rem; } .bst svg { width: 2.6rem; height: 2.6rem; } .score-big { font-size: 2.2rem; } .grid { margin: .5rem 0; }
  .objs li { padding: .25em .7em; } .card .acts { margin-top: .6rem; } .nb-hint { bottom: calc(var(--sab) + 26%); } .nb-banner { top: 38%; }
  .node { min-height: 3.6rem; } .world { padding: .7rem .8rem; } .world p { display: none; } .nb-bar { background: linear-gradient(180deg, rgba(6, 2, 22, .75), rgba(6, 2, 22, 0)); }
}
@media (max-height: 560px) {
  .kick { display: none; } .menu { align-items: center; padding-top: calc(var(--sat) + var(--bar-h) - 4px); }
  .gtitle { font-size: clamp(2rem, 12.5vh, 4.2rem); margin: 0 0 .22em; } .gtitle b.b2 { margin-left: .3em; }
  .btn { min-height: 2.35em; font-size: .95rem; padding: .5em 1em; } .btn--big { font-size: 1.05rem; padding: .55em 1.3em; } .btn--ico { padding: .5em .8em; }
  .cta { margin-top: 0; gap: .5rem; } .cta2 { margin-top: .5rem; gap: .5rem; } .chips { margin-top: .6rem; } .chip { padding: .3em .8em; } .chip b { font-size: 1rem; }
  .opt { margin: .35rem 0; } input[type=range] { height: 1.5em; } .seg button { min-height: 2.1em; padding: .3em .6em; } .card--set { padding: .8rem 1.2rem; }
  .card { padding: .8rem 1.2rem; } .card h2 { font-size: 1.5rem; margin-bottom: .15em; } .card .k { margin-bottom: .15em; } .bigstars { margin: .1rem 0 .3rem; } .bst svg { width: 2.2rem; height: 2.2rem; } .bst:nth-child(2) { margin-top: -.4rem; }
  .score-big { font-size: 1.9rem; margin: 0; } .card .rec { margin: .2rem 0; padding: .15em .8em; font-size: .75rem; } .card .acts { margin-top: .5rem; gap: .4rem; } .grid { margin: .4rem 0; } .grid div { padding: .3em; } .grid b { font-size: 1rem; }
  .screen { padding-bottom: 1rem; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .menu { padding-top: calc(var(--sat) + var(--bar-h) - 6px); } .menu-l { width: min(34rem, 56%); }
  .card--clear .objs { display: none; } .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-pow { left: calc(var(--sal) + 10px); transform: none; justify-content: flex-start; flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .gtitle b.b2, .node.cur, .nb-banner.warn h2 { animation: none; } }
