@font-face {
  font-family: "NeoPixel";
  src: url("../fonts/neopixel-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #23222e;
  --bg-deep: #16151e;
  --accent: #03fcb6;
  --accent-2: #7dffd6;
  --accent-dim: rgba(3, 252, 182, 0.18);
  --glass: rgba(16, 18, 24, 0.42);
  --glass-2: rgba(16, 18, 24, 0.58);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-hi: rgba(3, 252, 182, 0.38);
  --text: #f4f7fb;
  --mute: rgba(244, 247, 251, 0.58);
  --danger: #ff5b7a;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --splash-w: 200px;
  --splash-h: 400px;
  --hub-w: 1200px;
  --hub-h: 800px;
  --ui-scale: 1;
  --font-ui: "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-brand: "NeoPixel", sans-serif;
  --font: var(--font-ui);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
  font-smooth: auto;
}

img,
canvas,
video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.in-tauri,
html.in-tauri body {
  outline: none;
  background: transparent !important;
}

html.in-tauri body {
  display: grid;
  place-items: center;
}

html.in-tauri.is-hub-win body {
  display: grid;
  place-items: center;
}

html.in-tauri .stage.is-splash {
  width: var(--splash-w);
  height: var(--splash-h);
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  outline: none;
}

html.in-tauri .stage.is-hub {
  width: var(--hub-w);
  height: var(--hub-h);
  zoom: var(--ui-scale);
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  outline: none;
}

html:not(.in-tauri) body {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 80% at 50% 110%, #2c2a3a 0%, var(--bg-deep) 48%, #0e0d14 100%);
}

html.in-tauri,
html.in-tauri body {
  background: transparent;
}

html.in-tauri .nebula {
  mix-blend-mode: normal;
  filter: blur(28px);
}

html.in-tauri .glass-shine {
  display: none;
}

html.is-perf-idle #galaxy,
html.is-perf-idle .nebula,
html.is-perf-idle .eq i,
html.is-perf-idle .ticker,
html.is-perf-idle .meteor {
  animation-play-state: paused !important;
}

html.is-perf-idle #galaxy {
  visibility: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

.stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 110%, #2c2a3a 0%, var(--bg-deep) 48%, #0e0d14 100%);
}

.stage.is-splash {
  width: var(--splash-w);
  height: var(--splash-h);
  border-radius: 22px;
  border: 0;
  box-shadow: none;
}

.stage.is-hub {
  width: var(--hub-w);
  height: var(--hub-h);
  zoom: var(--ui-scale);
  border-radius: 16px;
  border: 0;
  box-shadow: none;
}

.galaxy,
.nebula,
.glass-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.galaxy {
  z-index: 0;
}

.nebula {
  z-index: 1;
  filter: blur(28px);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.n1 {
  background: radial-gradient(circle at 30% 28%, rgba(3, 252, 182, 0.38), transparent 42%);
  animation: drift 9s ease-in-out infinite;
}

.n2 {
  background: radial-gradient(circle at 78% 62%, rgba(120, 90, 255, 0.28), transparent 46%);
  animation: drift 12s ease-in-out infinite reverse;
}

.n3 {
  background: radial-gradient(circle at 50% 90%, rgba(3, 252, 182, 0.16), transparent 50%);
}

.glass-shine {
  z-index: 2;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 34%,
    transparent 70%,
    rgba(3, 252, 182, 0.04) 100%
  );
}

@keyframes drift {
  50% {
    transform: translate3d(8px, -12px, 0) scale(1.08);
  }
}

.splash {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes breathe {
  50% {
    transform: scale(1.08);
    opacity: 0.7;
  }
}

.glass-panel {
  width: 100%;
  padding: 12px 10px 10px;
  border-radius: 16px;
  background: var(--glass-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.brand-logo {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 0 12px rgba(3, 252, 182, 0.28));
}

.glass-panel p {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.45),
    0 1px 0 #000;
}

.track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(3, 252, 182, 0.18);
}

.track-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #017a5a, var(--accent));
  box-shadow: 0 0 12px rgba(3, 252, 182, 0.7);
  transition: width 0.2s ease;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 1px 0 #000;
}

#boot-pct {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.nokia {
  width: 82%;
  margin: 10px auto 0;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-height: 0;
}

.nokia-nav,
.nokia-pad {
  display: grid;
  gap: 7px;
}

.nokia-nav {
  grid-template-columns: 1fr 1.3fr 1fr;
  flex: 0 0 22%;
}

.nokia-pad {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  flex: 1;
  min-height: 0;
}

.px-btn {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.18);
}

.px-btn:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.14);
}

.px-btn.call {
  background: rgba(3, 252, 182, 0.22);
  border-color: rgba(3, 252, 182, 0.45);
  color: var(--accent);
}

.px-btn.end {
  background: rgba(255, 91, 122, 0.22);
  border-color: rgba(255, 91, 122, 0.45);
  color: #ff8aa0;
}

.px-btn.nav {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.wm {
  margin-top: 0;
  font-size: 11px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 0 #000;
}

.wm strong {
  color: var(--accent);
  font-weight: 650;
}

.wm-wide {
  position: absolute;
  right: 22px;
  bottom: 14px;
  z-index: 5;
}

.stage.is-hub .galaxy,
.stage.is-hub .nebula,
.stage.is-hub .glass-shine {
  display: none;
}

.hub {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-family: var(--font-ui);
  overflow: hidden;
}

.hub-fit {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.hub-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.hub-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #121018;
}

.hub-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-bg i {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 8, 12, 0.22) 0%, rgba(8, 8, 12, 0.06) 48%, rgba(8, 8, 12, 0.18) 100%);
}

.dock,
.hub-shell {
  position: relative;
  z-index: 1;
}

.rail {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 21, 30, 0.55);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  gap: 18px;
}

.rail-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--glass);
}

.rail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 10px;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 10px 0;
  border-radius: 10px;
}

.nav-btn.is-on,
.nav-btn:hover {
  color: var(--accent);
  border-color: var(--stroke);
  background: var(--accent-dim);
}

.rail-foot {
  margin-top: auto;
  font-size: 8px;
  color: var(--mute);
}

.hub-main {
  position: relative;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(35, 34, 46, 0.35);
  backdrop-filter: blur(18px);
}

.top-ident {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--mute);
}

.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: breathe 1.6s ease-in-out infinite;
}

.win-btns {
  display: flex;
  gap: 6px;
}

.win-btns button,
.win-chrome button {
  width: 32px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 14, 0.55);
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
  z-index: 30;
}

#btn-close:hover,
#btn-close-reg:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.win-chrome {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 40;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 36px 40px 48px;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h2 {
  font-size: 52px;
  line-height: 0.92;
  letter-spacing: 0.04em;
  font-weight: 650;
}

.hero h2 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  max-width: 520px;
  margin: 18px 0 28px;
  color: var(--mute);
  line-height: 1.55;
  font-size: 14px;
}

.play {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--accent-dim);
  color: var(--accent);
  letter-spacing: 0.2em;
  backdrop-filter: blur(12px);
}

.play small {
  letter-spacing: 0.14em;
  color: var(--mute);
  font-size: 9px;
}

.play:disabled {
  opacity: 0.75;
  cursor: default;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
}

.stat {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(35, 34, 46, 0.4);
  backdrop-filter: blur(18px);
}

.stat span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-bottom: 8px;
}

.stat strong {
  font-size: 22px;
  color: var(--accent);
}

.stage.is-leaving-splash .splash {
  animation: fadeOut 0.35s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}

.register {
  position: relative;
  z-index: 3;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.reg-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 44%;
  z-index: 1;
  overflow: hidden;
  background: #16151e;
  clip-path: polygon(21.43% 0, 100% 0, 100% 100%, 0 100%);
}

.reg-art::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -8%;
  width: 140px;
  height: 125%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(3, 252, 182, 0.28) 0%,
    rgba(3, 252, 182, 0.12) 42%,
    transparent 100%
  );
  transform: skewX(-8deg);
  mix-blend-mode: screen;
}

.reg-art::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -6%;
  width: 220px;
  height: 125%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.42) 28%,
    rgba(0, 0, 0, 0.16) 58%,
    transparent 100%
  );
  transform: skewX(-8deg);
}

.reg-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.reg-left {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(22, 21, 30, 0.92);
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
  filter:
    drop-shadow(20px 0 28px rgba(0, 0, 0, 0.95))
    drop-shadow(10px 0 18px rgba(3, 252, 182, 0.28));
}

.reg-left > .nebula,
.reg-left > .reg-stars {
  z-index: 0;
}

.reg-left > .reg-top,
.reg-left > .reg-form,
.reg-left > .wm {
  position: relative;
  z-index: 1;
}

.reg-left > .reg-form,
.reg-left > .wm {
  align-self: flex-start;
}

.reg-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 16% 62%, rgba(3, 252, 182, 0.85), transparent),
    radial-gradient(1px 1px at 22% 34%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 31% 78%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 12% 88%, rgba(3, 252, 182, 0.4), transparent),
    radial-gradient(1px 1px at 40% 22%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 6% 48%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 28% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 18% 8%, rgba(3, 252, 182, 0.55), transparent),
    radial-gradient(1px 1px at 36% 54%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 48% 70%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 52% 16%, rgba(3, 252, 182, 0.35), transparent);
}

.meteors {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.meteors span {
  position: absolute;
  width: 110px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, var(--accent), transparent);
  box-shadow: 0 0 8px rgba(3, 252, 182, 0.8);
  opacity: 0;
  animation: meteor 4.8s linear infinite;
}

.meteors span:nth-child(1) {
  top: 10%;
  left: -10%;
  animation-delay: 0.2s;
}

.meteors span:nth-child(2) {
  top: 26%;
  left: 18%;
  animation-delay: 1.5s;
}

.meteors span:nth-child(3) {
  top: 48%;
  left: -5%;
  animation-delay: 2.8s;
}

.meteors span:nth-child(4) {
  top: 68%;
  left: 30%;
  animation-delay: 3.9s;
}

@keyframes meteor {
  0% {
    transform: rotate(-32deg) translateX(0);
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  16% {
    transform: rotate(-32deg) translateX(780px);
    opacity: 0;
  }
  100% {
    transform: rotate(-32deg) translateX(780px);
    opacity: 0;
  }
}

.reg-top {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px 36px 16px;
  max-width: 360px;
  width: 32%;
  margin: 0 0 0 9%;
}

.reg-form .brand-logo {
  max-height: 78px;
  margin-bottom: 8px;
}

.reg-title {
  font-family: var(--font-brand);
  font-size: 28px;
  color: #fff;
  margin-bottom: 28px;
  text-align: center;
  text-shadow: 0 1px 0 #000, 0 0 12px rgba(255, 255, 255, 0.25);
}

.reg-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.reg-form label span {
  font-size: 13px;
  color: var(--accent);
}

.reg-form input {
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0 14px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.reg-form input:focus {
  border-color: var(--stroke);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 3px var(--accent-dim);
}

.reg-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 10px;
}

.reg-submit {
  margin-top: 8px;
  height: 50px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.reg-submit:hover {
  background: rgba(3, 252, 182, 0.3);
}

.reg-form small {
  margin-top: 14px;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.reg-left > .wm {
  width: 32%;
  max-width: 360px;
  margin: 0 0 18px 9%;
  padding: 0 16px;
  text-align: center;
}

.stage.is-hub .register,
.stage.is-hub .hub {
  border-radius: 0;
}
