:root {
  color-scheme: dark;
  --bg: #05070c;
  --surface: rgba(13, 18, 29, 0.72);
  --surface-solid: #0b1019;
  --line: rgba(181, 210, 255, 0.12);
  --line-strong: rgba(181, 210, 255, 0.22);
  --ink: #f3f7ff;
  --muted: #8995a8;
  --muted-2: #5f6b7d;
  --cyan: #5fe7ff;
  --cyan-rgb: 95, 231, 255;
  --violet: #a58cff;
  --active-color: var(--cyan);
  --active-rgb: var(--cyan-rgb);
  --display: "Bahnschrift", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(var(--active-rgb), 0.28);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(160, 186, 220, 0.18);
  border-radius: 999px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -12%, rgba(72, 121, 185, 0.13), transparent 38%),
    linear-gradient(180deg, #060910 0%, #04060a 58%, #060810 100%);
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.5;
}

.ambient__orb--cyan {
  top: 8%;
  left: -16%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(21, 150, 186, 0.18), transparent 66%);
  animation: driftA 24s ease-in-out infinite alternate;
}

.ambient__orb--violet {
  right: -18%;
  bottom: -24%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(92, 53, 178, 0.16), transparent 64%);
  animation: driftB 30s ease-in-out infinite alternate;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(176, 210, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 210, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, black 0, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, black 0, transparent 82%);
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes driftA {
  to { transform: translate3d(8vw, 4vh, 0) scale(1.08); }
}

@keyframes driftB {
  to { transform: translate3d(-6vw, -5vh, 0) scale(1.05); }
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(20px, 4vw, 60px);
  border-bottom: 1px solid rgba(175, 205, 250, 0.09);
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.88), rgba(5, 8, 14, 0.5));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(171, 209, 255, 0.16);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.32);
}

.brand__mark svg {
  width: 25px;
  height: 25px;
  opacity: 0.9;
}

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__type b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.15em;
  line-height: 1;
}

.brand__type b span {
  color: var(--cyan);
}

.brand__type small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.api-pill,
.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.api-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.topbar__divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.topbar__status {
  color: #c7d2e3;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56f1bb;
  box-shadow: 0 0 10px rgba(86, 241, 187, 0.7);
}

.live-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(86, 241, 187, 0.35);
  border-radius: 50%;
  content: "";
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}

.page {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 60px) 46px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  padding: 8px 2px 38px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f8199;
  font-size: 9px;
  letter-spacing: 0.24em;
}

.eyebrow > span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.7);
}

.hero h1 {
  margin: 16px 0 14px;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 74px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(112deg, #ffffff 2%, #86eeff 42%, #9f8dff 102%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(95, 231, 255, 0.16));
}

.hero__lede {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.8;
}

.hero__readout {
  flex: 0 0 auto;
  min-width: 250px;
  padding: 4px 0 2px;
  text-align: right;
}

.hero__counter {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
  color: var(--cyan);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.hero__counter span:first-child {
  font-size: clamp(54px, 5.4vw, 76px);
  font-weight: 300;
  letter-spacing: -0.09em;
  text-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.24);
}

.hero__counter i {
  color: #3d4b60;
  font-size: 30px;
  font-style: normal;
}

.hero__counter span:last-child {
  color: #536175;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.hero__readout p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 7px 0 14px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.hero__readout p .live-dot {
  width: 4px;
  height: 4px;
}

.hero__slots {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.mini-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(167, 199, 240, 0.1);
  border-radius: 7px;
  color: #58667a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  transition: 0.25s ease;
}

.mini-slot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #303a49;
}

.mini-slot.is-live {
  border-color: rgba(var(--slot-rgb), 0.36);
  color: var(--slot-color);
  background: rgba(var(--slot-rgb), 0.08);
  box-shadow: inset 0 0 16px rgba(var(--slot-rgb), 0.05);
}

.mini-slot.is-live i {
  background: var(--slot-color);
  box-shadow: 0 0 8px var(--slot-color);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 388px);
  gap: 20px;
  align-items: start;
}

.stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(63, 120, 171, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(17, 24, 37, 0.8), rgba(7, 10, 17, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 30px 70px rgba(0, 0, 0, 0.25);
}

.stage::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(162, 197, 240, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 197, 240, 0.036) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black, transparent 78%);
  content: "";
  pointer-events: none;
}

.stage__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 6px;
}

.stage__head h2,
.panel__head h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0.015em;
}

.stage__meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.stage__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(var(--active-rgb), 0.23);
  border-radius: 7px;
  color: var(--active-color);
  background: rgba(var(--active-rgb), 0.06);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  transition: 0.3s ease;
}

.stage__badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.stage__hint {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.controllers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
}

.controllers[data-count="2"],
.controllers[data-count="3"],
.controllers[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.controllers[data-count="3"] .pad-card:nth-child(3) {
  width: calc(50% - 8px);
  grid-column: 1 / -1;
  justify-self: center;
}

.empty-state {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  min-height: 596px;
  padding: 10px 34px 28px 44px;
}

.empty-state__copy {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

.signal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(var(--cyan-rgb), 0.18);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), 0.06);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.signal-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: signalBlink 1.8s ease-in-out infinite;
}

@keyframes signalBlink {
  50% { opacity: 0.25; }
}

.empty-state__copy h2 {
  margin: 18px 0 10px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.empty-state__copy > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0 22px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(172, 202, 240, 0.1);
  border-radius: 7px;
  color: #8c9aae;
  background: rgba(255, 255, 255, 0.018);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.steps li span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
}

.empty-slots {
  display: flex;
  gap: 7px;
}

.empty-slots span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4e5c6e;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.empty-slots i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: rgba(130, 158, 196, 0.18);
}

.ghost-stage {
  position: relative;
  display: grid;
  align-self: stretch;
  min-height: 440px;
  place-items: center;
}

.ghost-stage__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 88%);
  aspect-ratio: 1;
  border: 1px solid rgba(95, 231, 255, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--cyan-rgb), 0.05) 0 30%, transparent 31% 48%, rgba(var(--cyan-rgb), 0.045) 49% 50%, transparent 51% 68%, rgba(var(--cyan-rgb), 0.06) 69% 69.4%, transparent 69.6%);
  transform: translate(-50%, -50%);
  animation: ringTurn 26s linear infinite;
}

.ghost-stage__rings::before,
.ghost-stage__rings::after {
  position: absolute;
  border: 1px solid rgba(95, 231, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.ghost-stage__rings::before {
  inset: 12%;
  border-style: dashed;
}

.ghost-stage__rings::after {
  inset: 31%;
  border-color: rgba(165, 140, 255, 0.1);
}

@keyframes ringTurn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ghost-pad {
  position: relative;
  z-index: 1;
  width: min(98%, 700px);
  opacity: 0.8;
  transform: translateY(-4px) rotate(-1deg);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

.ghost-pad__body {
  fill: rgba(109, 195, 232, 0.035);
  stroke: rgba(125, 205, 245, 0.53);
  stroke-width: 1.8;
  stroke-dasharray: 5 7;
}

.ghost-pad__core {
  fill: rgba(95, 231, 255, 0.04);
  stroke: rgba(125, 195, 230, 0.34);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

.ghost-pad__touch,
.ghost-pad__stick,
.ghost-pad__dpad,
.ghost-pad__face {
  fill: rgba(95, 231, 255, 0.025);
  stroke: rgba(125, 205, 245, 0.4);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
}

.ghost-stage__scan {
  position: absolute;
  z-index: 2;
  top: 15%;
  left: 11%;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), 0.7), transparent);
  box-shadow: 0 0 18px rgba(var(--cyan-rgb), 0.45);
  animation: scan 5.5s ease-in-out infinite;
}

@keyframes scan {
  0%, 8% { transform: translateY(0); opacity: 0; }
  18% { opacity: 0.7; }
  82% { opacity: 0.7; }
  92%, 100% { transform: translateY(310px); opacity: 0; }
}

.ghost-stage__code {
  position: absolute;
  right: 14%;
  bottom: 11%;
  color: rgba(118, 166, 196, 0.45);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.pad-card {
  --pad-color: #5fe7ff;
  --pad-rgb: 95, 231, 255;
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--pad-rgb), 0.17);
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% 34%, rgba(var(--pad-rgb), 0.11), transparent 57%),
    linear-gradient(180deg, rgba(17, 23, 36, 0.88), rgba(8, 11, 18, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 24px 50px rgba(0, 0, 0, 0.25);
  outline: none;
  animation: cardIn 0.45s cubic-bezier(0.18, 0.8, 0.22, 1) both;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pad-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--pad-rgb), 0.72), transparent);
  content: "";
  opacity: 0.7;
}

.pad-card:hover {
  border-color: rgba(var(--pad-rgb), 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 28px 60px rgba(0, 0, 0, 0.3), 0 0 32px rgba(var(--pad-rgb), 0.045);
}

.pad-card:focus-visible {
  border-color: rgba(var(--pad-rgb), 0.6);
  box-shadow: 0 0 0 2px rgba(var(--pad-rgb), 0.18);
}

.pad-card.is-selected {
  border-color: rgba(var(--pad-rgb), 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(var(--pad-rgb), 0.08), 0 28px 60px rgba(0, 0, 0, 0.28);
}

.pad-card.is-active {
  border-color: rgba(var(--pad-rgb), 0.36);
}

.pad-card.is-leaving {
  animation: none;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.pad-card__head {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px 8px;
}

.player-badge {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--pad-rgb), 0.45);
  border-radius: 50%;
  color: var(--pad-color);
  background: radial-gradient(circle at 35% 25%, rgba(var(--pad-rgb), 0.28), rgba(var(--pad-rgb), 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 18px rgba(var(--pad-rgb), 0.1);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.player-badge::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(var(--pad-rgb), 0.15);
  border-radius: inherit;
  content: "";
}

.pad-card.is-selected .player-badge::after {
  border-color: rgba(var(--pad-rgb), 0.36);
  animation: badgePulse 2.4s ease-out infinite;
}

@keyframes badgePulse {
  0% { transform: scale(0.9); opacity: 1; }
  75%, 100% { transform: scale(1.25); opacity: 0; }
}

.pad-card__identity {
  min-width: 0;
  flex: 1;
}

.pad-card__identity h3 {
  overflow: hidden;
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pad-card__identity p {
  display: flex;
  gap: 5px;
  overflow: hidden;
  margin: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pad-card__identity p i {
  color: #394456;
  font-style: normal;
}

.pad-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pad-color);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.pad-card__status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.pad-stage {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  padding: 0 5px;
}

.pad-stage__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--pad-rgb), 0.14), transparent 70%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.pad-card.is-active .pad-stage__halo {
  background: radial-gradient(ellipse, rgba(var(--pad-rgb), 0.2), transparent 70%);
}

.pad-stage__floor {
  position: absolute;
  bottom: 7%;
  left: 50%;
  width: 58%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(9px);
  transform: translateX(-50%);
  pointer-events: none;
}

.pad {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.36));
  touch-action: none;
  user-select: none;
}

.controllers[data-count="1"] .pad {
  max-width: 940px;
  margin: 0 auto;
}

.controllers[data-count="1"] .pad-card {
  min-height: 590px;
}

.controllers[data-count="2"] .pad,
.controllers[data-count="3"] .pad,
.controllers[data-count="4"] .pad {
  max-width: 560px;
  margin: 0 auto;
}

.pad-float {
  transform-origin: center;
  animation: padFloat 7s ease-in-out infinite;
}

@keyframes padFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.pad-aura {
  color: var(--pad-color);
  opacity: 0.14;
  mix-blend-mode: screen;
  transition: opacity 0.2s ease;
}

.pad-card.is-active .pad-aura {
  opacity: 0.23;
}

.pad-stage .pad-flash {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 48%, rgba(var(--pad-rgb), 0.16), transparent 52%);
  opacity: 0;
  pointer-events: none;
}

.pad-stage .pad-flash.is-firing {
  animation: flash 0.3s ease-out;
}

@keyframes flash {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

.pad-stage__corner {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  opacity: 0.4;
  pointer-events: none;
}

.pad-stage__corner--tl {
  top: 14px;
  left: 14px;
  border-top: 1px solid var(--pad-color);
  border-left: 1px solid var(--pad-color);
}

.pad-stage__corner--br {
  right: 14px;
  bottom: 12px;
  border-right: 1px solid var(--pad-color);
  border-bottom: 1px solid var(--pad-color);
}

.pad-card__foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 13px;
}

.mini-meter {
  display: grid;
  grid-template-columns: 18px minmax(26px, 1fr) 20px;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
}

.mini-meter > div {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(151, 180, 219, 0.1);
}

.mini-meter > div i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--pad-rgb), 0.45), var(--pad-color));
  box-shadow: 0 0 8px rgba(var(--pad-rgb), 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.06s linear;
}

.mini-meter code {
  color: #8797ad;
  font-size: 7px;
  text-align: right;
}

.input-counter {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.input-counter b {
  color: var(--pad-color);
  font-weight: 500;
}

.lightbar {
  color: var(--pad-color);
}

.lightbar__glow {
  animation: lightBreathe 4.2s ease-in-out infinite;
}

@keyframes lightBreathe {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 0.88; }
}

.lightbar path {
  transition: stroke 0.25s ease;
}

.player-leds circle {
  fill: #2d343e;
  transition: fill 0.25s ease, filter 0.25s ease;
}

.player-leds circle.is-on {
  fill: var(--pad-color);
  filter: drop-shadow(0 0 4px var(--pad-color));
}

.trigger__press,
.bumper,
.touchpad__press,
.system-btn__press,
.ps-btn__press,
.mute-btn,
.dpad-key__press,
.face-btn__press,
.stick__press {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.08s ease, filter 0.12s ease;
}

.trigger__press {
  transform: translateY(calc(var(--pull, 0) * 9px));
}

.trigger.is-on .trigger__cap {
  stroke: var(--pad-color);
  stroke-opacity: 0.7;
  filter: drop-shadow(0 0 7px rgba(var(--pad-rgb), 0.45));
}

.bumper.is-on {
  transform: translateY(2px);
  filter: drop-shadow(0 0 7px rgba(var(--pad-rgb), 0.38));
}

.bumper.is-on path:first-child {
  stroke: var(--pad-color);
  stroke-opacity: 0.65;
}

.touchpad.is-on .touchpad__press {
  transform: translateY(2px) scale(0.996);
  filter: drop-shadow(0 0 12px rgba(var(--pad-rgb), 0.3));
}

.touchpad.is-on rect:first-child {
  stroke: var(--pad-color);
}

.system-btn.is-on .system-btn__press {
  transform: translateY(1px) scale(0.92);
  filter: drop-shadow(0 0 8px rgba(var(--pad-rgb), 0.45));
}

.system-btn.is-on rect {
  stroke: var(--pad-color);
}

.ps-btn.is-on .ps-btn__press {
  transform: scale(0.9);
  filter: drop-shadow(0 0 10px rgba(var(--pad-rgb), 0.65));
}

.ps-btn.is-on circle:nth-child(2) {
  fill: var(--pad-color);
}

.ps-btn.is-on text {
  fill: #071018;
}

.mute-btn.is-on {
  transform: translateY(1px) scale(0.94);
  filter: drop-shadow(0 0 7px rgba(var(--pad-rgb), 0.4));
}

.mute-btn.is-on circle {
  fill: var(--pad-color);
}

.stick {
  color: var(--pad-color);
}

.stick__tilt {
  will-change: transform;
}

.stick__halo {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.stick.is-tilting .stick__halo,
.stick.is-on .stick__halo {
  opacity: 0.42;
  filter: drop-shadow(0 0 6px var(--pad-color));
}

.stick.is-on .stick__press {
  transform: translateY(3px) scale(0.95);
}

.dpad-key__press,
.face-btn__press {
  transform-origin: center;
}

.dpad-key.is-on .dpad-key__press {
  transform: translateY(2px) scale(0.93);
  filter: drop-shadow(0 0 8px rgba(var(--pad-rgb), 0.35));
}

.dpad-key.is-on .keycap {
  stroke: var(--pad-color);
  stroke-opacity: 0.7;
}

.dpad-key.is-on .keycap__arrow {
  stroke: var(--pad-color);
}

.face-btn {
  color: var(--symbol);
}

.face-btn__press {
  transition: transform 0.08s ease, filter 0.14s ease;
}

.face-btn.is-on .face-btn__press {
  transform: translateY(2px) scale(0.91);
}

.face-btn.is-on {
  filter: drop-shadow(0 0 11px var(--symbol));
}

.face-btn.is-on .face-btn__press > circle:first-child {
  stroke: var(--symbol);
  stroke-opacity: 0.8;
}

.face-btn.is-on path,
.face-btn.is-on circle:not(:first-child):not(:nth-child(2)),
.face-btn.is-on rect {
  stroke: var(--symbol);
  filter: brightness(1.35);
}

.face-btn path,
.face-btn circle:not(:first-child):not(:nth-child(2)),
.face-btn rect {
  opacity: 0.82;
}

.face-btn.is-on path,
.face-btn.is-on circle:not(:first-child):not(:nth-child(2)),
.face-btn.is-on rect {
  opacity: 1;
}

.face-btn.is-on .face-btn__press > circle:first-child {
  fill: #f9fbff;
}

.pad-card.is-ps-pulse .pad-aura {
  opacity: 0.5;
}

.pad-card.is-ps-pulse .pad-flash {
  animation: flash 0.4s ease-out;
}

.face-btn__press {
  transform-box: fill-box;
}

.rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 17px 17px 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.82), rgba(8, 11, 18, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.17);
}

.panel::after {
  position: absolute;
  top: 0;
  left: 14%;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 201, 244, 0.18), transparent);
  content: "";
  pointer-events: none;
}

.panel--telemetry {
  border-color: rgba(var(--active-rgb), 0.16);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--active-rgb), 0.075), transparent 48%),
    linear-gradient(180deg, rgba(16, 22, 34, 0.84), rgba(8, 11, 18, 0.91));
  transition: border-color 0.3s ease, background 0.3s ease;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.count-pill,
.panel__tag {
  padding: 5px 8px;
  border: 1px solid rgba(168, 199, 239, 0.14);
  border-radius: 6px;
  color: #8fa0b5;
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.panel__tag {
  border-color: rgba(var(--active-rgb), 0.24);
  color: var(--active-color);
  background: rgba(var(--active-rgb), 0.06);
}

.panel__desc {
  margin: 9px 0 13px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.65;
}

.device-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 52px;
}

.device-empty {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px dashed rgba(159, 190, 230, 0.13);
  border-radius: 10px;
  color: #4f5d70;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.device-row {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(var(--row-rgb), 0.13);
  border-radius: 10px;
  color: inherit;
  background: rgba(var(--row-rgb), 0.035);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.device-row:hover {
  border-color: rgba(var(--row-rgb), 0.3);
  background: rgba(var(--row-rgb), 0.065);
}

.device-row.is-selected {
  border-color: rgba(var(--row-rgb), 0.38);
  background: linear-gradient(90deg, rgba(var(--row-rgb), 0.1), rgba(var(--row-rgb), 0.025));
}

.device-row__dot {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--row-rgb), 0.35);
  border-radius: 50%;
  color: var(--row-color);
  background: rgba(var(--row-rgb), 0.08);
  font-family: var(--mono);
  font-size: 8px;
}

.device-row__info {
  min-width: 0;
  flex: 1;
}

.device-row__info strong {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row__info span {
  display: block;
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row__state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--row-color);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.device-row__state i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.scanner {
  margin-top: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(146, 184, 228, 0.09);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.15);
}

.scanner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #78899f;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.scanner__top > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scanner__top b {
  color: #6ff1c7;
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.scanner__pulse {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6ff1c7;
  box-shadow: 0 0 7px rgba(111, 241, 199, 0.65);
}

.scanner__stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  color: #4f5d70;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.scanner__stats b {
  margin-left: 3px;
  color: #9aabc0;
  font-weight: 500;
}

.panel__note {
  margin: 9px 1px 0;
  color: #4e5c6f;
  font-size: 9px;
  line-height: 1.55;
}

.telemetry-empty {
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 10px;
  border: 1px dashed rgba(155, 187, 228, 0.11);
  border-radius: 10px;
  color: #566478;
  font-size: 10px;
}

.telemetry-empty p {
  margin: 0;
}

.radar-dot {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(var(--active-rgb), 0.2);
  border-radius: 50%;
}

.radar-dot::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(var(--active-rgb), 0.2);
  border-radius: 50%;
  content: "";
}

.radar-dot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--active-color);
  box-shadow: 0 0 7px var(--active-color);
}

.telemetry-body {
  margin-top: 11px;
}

.telemetry-device {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(164, 194, 233, 0.08);
}

.telemetry-device__badge {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--active-rgb), 0.4);
  border-radius: 50%;
  color: var(--active-color);
  background: rgba(var(--active-rgb), 0.08);
  font-family: var(--mono);
  font-size: 8px;
}

.telemetry-device > div {
  min-width: 0;
  flex: 1;
}

.telemetry-device strong {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-device > div span {
  display: block;
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--active-color);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.live-tag i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.axis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.axis__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.axis__top span {
  color: #718198;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.axis__top code {
  color: #7e8ea4;
  font-family: var(--mono);
  font-size: 6.5px;
  font-variant-numeric: tabular-nums;
}

.axis__pad {
  position: relative;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(157, 190, 232, 0.1);
  border-radius: 9px;
  background:
    linear-gradient(rgba(128, 164, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 164, 210, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(var(--active-rgb), 0.06), rgba(0, 0, 0, 0.12));
  background-size: 100% 50%, 50% 100%, 100% 100%;
}

.axis__pad::before,
.axis__pad::after {
  position: absolute;
  background: rgba(152, 186, 230, 0.13);
  content: "";
}

.axis__pad::before {
  top: 50%;
  left: 8%;
  width: 84%;
  height: 1px;
}

.axis__pad::after {
  top: 8%;
  left: 50%;
  width: 1px;
  height: 84%;
}

.axis__cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(var(--active-rgb), 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.axis__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--active-color);
  box-shadow: 0 0 9px var(--active-color);
  transform: translate(-50%, -50%);
  transition: left 0.05s linear, top 0.05s linear;
}

.trigger-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 11px;
}

.trigger-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 7px;
  color: #718198;
  font-family: var(--mono);
  font-size: 7px;
}

.trigger-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(147, 179, 220, 0.1);
}

.trigger-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--active-rgb), 0.35), var(--active-color));
  box-shadow: 0 0 9px rgba(var(--active-rgb), 0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.05s linear;
}

.trigger-row code {
  color: #8192a8;
  font-size: 7px;
  text-align: right;
}

.pressed-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  min-height: 21px;
}

.pressed-row > span {
  flex: 0 0 auto;
  color: #566477;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.pressed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.pressed-chips em {
  color: #3f4c5d;
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.pressed-chips span {
  padding: 3px 6px;
  border: 1px solid rgba(var(--active-rgb), 0.22);
  border-radius: 5px;
  color: var(--active-color);
  background: rgba(var(--active-rgb), 0.06);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
}

.event-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #63e9bf;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.event-live i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.event-list {
  display: flex;
  max-height: 134px;
  flex-direction: column;
  gap: 0;
  overflow: auto;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.event {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(151, 183, 224, 0.06);
  animation: eventIn 0.25s ease both;
}

.event:last-child {
  border-bottom: 0;
}

@keyframes eventIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.event__dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--event-color, #64748b);
  box-shadow: 0 0 6px var(--event-color, transparent);
}

.event time {
  flex: 0 0 auto;
  color: #475568;
  font-family: var(--mono);
  font-size: 6.5px;
  font-variant-numeric: tabular-nums;
}

.event p {
  min-width: 0;
  margin: 0;
  color: #8494a9;
  font-size: 8.5px;
  line-height: 1.35;
}

.event p b {
  margin-right: 5px;
  color: var(--event-color, #c8d4e6);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.event__dot--idle {
  background: #39485e;
}

.event--idle p {
  color: #4e5c70;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px) 28px;
  color: #3f4c5f;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
}

.footer span:first-child {
  color: #58677a;
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: 24px;
  left: 50%;
  max-width: min(90vw, 480px);
  padding: 10px 15px;
  border: 1px solid rgba(var(--active-rgb), 0.3);
  border-radius: 9px;
  color: #dce8f7;
  background: rgba(8, 13, 21, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(var(--active-rgb), 0.06);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
  }

  .empty-state {
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
    padding-left: 30px;
  }
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .panel--events {
    grid-column: 1 / -1;
  }

  .event-list {
    max-height: 120px;
  }

  .controllers[data-count="1"] .pad-card {
    min-height: 540px;
  }
}

@media (max-width: 800px) {
  .topbar {
    min-height: 68px;
  }

  .api-pill,
  .topbar__divider {
    display: none;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 28px;
  }

  .hero__readout {
    min-width: 0;
    text-align: left;
  }

  .hero__counter {
    justify-content: flex-start;
  }

  .hero__readout p,
  .hero__slots {
    justify-content: flex-start;
  }

  .empty-state {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 0;
    padding: 20px 28px 28px;
  }

  .ghost-stage {
    min-height: 300px;
    margin-top: -18px;
  }

  .empty-state__copy {
    padding-bottom: 0;
  }

  .controllers[data-count="1"] .pad-card {
    min-height: 0;
  }

  .stage__hint {
    display: none;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel--events {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .page {
    padding-top: 24px;
  }

  .brand__type small {
    display: none;
  }

  .topbar__status {
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(35px, 11vw, 50px);
  }

  .hero__lede {
    font-size: 12px;
  }

  .hero__counter span:first-child {
    font-size: 56px;
  }

  .stage {
    border-radius: 20px;
  }

  .stage__head {
    padding: 17px 15px 4px;
  }

  .stage__meta {
    gap: 6px;
  }

  .stage__badge {
    font-size: 8px;
  }

  .controllers {
    padding: 8px;
    gap: 10px;
  }

  .controllers[data-count="2"],
  .controllers[data-count="3"],
  .controllers[data-count="4"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .controllers[data-count="3"] .pad-card:nth-child(3) {
    width: 100%;
    grid-column: auto;
    justify-self: stretch;
  }

  .pad-card__head {
    padding: 12px 13px 5px;
  }

  .pad-card__identity p {
    font-size: 6.5px;
  }

  .pad-card__status {
    font-size: 6.5px;
  }

  .pad-stage__corner {
    display: none;
  }

  .pad-card__foot {
    padding: 6px 13px 11px;
  }

  .empty-state {
    padding: 16px 20px 24px;
  }

  .ghost-stage {
    min-height: 235px;
  }

  .empty-slots {
    flex-wrap: wrap;
  }

  .rail {
    gap: 11px;
  }

  .panel {
    border-radius: 16px;
    padding: 15px;
  }

  .footer {
    font-size: 6.5px;
  }

  .footer span:nth-child(2) {
    display: 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;
  }
}
