:root {
  --bg: #06070b;
  --panel: rgba(17, 20, 29, 0.78);
  --line: rgba(255, 255, 255, 0.075);
  --text: #f1f4fb;
  --muted: #8d96aa;
  --p1: #5b91ff;
  --p1-rgb: 91, 145, 255;
  --p2: #ff5c86;
  --p2-rgb: 255, 92, 134;
  --p3: #39dca2;
  --p3-rgb: 57, 220, 162;
  --p4: #ffc857;
  --p4-rgb: 255, 200, 87;
  --display: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --tech: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 62% 54% at 12% -8%, rgba(66, 106, 255, 0.19), transparent 68%),
    radial-gradient(ellipse 48% 44% at 88% 10%, rgba(255, 70, 124, 0.09), transparent 68%),
    radial-gradient(ellipse 80% 60% at 50% 108%, rgba(30, 73, 168, 0.13), transparent 70%),
    linear-gradient(180deg, #07080d 0%, #05060a 55%, #07080d 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: 120px;
  left: -170px;
  background: rgba(54, 96, 255, 0.22);
}

.orb-b {
  width: 360px;
  height: 360px;
  top: 330px;
  right: -180px;
  background: rgba(255, 67, 129, 0.12);
  animation-delay: -8s;
}

.orb-c {
  width: 520px;
  height: 520px;
  bottom: -340px;
  left: 38%;
  background: rgba(38, 109, 201, 0.16);
  animation-delay: -15s;
}

.grid-plane {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 880px;
  opacity: 0.41;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 65% at 50% 0%, #000 5%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 78% 65% at 50% 0%, #000 5%, transparent 74%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 36px, 0) scale(1.12); }
}

.shell {
  position: relative;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 42px;
}

.mono {
  font-family: var(--mono);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: #eef3ff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 24px rgba(0, 0, 0, 0.26);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--tech);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.095em;
  line-height: 1;
}

.brand-name span {
  color: var(--p1);
}

.brand-sub {
  color: #646e82;
  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-chip,
.online-chip {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.api-chip {
  gap: 8px;
  padding: 0 13px;
  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 0.115em;
}

.api-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5c6577;
  transition: 0.3s ease;
}

.api-chip.is-ready .api-dot {
  background: var(--p3);
  box-shadow: 0 0 0 4px rgba(57, 220, 162, 0.09), 0 0 12px rgba(57, 220, 162, 0.8);
}

.api-chip.is-error .api-dot {
  background: var(--p2);
  box-shadow: 0 0 12px rgba(255, 92, 134, 0.6);
}

.api-label {
  color: #8b94a7;
}

.api-chip strong {
  color: #d8deee;
  font-weight: 500;
}

.online-chip {
  gap: 4px;
  padding: 0 15px;
  font-family: var(--tech);
  letter-spacing: 0.08em;
}

.online-value {
  font-size: 16px;
  font-weight: 600;
  color: #f3f6ff;
}

.online-label {
  font-size: 8px;
  color: #697286;
  letter-spacing: 0.16em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 354px;
  gap: 76px;
  align-items: end;
  padding: 46px 0 29px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8791a5;
  font-family: var(--tech);
  font-size: 9.5px;
  letter-spacing: 0.24em;
}

.eyebrow > span {
  width: 19px;
  height: 1px;
  background: var(--p1);
  box-shadow: 0 0 8px rgba(91, 145, 255, 0.8);
}

.hero h1 {
  max-width: 790px;
  margin: 13px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 3.85vw, 61px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.055em;
  color: #f4f6fc;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(104deg, #e4ecff 8%, #8fb5ff 52%, #b48cff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 48px rgba(89, 137, 255, 0.23);
}

.hero-copy > p {
  max-width: 610px;
  margin: 15px 0 0;
  color: #8e98ad;
  font-size: 13.5px;
  line-height: 1.8;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.feature-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 12px 0 8px;
  color: #a7b1c6;
  font-size: 10.5px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #cbd7ee;
  font-family: var(--tech);
  font-size: 9px;
  font-style: normal;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hero-aside {
  padding-bottom: 4px;
}

.signal-card {
  position: relative;
  overflow: hidden;
  padding: 19px 20px 17px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(32, 37, 51, 0.63), rgba(10, 12, 18, 0.83)),
    rgba(12, 14, 20, 0.72);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.signal-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -90px;
  right: -54px;
  border: 1px solid rgba(91, 145, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(91, 145, 255, 0.035), 0 0 0 58px rgba(91, 145, 255, 0.018);
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-kicker {
  color: #7e889d;
  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 13px;
}

.signal-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: #525b6e;
  transition: 0.25s ease;
}

.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 7px; }
.signal-bars i:nth-child(3) { height: 10px; }
.signal-bars i:nth-child(4) { height: 13px; }

body.has-signal .signal-bars i {
  background: var(--p1);
  box-shadow: 0 0 6px rgba(91, 145, 255, 0.65);
  animation: signal 1.7s ease-in-out infinite alternate;
}

body.has-signal .signal-bars i:nth-child(2) { animation-delay: -0.5s; }
body.has-signal .signal-bars i:nth-child(3) { animation-delay: -0.9s; }
body.has-signal .signal-bars i:nth-child(4) { animation-delay: -0.25s; }

@keyframes signal {
  to { opacity: 0.35; transform: scaleY(0.55); }
}

.signal-status {
  margin-top: 15px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.signal-card p {
  margin: 6px 0 15px;
  color: #818ba0;
  font-size: 10.5px;
  line-height: 1.65;
}

.slot-lamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.slot-lamp {
  --lamp: var(--p1);
  --lamp-rgb: var(--p1-rgb);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 26px;
  color: #626c80;
  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  transition: 0.25s ease;
}

.slot-lamp.p2 { --lamp: var(--p2); --lamp-rgb: var(--p2-rgb); }
.slot-lamp.p3 { --lamp: var(--p3); --lamp-rgb: var(--p3-rgb); }
.slot-lamp.p4 { --lamp: var(--p4); --lamp-rgb: var(--p4-rgb); }

.slot-lamp i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4d566a;
  transition: 0.2s ease;
}

.slot-lamp.is-online {
  color: rgba(var(--lamp-rgb), 0.92);
  border-color: rgba(var(--lamp-rgb), 0.25);
  background: rgba(var(--lamp-rgb), 0.07);
  box-shadow: inset 0 0 15px rgba(var(--lamp-rgb), 0.05);
}

.slot-lamp.is-online i {
  background: var(--lamp);
  box-shadow: 0 0 8px rgba(var(--lamp-rgb), 0.95);
}

.array-section {
  padding-top: 2px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-title h2,
.guide h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-kicker {
  color: #626c80;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.array-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  color: #707b90;
  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.scan-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--p3);
  box-shadow: 0 0 0 4px rgba(57, 220, 162, 0.08), 0 0 10px rgba(57, 220, 162, 0.75);
  animation: scan 2.4s ease-in-out infinite;
}

@keyframes scan {
  50% { opacity: 0.35; box-shadow: 0 0 0 7px rgba(57, 220, 162, 0.02), 0 0 5px rgba(57, 220, 162, 0.4); }
}

.note-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.pad-card {
  --accent: var(--p1);
  --accent-rgb: var(--p1-rgb);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 388px;
  padding: 15px 16px 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 23px;
  background:
    linear-gradient(153deg, rgba(26, 30, 42, 0.67), rgba(8, 10, 15, 0.93) 60%),
    rgba(12, 14, 20, 0.8);
  box-shadow: 0 27px 55px rgba(0, 0, 0, 0.29), inset 0 1px 0 rgba(255, 255, 255, 0.058);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  animation: card-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 80ms + 80ms);
}

.pad-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  opacity: 0;
  background: radial-gradient(72% 48% at 50% 5%, rgba(var(--accent-rgb), 0.17), transparent 72%);
  transition: opacity 0.45s ease;
}

.pad-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.85), transparent);
  transition: opacity 0.4s ease;
}

.pad-card:nth-child(2) { --accent: var(--p2); --accent-rgb: var(--p2-rgb); }
.pad-card:nth-child(3) { --accent: var(--p3); --accent-rgb: var(--p3-rgb); }
.pad-card:nth-child(4) { --accent: var(--p4); --accent-rgb: var(--p4-rgb); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pad-card.is-connected {
  border-color: rgba(var(--accent-rgb), 0.29);
  box-shadow:
    0 29px 60px rgba(0, 0, 0, 0.37),
    0 0 0 1px rgba(var(--accent-rgb), 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pad-card.is-connected::before,
.pad-card.is-connected::after {
  opacity: 1;
}

.pad-card.is-connected:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow:
    0 37px 70px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(var(--accent-rgb), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.slot-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.player-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b95aa;
  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 0.18em;
  transition: color 0.25s ease;
}

.player-tag strong {
  color: #dfe5f2;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.player-tag .led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4f586b;
  transition: 0.25s ease;
}

.pad-card.is-connected .player-tag {
  color: rgba(var(--accent-rgb), 0.9);
}

.pad-card.is-connected .player-tag strong {
  color: #f0f4ff;
}

.pad-card.is-connected .player-tag .led {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1), 0 0 9px rgba(var(--accent-rgb), 0.85);
  animation: led-pulse 2.2s ease-in-out infinite;
}

@keyframes led-pulse {
  50% { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.035), 0 0 5px rgba(var(--accent-rgb), 0.5); }
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 8px;
  color: #5f687a;
  font-family: var(--tech);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: 0.25s ease;
}

.conn-pill .pill-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.pad-card.is-connected .conn-pill {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.075);
}

.pad-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 254px;
  margin: 2px -6px 0;
}

.pad-stage::before {
  content: "";
  position: absolute;
  inset: 17% 4% 2%;
  opacity: 0;
  background: radial-gradient(50% 50% at 50% 62%, rgba(var(--accent-rgb), 0.15), transparent 72%);
  filter: blur(7px);
  transition: opacity 0.45s ease;
}

.pad-card.is-connected .pad-stage::before {
  opacity: 1;
}

.stage-index {
  position: absolute;
  top: 3px;
  right: 2px;
  color: rgba(255, 255, 255, 0.026);
  font-family: var(--tech);
  font-size: 57px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  user-select: none;
}

.pad-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 103%;
  height: auto;
  max-height: 262px;
  opacity: 0;
  transform: scale(0.955) translateY(5px);
  filter: drop-shadow(0 23px 24px rgba(0, 0, 0, 0.48));
  transition: opacity 0.42s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
  pointer-events: none;
}

.pad-card.is-connected .pad-svg {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter:
    drop-shadow(0 25px 26px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 26px rgba(var(--accent-rgb), 0.13));
}

.ghost-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.pad-card.is-connected .ghost-wrap {
  opacity: 0;
  transform: scale(1.03);
  visibility: hidden;
}

.ghost-svg {
  position: absolute;
  inset: 5% 0 3%;
  width: 100%;
  height: 90%;
  opacity: 0.9;
}

.ghost-body {
  fill: rgba(var(--accent-rgb), 0.04);
  stroke: rgba(var(--accent-rgb), 0.58);
  stroke-width: 1.2;
  stroke-dasharray: 3.5 6;
}

.ghost-detail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.19);
  stroke-width: 1;
  stroke-dasharray: 2 8;
}

.ghost-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  text-align: center;
}

.ghost-plus {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 1px;
  color: rgba(var(--accent-rgb), 0.85);
  font-size: 19px;
  font-weight: 300;
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.045);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.045);
}

.ghost-plus::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
  animation: ghost-ring 3.2s ease-out infinite;
}

@keyframes ghost-ring {
  0% { transform: scale(0.86); opacity: 0; }
  32% { opacity: 0.8; }
  100% { transform: scale(1.24); opacity: 0; }
}

.ghost-center strong {
  color: #929cb0;
  font-family: var(--tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.19em;
}

.ghost-center span {
  color: #5d6679;
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.pad-info {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 65px;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.device-name {
  overflow: hidden;
  color: #c4ccdc;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.pad-card.is-connected .device-name {
  color: #edf2ff;
}

.device-state {
  flex: 0 0 auto;
  color: #596275;
  font-family: var(--tech);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.pad-card.is-connected .device-state {
  color: rgba(var(--accent-rgb), 0.86);
}

.device-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  overflow: hidden;
  color: #5d6679;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.device-sub .sep {
  width: 2px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #3e4555;
}

.device-id {
  overflow: hidden;
  text-overflow: ellipsis;
}

.axis-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 14px;
  margin-top: 4px;
  color: #525c6f;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.01em;
}

.axis-strip .axis-label {
  color: #3f4758;
}

.axis-strip .axis-sep {
  color: #313847;
}

.pad-card.is-connected .axis-strip {
  color: rgba(var(--accent-rgb), 0.65);
}

.pad-card.is-connected .axis-strip .axis-label {
  color: #59647a;
}

.guide {
  display: grid;
  grid-template-columns: 1.03fr 1.64fr 1.33fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 37px;
  padding: 27px 29px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(21, 25, 35, 0.5), rgba(7, 9, 14, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.guide-intro p {
  max-width: 280px;
  margin: 9px 0 0;
  color: #6f798d;
  font-size: 10.5px;
  line-height: 1.7;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: #7d879b;
  font-family: var(--tech);
  font-size: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
}

.guide-steps li:first-child .step-num {
  color: var(--p1);
  border-color: rgba(91, 145, 255, 0.3);
  background: rgba(91, 145, 255, 0.07);
}

.guide-steps strong {
  display: block;
  color: #c3cada;
  font-size: 10.5px;
  font-weight: 600;
}

.guide-steps div > span {
  display: block;
  margin-top: 2px;
  color: #626c80;
  font-size: 9.5px;
  line-height: 1.5;
}

.ghost-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.016);
}

.ghost-note-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #7b86a0;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.ghost-note strong {
  color: #aeb7c9;
  font-size: 10px;
  font-weight: 600;
}

.ghost-note p {
  margin: 4px 0 0;
  color: #626c80;
  font-size: 9px;
  line-height: 1.62;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 0 25px;
  color: #454d5e;
  font-family: var(--tech);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.footer-mid {
  color: #3b4353;
}

.toast-stack {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  --toast-accent: var(--p1);
  --toast-rgb: var(--p1-rgb);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  padding: 11px 15px 11px 11px;
  color: #b9c2d4;
  font-size: 10.5px;
  line-height: 1.45;
  border: 1px solid rgba(var(--toast-rgb), 0.25);
  border-radius: 12px;
  background: rgba(12, 15, 22, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  animation: toast-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.toast.is-out {
  animation: toast-out 0.3s ease both;
}

.toast-badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--toast-accent);
  font-family: var(--tech);
  font-size: 8px;
  border-radius: 7px;
  background: rgba(var(--toast-rgb), 0.12);
}

.toast strong {
  color: #eef2fb;
  font-weight: 600;
}

.toast span {
  color: #7b8599;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(9px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(5px) scale(0.98); }
}

.noscript {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  transform: translateX(-50%);
  padding: 12px 18px;
  color: #ffd1da;
  font-size: 12px;
  border: 1px solid rgba(255, 92, 134, 0.3);
  border-radius: 10px;
  background: #1a0d12;
}

/* ——— SVG controller ——— */

.pad-svg .body-shell {
  stroke: none;
}

.pad-svg .body-shade {
  pointer-events: none;
}

.pad-svg .body-seam {
  fill: none;
  stroke: rgba(0, 0, 0, 0.14);
  stroke-width: 1;
}

.pad-svg .grip-texture {
  opacity: 0.55;
}

.pad-svg .dark-core {
  stroke: none;
}

.pad-svg .core-rim {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.pad-svg .core-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}

.pad-svg .trigger,
.pad-svg .shoulder {
  transition: filter 0.15s ease;
}

.pad-svg .trigger .cap,
.pad-svg .shoulder .cap {
  transition: transform 0.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.1s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pad-svg .trigger.is-pressed .cap,
.pad-svg .shoulder.is-pressed .cap {
  transform: translateY(2.5px);
  filter: brightness(1.35);
}

.pad-svg .trigger.is-pressed,
.pad-svg .shoulder.is-pressed {
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.6));
}

.pad-svg .shoulder-text {
  fill: #8b93a3;
  font-family: var(--tech);
  font-size: 7px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.pad-svg .trigger-text {
  fill: #555d6c;
  font-family: var(--tech);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.pad-svg .touchpad {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.pad-svg .touchpad-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.55;
}

.pad-svg .lightbar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  opacity: 0.17;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.95));
  transition: opacity 0.35s ease, stroke-width 0.2s ease;
}

.pad-card.is-connected .lightbar {
  opacity: 0.82;
}

.pad-svg .touchpad.is-pressed .touchpad {
  stroke: rgba(var(--accent-rgb), 0.75);
  stroke-width: 1.5;
}

.pad-svg .touchpad.is-pressed .touchpad-grid {
  stroke: rgba(var(--accent-rgb), 0.28);
}

.pad-svg .touchpad.is-pressed .lightbar {
  opacity: 1;
  stroke-width: 2.4;
}

.pad-svg .pad-glyph {
  fill: rgba(255, 255, 255, 0.18);
  font-family: var(--tech);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.pad-svg .face-btn .cap {
  transition: transform 0.08s ease, filter 0.08s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pad-svg .face-btn.is-pressed .cap {
  transform: translateY(2px) scale(0.92);
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.75));
}

.pad-svg .btn-disc {
  stroke: rgba(255, 255, 255, 0.19);
  stroke-width: 0.8;
  transition: fill 0.08s ease;
}

.pad-svg .face-btn.is-pressed .btn-disc {
  fill: rgba(var(--accent-rgb), 0.98);
  stroke: rgba(255, 255, 255, 0.55);
}

.pad-svg .btn-symbol {
  transition: fill 0.08s ease, stroke 0.08s ease;
}

.pad-svg .face-btn.is-pressed .btn-symbol {
  fill: #0a0c12 !important;
  stroke: #0a0c12 !important;
}

.pad-svg .dpad-key .cap {
  transition: transform 0.08s ease, filter 0.08s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pad-svg .dpad-key.is-pressed .cap {
  transform: scale(0.92);
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.7));
}

.pad-svg .dpad-cap {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.8;
  transition: fill 0.08s ease;
}

.pad-svg .dpad-key.is-pressed .dpad-cap {
  fill: rgba(var(--accent-rgb), 0.9);
}

.pad-svg .dpad-mark {
  fill: #6d7482;
  transition: fill 0.08s ease;
}

.pad-svg .dpad-key.is-pressed .dpad-mark {
  fill: #0b0d13;
}

.pad-svg .stick-well {
  fill: #080a0e;
  opacity: 0.92;
}

.pad-svg .stick-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
}

.pad-svg .stick-glow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.65));
  transition: opacity 0.18s ease;
}

.pad-svg .stick.is-active .stick-glow {
  opacity: 0.62;
}

.pad-svg .stick.is-down .stick-glow {
  opacity: 1;
  stroke-width: 2;
}

.pad-svg .stick .knob {
  transition: transform 0.045s linear;
}

.pad-svg .stick-cap {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 0.7;
}

.pad-svg .stick-dish {
  stroke: none;
}

.pad-svg .stick-ridge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 0.8;
  stroke-dasharray: 1.2 3.2;
}

.pad-svg .stick-center {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.7;
}

.pad-svg .mini {
  transition: filter 0.1s ease;
}

.pad-svg .mini .cap {
  transition: transform 0.08s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pad-svg .mini.is-pressed .cap {
  transform: scale(0.9);
}

.pad-svg .mini.is-pressed {
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.8));
}

.pad-svg .mini-body {
  fill: #1a1e26;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 0.7;
}

.pad-svg .mini.is-pressed .mini-body {
  fill: rgba(var(--accent-rgb), 0.9);
}

.pad-svg .mini-mark {
  fill: #8790a0;
  transition: fill 0.08s ease;
}

.pad-svg .mini.is-pressed .mini-mark {
  fill: #0a0c12;
}

.pad-svg .ps-btn .cap {
  transition: transform 0.08s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pad-svg .ps-btn.is-pressed .cap {
  transform: scale(0.91);
}

.pad-svg .ps-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 0.8;
}

.pad-svg .ps-body {
  fill: #171a21;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 0.8;
}

.pad-svg .ps-mark {
  fill: #ced5e2;
  font-family: var(--tech);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.pad-svg .ps-btn.is-pressed .ps-body {
  fill: rgba(var(--accent-rgb), 0.82);
  stroke: rgba(255, 255, 255, 0.5);
}

.pad-svg .ps-btn.is-pressed .ps-mark {
  fill: #0a0c12;
}

.pad-svg .mute .cap {
  transition: transform 0.08s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pad-svg .mute.is-pressed .cap {
  transform: scale(0.92);
}

.pad-svg .mute-body {
  fill: #0b0d12;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.6;
}

.pad-svg .mute-mark {
  fill: #697283;
}

.pad-svg .mute.is-pressed .mute-body {
  fill: rgba(var(--accent-rgb), 0.9);
}

.pad-svg .mute.is-pressed .mute-mark {
  fill: #0a0c12;
}

.pad-svg .speaker-hole {
  fill: rgba(255, 255, 255, 0.1);
}

.pad-svg .player-etch {
  fill: var(--accent);
  opacity: 0.46;
  font-family: var(--tech);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.pad-svg .body-led {
  fill: var(--accent);
  opacity: 0.28;
}

.pad-card.is-connected .pad-svg .body-led {
  opacity: 0.95;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.95));
}

/* ——— responsive ——— */

@media (max-width: 1260px) {
  .shell {
    padding: 0 28px;
  }

  .hero {
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .pad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pad-card {
    min-height: 414px;
  }

  .pad-svg {
    width: 88%;
    max-height: 290px;
  }

  .pad-stage {
    min-height: 270px;
  }

  .guide {
    grid-template-columns: 1fr 1.6fr;
  }

  .ghost-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .site-header {
    height: 72px;
  }

  .api-chip .api-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 36px 0 31px;
  }

  .hero h1 {
    font-size: clamp(38px, 7vw, 52px);
  }

  .hero-aside {
    max-width: 430px;
  }

  .guide {
    grid-template-columns: 1fr;
  }

  .guide-intro p {
    max-width: 430px;
  }

  .ghost-note {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 16px;
  }

  .brand-sub {
    display: none;
  }

  .header-tools {
    gap: 6px;
  }

  .api-chip {
    padding: 0 10px;
  }

  .online-chip {
    padding: 0 11px;
  }

  .hero {
    padding-top: 29px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-copy > p {
    font-size: 12px;
  }

  .pad-grid {
    grid-template-columns: 1fr;
  }

  .pad-card {
    min-height: 406px;
  }

  .pad-svg {
    width: 94%;
    max-height: 280px;
  }

  .pad-stage {
    min-height: 264px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 13px;
  }

  .array-note {
    padding-bottom: 0;
  }

  .guide {
    padding: 22px 19px;
    margin-top: 26px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 8px 18px;
    line-height: 1.7;
  }

  .footer-mid {
    order: 3;
    width: 100%;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
    bottom: 12px;
    align-items: stretch;
  }

  .toast {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
