/* Nebula Strike, Beta 0.1: page chrome only. Game rendering lives in nebula-strike.js. */
.ns-hero { padding: calc(112px + var(--safe-t) + var(--top-push)) 0 18px; text-align: center; }
.ns-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.ns-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-inline: auto; }
.ns-hero .lede { margin-inline: auto; text-align: center; }
.ns-hero .eyebrow { justify-content: center; }
.ns-section { padding: 0 0 40px; }
.ns-wrap { display: flex; flex-direction: column; align-items: center; }
.ns { width: min(100%, 440px); display: grid; gap: 10px; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ns-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 18px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.ns-best { font: 700 .82rem/1 var(--font); color: var(--ink-2, #ccd); white-space: nowrap; }
.ns-best b { color: var(--ink, #fff); font-variant-numeric: tabular-nums; margin-left: 2px; }
.ns-beta { margin-right: auto; font: 700 .56rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; color: rgba(255,214,150,.8); border: 1px solid rgba(255,196,110,.25); white-space: nowrap; }
.ns-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font: 650 .8rem/1 var(--font); color: var(--ink, #fff); cursor: pointer; border: 1px solid var(--line, rgba(255,255,255,.14)); background: rgba(255,255,255,.07); touch-action: manipulation; white-space: nowrap; }
.ns-btn svg { width: 16px; height: 16px; flex: none; }
.ns-btn:active { background: rgba(255,255,255,.18); }
.ns-btn:focus-visible { outline: 2px solid var(--cyan, #45e6ff); outline-offset: 2px; }
#nsSound[aria-pressed="false"] .ns-waves { display: none; }
#nsSound[aria-pressed="true"] .ns-x { display: none; }
.ns-ico-exit, .ns-pause { display: none; }
.ns-stage { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - 230px); min-height: 380px; margin-inline: auto; border-radius: 24px; overflow: hidden; background: #05040f; border: 1px solid rgba(168,124,255,.28); box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 60px -20px rgba(168,124,255,.5); touch-action: pan-y; }
.ns-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; pointer-events: none; }
.ns-gate { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding-top: 22%; box-sizing: border-box; pointer-events: none; background: linear-gradient(180deg, rgba(5,4,15,0), rgba(5,4,15,.12) 55%, rgba(5,4,15,.35)); }
.ns-play { all: unset; pointer-events: auto; touch-action: manipulation; cursor: pointer; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px 0 20px; border-radius: 999px; font: 800 1.05rem/1 var(--font, system-ui); letter-spacing: -.01em; color: #0a0618; background: linear-gradient(135deg, #7ff6ff, #a87cff 55%, #ff7ae0); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 0 28px rgba(168,124,255,.65), 0 14px 32px rgba(0,0,0,.4); transition: transform .18s var(--ease-out, ease), box-shadow .18s var(--ease-out, ease); }
.ns-play svg { width: 20px; height: 20px; }
.ns-play:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.45) inset, 0 0 40px rgba(168,124,255,.85), 0 14px 32px rgba(0,0,0,.4); }
.ns-play:active { transform: scale(.97); }
.ns-play:focus-visible { outline: 2px solid #45e6ff; outline-offset: 3px; }
.ns-help { margin-top: 12px; font-size: .85rem; color: var(--ink-2, #aab); text-align: center; max-width: 36em; }
.ns-help kbd { font: 700 .75rem var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line, rgba(255,255,255,.2)); background: rgba(255,255,255,.07); }
.ns-guide { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 640px); }
.ns-guide li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: linear-gradient(180deg, var(--card-2, rgba(255,255,255,.06)), var(--card, rgba(255,255,255,.03))); }
.ns-guide i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font: 900 .9rem/1 var(--font); font-style: normal; color: #fff; background: color-mix(in srgb, var(--c) 30%, #0a0618); box-shadow: inset 0 0 0 2px var(--c); text-shadow: 0 0 8px var(--c); }
.ns-guide span { display: grid; gap: 2px; min-width: 0; }
.ns-guide b { font-size: .92rem; }
.ns-guide small { font-size: .8rem; color: var(--ink-2, #aab); line-height: 1.4; }
@media (max-width: 520px) { .ns-guide { grid-template-columns: 1fr; } }
@media (min-width: 761px) {
  .ns { width: min(100%, 520px); }
  .ns-stage { aspect-ratio: 9 / 14; max-height: calc(100vh - 260px); min-height: 440px; }
}
/* full screen (CSS-based so it works on iOS Safari and the Home Screen app too) */
html.ns-full, html.ns-full body { overflow: hidden !important; height: 100%; overscroll-behavior: none; touch-action: none; }
html.ns-full .topbar, html.ns-full .gnav, html.ns-full .footer, html.ns-full .ns-hero, html.ns-full .ns-help, html.ns-full .ns-guide, html.ns-full .wxs, html.ns-full .wxs-back, html.ns-full .skip, html.ns-full .edge-swipe, html.ns-full .ns-gate { display: none !important; }
html.ns-full .ns-section, html.ns-full .ns-wrap { padding: 0; }
html.ns-full .ns { position: fixed; inset: 0; z-index: 9999; width: 100%; height: 100dvh; gap: 0; grid-template-rows: auto 1fr; background: #05040f; touch-action: none; }
html.ns-full .ns-bar { border-radius: 0; padding: calc(8px + var(--safe-t) + var(--top-push)) max(10px, var(--safe-r, 0px)) 8px max(10px, var(--safe-l, 0px)); background: #05040f; backdrop-filter: none; -webkit-backdrop-filter: none; border-width: 0 0 1px; border-color: rgba(168,124,255,.22); }
html.ns-full .ns-stage { aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; border: 0; box-shadow: none; height: 100%; touch-action: none; }
html.ns-full .ns-stage canvas { pointer-events: auto; touch-action: none; }
html.ns-full .ns-pause { display: inline-flex; }
html.ns-full .ns-ico-full { display: none; }
html.ns-full .ns-ico-exit { display: block; }
html.ns-full .ns-full-btn { background: rgba(168,124,255,.22); border-color: rgba(168,124,255,.5); }
@media (max-width: 380px) { html.ns-full .ns-beta { display: none; } html.ns-full .ns-btn span { display: none; } html.ns-full .ns-best { margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .ns-btn, .ns-play { transition: none; } }
