@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; }
#nsMusic .ns-x { display: none; }
#nsMusic[aria-pressed="false"] .ns-x { display: inline; }
#nsMusic[aria-pressed="false"] { opacity: .75; }
.ns-hint { margin-right: auto; padding: 6px 12px; border-radius: 999px; background: rgba(69,230,255,.16); border: 1px solid rgba(69,230,255,.55); color: #d8f8ff; font-weight: 700; font-size: 13px; white-space: nowrap; animation: nsHint 1.4s ease-in-out infinite; cursor: pointer; }
.ns-hint[hidden] { display: none; }
.ns-bar.hinting .ns-best { display: none; }
@keyframes nsHint { 50% { background: rgba(69,230,255,.34); } }
@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-install { position: absolute; left: 50%; bottom: calc(14px + var(--sb)); transform: translateX(-50%); z-index: 6; height: 40px; padding: 0 18px;
  border: 1px solid rgba(69,230,255,.45); background: rgba(10,8,30,.88); color: #7ff6ff; font: 700 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 18px rgba(69,230,255,.18); touch-action: manipulation; }
.ns-install svg { width: 16px; height: 16px; color: #45e6ff; }
.ns-install[hidden] { display: none !important; }
.ns-modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--st)) calc(16px + var(--sr)) calc(16px + var(--sb)) calc(16px + var(--sl));
  background: rgba(3,2,12,.72); touch-action: none; }
.ns-modal[hidden] { display: none !important; }
.ns-modal-card { width: min(92vw, 420px); max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: 20px 18px 16px;
  border-radius: 18px; border: 1px solid rgba(168,124,255,.45); background: linear-gradient(180deg, rgba(18,12,40,.98), rgba(8,6,24,.98));
  color: #e8ebff; box-shadow: 0 0 40px rgba(168,124,255,.22), 0 12px 40px rgba(0,0,0,.45);
  font: 600 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-user-select: text; user-select: text; }
.ns-modal-card h2 { margin: 0 0 8px; font: 900 22px/1.15 "Expressa", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(90deg, #45e6ff, #a87cff, #ff4fd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-modal-lead { margin: 0 0 14px; color: rgba(220,230,255,.85); font-weight: 600; }
.ns-a2hs-pane { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(168,124,255,.22); background: rgba(8,6,24,.45); }
.ns-a2hs-pane.is-you { border-color: rgba(69,230,255,.55); background: rgba(69,230,255,.08); box-shadow: 0 0 16px rgba(69,230,255,.12); }
.ns-a2hs-pane h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #c8b8ff; display: flex; align-items: center; gap: 8px; }
.ns-a2hs-pane.is-you h3 { color: #7ff6ff; }
.ns-a2hs-you { display: inline-block; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(69,230,255,.5); background: rgba(69,230,255,.12); color: #7ff6ff; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ns-a2hs-you[hidden] { display: none !important; }
.ns-a2hs-pane ol { margin: 0; padding: 0 0 0 1.15rem; }
.ns-a2hs-pane li { margin: 0 0 4px; }
.ns-a2hs-pane p { margin: 0; color: rgba(220,230,255,.82); }
.ns-a2hs-pane svg { width: 16px; height: 16px; vertical-align: -3px; color: #45e6ff; }
.ns-modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.ns-modal-actions .ns-btn { flex: 1; height: 42px; }
#nsA2hsInstall { background: rgba(69,230,255,.18); border-color: rgba(69,230,255,.55); color: #7ff6ff; }
#nsA2hsInstall[hidden], .ns-btn[hidden] { display: none !important; }

#nsA2hsOk { background: rgba(168,124,255,.2); border-color: rgba(168,124,255,.5); }
.ns-a2hs-open, .ns-a2hs-open body { touch-action: none; }
