/* =========================================================================
   NoxiaSounds — Base design system  (v1.1 · dusk)
   Shared by auth.php and index.php
   ========================================================================= */

:root {
  /* Dusk palette — lighter, warmer, softer than night */
  --bg-0: #241e5e;
  --bg-1: #2e2672;
  --bg-2: #3b3083;
  --bg-3: #4b3c90;

  --ink: #fbf8ff;
  --ink-2: rgba(246, 242, 255, .8);
  --ink-3: rgba(240, 234, 255, .62);
  --ink-4: rgba(240, 234, 255, .4);

  --violet: #8d72f2;
  --violet-2: #a993ff;
  --lilac: #d6c8ff;
  --mist: #efe9ff;
  --peach: #f6cdb4;
  --rose: #eab0c8;
  --teal: #9fdcd6;
  --indigo: #2a2068;

  --glass: rgba(255, 255, 255, .09);
  --glass-2: rgba(255, 255, 255, .13);
  --glass-strong: rgba(52, 42, 120, .72);
  --stroke: rgba(255, 255, 255, .14);
  --stroke-2: rgba(255, 255, 255, .24);

  --grad-cta: linear-gradient(135deg, #a991ff 0%, #8a6cf2 55%, #7457e6 100%);
  --grad-soft: linear-gradient(160deg, rgba(214, 200, 255, .22), rgba(214, 200, 255, .05));

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ui: var(--f-body);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset on top of Bootstrap ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
@supports (height: 100dvh) { html, body { height: 100dvh; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
}
h1, h2, h3, h4, .display {
  font-family: var(--f-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0;
}
h5, h6 { font-family: var(--f-body); margin: 0; }
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 300; color: var(--lilac); }
p { margin: 0; }
a { color: var(--lilac); text-decoration: none; }
a:hover { color: var(--mist); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(214, 200, 255, .4); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 15px; height: 15px; }
.ic-lg { width: 26px; height: 26px; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Dusk sky with texture ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(130% 55% at 50% 120%, rgba(250, 186, 160, .7) 0%, rgba(232, 150, 182, .32) 38%, rgba(232, 150, 182, 0) 66%),
    radial-gradient(70% 45% at 92% 4%, rgba(176, 150, 255, .5) 0%, rgba(176, 150, 255, 0) 65%),
    radial-gradient(55% 40% at 4% 18%, rgba(110, 200, 210, .16) 0%, rgba(110, 200, 210, 0) 70%),
    linear-gradient(180deg, #221d62 0%, #30277a 32%, #463587 60%, #654892 84%, #845693 100%);
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Nebula clouds: soft colour that slowly breathes and drifts */
.sky__nebula { position: absolute; inset: 0; }
.sky__nebula i { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.sky__nebula i:nth-child(1) { width: 60vmax; height: 38vmax; left: -18vmax; top: 6%; background: radial-gradient(closest-side, rgba(150, 120, 255, .55), transparent); animation: neb-a 46s ease-in-out infinite alternate; }
.sky__nebula i:nth-child(2) { width: 52vmax; height: 34vmax; right: -16vmax; top: 30%; background: radial-gradient(closest-side, rgba(236, 140, 190, .38), transparent); animation: neb-b 58s ease-in-out infinite alternate; }
.sky__nebula i:nth-child(3) { width: 46vmax; height: 30vmax; left: 10%; bottom: -10%; background: radial-gradient(closest-side, rgba(255, 190, 150, .4), transparent); animation: neb-c 40s ease-in-out infinite alternate; }
.sky__nebula i:nth-child(4) { width: 36vmax; height: 24vmax; left: 34%; top: -8%; background: radial-gradient(closest-side, rgba(120, 210, 220, .22), transparent); animation: neb-b 64s ease-in-out infinite alternate-reverse; }
.sky__nebula i:nth-child(5) { width: 70vmax; height: 16vmax; left: -10%; top: 46%; transform: rotate(-12deg); background: radial-gradient(closest-side, rgba(214, 200, 255, .22), transparent); animation: neb-band 52s ease-in-out infinite alternate; }
@keyframes neb-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(8vmax, 4vmax) scale(1.15); } }
@keyframes neb-b { 0% { transform: translate(0, 0) scale(1.05); } 100% { transform: translate(-7vmax, -5vmax) scale(.9); } }
@keyframes neb-c { 0% { transform: translate(0, 0) scale(.95); } 100% { transform: translate(6vmax, -4vmax) scale(1.12); } }
@keyframes neb-band { 0% { transform: rotate(-12deg) translateX(-4vmax); opacity: .4; } 100% { transform: rotate(-8deg) translateX(6vmax); opacity: .75; } }
/* Slowly drifting aurora */
.sky__haze {
  position: absolute;
  width: 120vmax; height: 120vmax;
  left: 50%; top: 40%;
  margin: -60vmax 0 0 -60vmax;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(196, 176, 255, .22), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(246, 190, 210, .16), transparent);
  animation: haze 70s linear infinite;
  will-change: transform;
}
@keyframes haze { to { transform: rotate(360deg); } }
/* Flowing sound-line texture (filled by core.js) */
.sky__lines { position: absolute; left: 0; width: 100%; bottom: -6%; height: 72%; opacity: .7; overflow: hidden; }
.sky__lines g { transform-box: fill-box; will-change: transform; }
.sky__lines-a { animation: lines-a 140s linear infinite; }
.sky__lines-b { animation: lines-b 200s linear infinite; }
@keyframes lines-a { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lines-b { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.sky__lines path { fill: none; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
@keyframes lines { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
/* Paper grain */
.sky::after {
  content: "";
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .07;
}

/* Glowing planets (decorative) */
.planet {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff6ef 0%, #f6cdb4 24%, #d49ab4 58%, #7a58a8 88%, #4e3a8a 100%);
  box-shadow: 0 0 70px 10px rgba(246, 205, 180, .2), inset -10px -14px 30px rgba(40, 24, 96, .45);
  animation: drift 24s var(--ease-soft) infinite alternate;
}
.planet--violet {
  background: radial-gradient(circle at 32% 28%, #f6f2ff 0%, #d0c0ff 25%, #9a80f6 60%, #4f3ea8 100%);
  box-shadow: 0 0 70px 8px rgba(169, 147, 255, .25), inset -10px -14px 30px rgba(30, 20, 90, .45);
}
.planet--dim { opacity: .6; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(var(--dx, 12px), var(--dy, -18px), 0); } }
@media (max-width: 991.98px) { .planet--desk { display: none; } }

/* ---------- Glass surfaces ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
}

/* ---------- Buttons ---------- */
.btn-nx {
  --h: 56px;
  height: var(--h);
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--indigo);
  background: linear-gradient(180deg, #ffffff 0%, #ece6ff 100%);
  box-shadow: 0 16px 36px -16px rgba(20, 10, 60, .7), inset 0 -2px 0 rgba(140, 114, 242, .18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s, background .3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-nx:hover { color: var(--indigo); background: linear-gradient(180deg, #ffffff 0%, #f3efff 100%); box-shadow: 0 18px 40px -14px rgba(20, 10, 60, .75), inset 0 -2px 0 rgba(140, 114, 242, .18); }
.btn-nx:active { transform: scale(.97); }
.btn-nx[disabled], .btn-nx.is-disabled { opacity: .38; pointer-events: none; }
.btn-nx--block { width: 100%; }
.btn-nx--ghost {
  color: var(--ink);
  background: rgba(255,255,255,.1);
  border: 1px solid var(--stroke-2);
  box-shadow: none;
}
.btn-nx--ghost:hover { color: var(--ink); background: rgba(255,255,255,.16); box-shadow: none; }
.btn-nx--violet { color: #fff; background: var(--grad-cta); box-shadow: 0 16px 34px -14px rgba(116, 87, 230, .95); }
.btn-nx--violet:hover { color: #fff; background: var(--grad-cta); }
.btn-nx--sm { --h: 42px; padding: 0 18px; font-size: 14px; }

.btn-link-nx {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 6px;
  transition: color .3s;
}
.btn-link-nx:hover { color: var(--ink); }

.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.1);
  border: 1px solid var(--stroke);
  transition: background .3s, transform .3s var(--ease), color .3s;
}
.icon-btn:hover { background: rgba(255,255,255,.16); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.is-on { color: var(--peach); }

/* ---------- Play button (shared) ----------
   A soft pearl disc with an optically centred glyph and a breathing halo */
.play-btn {
  --s: 78px;
  position: relative;
  width: var(--s); height: var(--s);
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--indigo);
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f4f0ff 55%, #e2d9ff 100%);
  box-shadow: 0 18px 40px -14px rgba(18, 8, 56, .75), inset 0 -3px 6px rgba(140, 114, 242, .2);
  transition: transform .4s var(--ease);
}
.play-btn::before {
  content: "";
  position: absolute; inset: -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.28);
  transition: transform .6s var(--ease), opacity .6s;
}
.play-btn::after {
  content: "";
  position: absolute; inset: -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  opacity: 0;
}
.play-btn.is-playing::after { animation: halo 3.2s var(--ease-soft) infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.35); opacity: 0; } }
.play-btn:hover { transform: scale(1.04); color: var(--indigo); }
.play-btn:active { transform: scale(.95); }
.play-btn .ic { width: calc(var(--s) * .34); height: calc(var(--s) * .34); }
.play-btn--sm { --s: 52px; }
.play-btn--sm::before, .play-btn--sm::after { inset: -6px; }

/* ---------- Form fields ---------- */
.field { position: relative; display: block; }
.field__input {
  width: 100%;
  height: 58px;
  padding: 22px 52px 6px 52px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field__input:focus {
  border-color: rgba(214, 200, 255, .7);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px rgba(169, 147, 255, .18);
}
.field__label {
  position: absolute;
  left: 52px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--ink-3);
  pointer-events: none;
  transition: all .3s var(--ease);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { top: 17px; font-size: 11px; letter-spacing: .06em; color: var(--lilac); }
.field__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.field__action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-3); border-radius: 50%; }
.field__action:hover { color: var(--ink); }
.field + .field { margin-top: 12px; }

/* ---------- Chips & toggles ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--ink); background: rgba(255,255,255,.13); }
.chip.is-active { color: var(--indigo); background: #f4f0ff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(18, 8, 56, .7); }

.switch {
  --w: 46px; --h: 28px;
  position: relative;
  width: var(--w); height: var(--h);
  flex: none;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  transition: background .35s var(--ease);
}
.switch::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: calc(var(--h) - 6px); height: calc(var(--h) - 6px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .4s var(--ease);
}
.switch.is-on { background: var(--violet); }
.switch.is-on::after { transform: translateX(calc(var(--w) - var(--h))); }

/* Range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; --val: 50%; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--peach) 0%, var(--lilac) var(--val), rgba(255,255,255,.2) var(--val)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--lilac); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.16), 0 4px 10px rgba(0,0,0,.3); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- The Orb (signature visual) ---------- */
.orb { --size: 240px; position: relative; width: var(--size); height: var(--size); flex: none; }
.orb__glow {
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,200,255,.42) 0%, rgba(169,147,255,.14) 40%, rgba(169,147,255,0) 68%);
  animation: orb-breathe 8s var(--ease-soft) infinite;
  transform: scale(var(--pulse, 1));
}
.orb__ring { position: absolute; inset: -9%; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.orb__ring:nth-of-type(3) { inset: -18%; border-color: rgba(255,255,255,.09); }
.orb__ring:nth-of-type(4) { inset: -28%; border-color: rgba(255,255,255,.05); }
.orb__sphere {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.95) 0%, rgba(244,238,255,.6) 14%, rgba(214,200,255,0) 42%),
    radial-gradient(circle at 50% 40%, #ece4ff 0%, #c3b0ff 34%, #957af3 62%, #5a46b4 86%, #382c80 100%);
  box-shadow: inset -18px -26px 50px rgba(40, 26, 110, .45), inset 10px 12px 30px rgba(255,255,255,.25), 0 30px 80px -24px rgba(30, 16, 90, .8);
}
.orb__scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.orb__content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 2; }
@keyframes orb-breathe {
  0%, 100% { opacity: .75; transform: scale(calc(var(--pulse, 1) * .96)); }
  50% { opacity: 1; transform: scale(calc(var(--pulse, 1) * 1.04)); }
}

/* ---------- Screen system ---------- */
.stage { position: relative; z-index: 1; height: 100%; }
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0) scale(.985);
  filter: blur(8px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease), visibility 0s linear .9s;
}
.screen.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .12s, .12s, .12s, 0s; }
.screen.is-leaving { transform: translate3d(0, -14px, 0) scale(1.01); }
.screen.is-back { transform: translate3d(0, 18px, 0) scale(.985); }

.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.is-active .reveal > *, .reveal.is-in > * { opacity: 1; transform: none; }
.is-active .reveal > *:nth-child(1) { transition-delay: .25s; }
.is-active .reveal > *:nth-child(2) { transition-delay: .33s; }
.is-active .reveal > *:nth-child(3) { transition-delay: .41s; }
.is-active .reveal > *:nth-child(4) { transition-delay: .49s; }
.is-active .reveal > *:nth-child(5) { transition-delay: .57s; }
.is-active .reveal > *:nth-child(6) { transition-delay: .65s; }
.is-active .reveal > *:nth-child(7) { transition-delay: .73s; }

/* ---------- Splash / preloader ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(247, 182, 164, .55), transparent 65%),
    radial-gradient(70% 50% at 50% 42%, rgba(150, 126, 250, .45), transparent 70%),
    linear-gradient(180deg, #2a2370, #46378a);
  transition: opacity 1s var(--ease), visibility 0s 1s, filter 1s var(--ease);
}
.splash.is-done { opacity: 0; visibility: hidden; filter: blur(10px); }
.splash__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.splash__mark { position: relative; width: 100px; height: 100px; display: grid; place-items: center; }
.splash__mark svg { width: 80px; height: 80px; position: relative; z-index: 2; animation: mark-in 1.6s var(--ease) both; }
.splash__ripple { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); animation: ripple 3.2s var(--ease-soft) infinite; opacity: 0; }
.splash__ripple:nth-child(2) { animation-delay: 1.05s; }
.splash__ripple:nth-child(3) { animation-delay: 2.1s; }
.splash__halo { position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(214,200,255,.4), rgba(214,200,255,0) 65%); animation: orb-breathe 5s var(--ease-soft) infinite; }
@keyframes ripple { 0% { transform: scale(.7); opacity: 0; } 20% { opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes mark-in { 0% { opacity: 0; transform: scale(.8) rotate(-12deg); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }

.wordmark {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variation-settings: "SOFT" 100;
}
.wordmark b { font-weight: 300; font-style: italic; color: var(--lilac); }
.splash__word { margin-top: 26px; font-size: 36px; animation: fade-up 1.2s .5s var(--ease) both; }
.splash__tag { margin-top: 10px; color: var(--ink-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; animation: fade-up 1.2s .8s var(--ease) both; }
.splash__bar { margin-top: 42px; width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; animation: fade-up 1s 1s var(--ease) both; }
.splash__bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); animation: bar 1.6s var(--ease-soft) infinite; }
@keyframes bar { 0% { transform: translateX(-120%); } 100% { transform: translateX(300%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ambient sound toggle ---------- */
.sound-toggle {
  position: fixed;
  z-index: 90;
  top: calc(16px + var(--safe-top));
  right: 16px;
  height: 40px;
  padding: 0 14px 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255,255,255,.1);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: all .4s var(--ease);
}
.sound-toggle:hover { color: var(--ink); background: rgba(255,255,255,.16); }
.sound-toggle__bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.sound-toggle__bars i { width: 2px; height: 3px; border-radius: 2px; background: currentColor; }
.sound-toggle.is-on .sound-toggle__bars i { animation: eq 1.6s ease-in-out infinite; }
.sound-toggle.is-on .sound-toggle__bars i:nth-child(2) { animation-delay: .25s; }
.sound-toggle.is-on .sound-toggle__bars i:nth-child(3) { animation-delay: .5s; }
.sound-toggle.is-on .sound-toggle__bars i:nth-child(4) { animation-delay: .75s; }
.sound-toggle.is-waiting { animation: nudge 2.4s var(--ease-soft) infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.08); } }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 13px; } }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(24, 16, 64, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.sheet-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet {
  position: fixed;
  z-index: 81;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: 520px;
  max-height: 92vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 24px calc(28px + var(--safe-bottom));
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(76, 62, 156, .97), rgba(52, 42, 120, .98));
  border: 1px solid var(--stroke);
  border-bottom: 0;
  box-shadow: 0 -30px 80px -20px rgba(10, 4, 40, .5);
  transform: translateY(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .65s var(--ease), visibility 0s .65s;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.is-open { transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); margin: 0 auto 18px; }
.sheet__title { font-size: 24px; text-align: center; }
.sheet__sub { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 6px; }
@media (min-width: 768px) {
  .sheet {
    bottom: 50%; left: 50%; right: auto;
    width: 460px;
    border-radius: 30px;
    border-bottom: 1px solid var(--stroke);
    transform: translate(-50%, 60%) scale(.96);
    opacity: 0;
    transition: transform .6s var(--ease), opacity .45s var(--ease), visibility 0s .6s;
    padding-bottom: 28px;
  }
  .sheet.is-open { transform: translate(-50%, 50%); opacity: 1; transition-delay: 0s; }
  .sheet__grip { display: none; }
}

/* ---------- Toast ---------- */
.toast-nx {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(110px + var(--safe-bottom));
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(62, 50, 138, .95);
  border: 1px solid var(--stroke-2);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .5s var(--ease);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  white-space: nowrap;
}
.toast-nx.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast-nx .ic { color: var(--peach); }

.spinner-nx { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-y { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain; }
.scroll-y::-webkit-scrollbar, .scroll-x::-webkit-scrollbar { display: none; }
.scroll-x { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x > * { scroll-snap-align: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .screen { filter: none !important; }
}

/* Honeypot — invisible to people, tempting to bots */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* Field error state */
.field.is-error .field__input { border-color: rgba(255, 170, 190, .75); background: rgba(255, 170, 190, .08); box-shadow: 0 0 0 4px rgba(255, 150, 175, .12); }
.field.is-error .field__label, .field.is-error .field__icon { color: #ffc0cf; }

/* =========================================================================
   v1.7 — Keep phones cool: nothing animates where nobody can see it,
   and phones get still backgrounds instead of constantly moving ones.
   ========================================================================= */
.screen:not(.is-active) *, .layer:not(.is-open) *, .sheet:not(.is-open) *,
body.layer-open #views *, body.layer-open > .sky *, body.nx-dimmed * { animation-play-state: paused !important; }
.nx-lite .sky__nebula i, .nx-lite .sky__haze, .nx-lite .sky__lines g, .nx-lite .planet, .nx-lite .sky::before, .nx-lite .sky::after {
  animation: none !important; will-change: auto !important;
}
.nx-lite .orb__ring { animation: none !important; }
.splash.is-done, .splash.is-done *, .pay:not(.is-open) *, .veil:not(.is-on) *, .dim * { animation: none !important; }
.player.is-dim .dim * { animation: revert !important; }
