@font-face { font-family: "Expressa"; src: url("/fonts/expressa-bold.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
:root { --st: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05040f; color: #dfe4ff; overflow: hidden; overscroll-behavior: none; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
body { position: fixed; inset: 0; }
.ns { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; height: 100dvh; background: #05040f; touch-action: none; }
.ns-bar { display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--st)) max(10px, var(--sr)) 6px max(10px, var(--sl));
  background: #05040f; border-bottom: 1px solid rgba(168,124,255,.22); }
.ns-best { margin-right: auto; color: rgba(200,210,255,.8); letter-spacing: .02em; }
.ns-best b { color: #ffd24a; font-weight: 800; margin-left: 4px; font-variant-numeric: tabular-nums; }
.ns-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(168,124,255,.35); background: rgba(168,124,255,.1); color: #e8ebff; font: inherit; cursor: pointer; touch-action: manipulation; }
.ns-btn svg { width: 18px; height: 18px; }
.ns-btn:focus-visible { outline: 2px solid #45e6ff; outline-offset: 2px; }
.ns-btn[aria-pressed="true"]#nsPause { background: rgba(69,230,255,.18); border-color: rgba(69,230,255,.5); }
#nsSound .ns-x { display: none; }
#nsSound[aria-pressed="false"] .ns-x { display: inline; }
#nsSound[aria-pressed="false"] .ns-waves { display: none; }
@media (max-width: 520px) { .ns-btn span { display: none; } .ns-btn { padding: 0 10px; } }
.ns-stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; cursor: crosshair; }
.ns-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.ns-a2hs { position: fixed; left: 50%; bottom: calc(14px + var(--sb)); transform: translateX(-50%); width: min(92vw, 420px); padding: 12px 40px 12px 14px;
  border-radius: 14px; border: 1px solid rgba(69,230,255,.4); background: rgba(10,8,30,.92); color: #e8ebff; font: 600 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: left; z-index: 5; cursor: pointer; }
.ns-a2hs svg { width: 16px; height: 16px; vertical-align: -3px; color: #45e6ff; }
.ns-a2hs-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: .7; }
.ns-a2hs[hidden] { display: none; }
