.luman-pulse {
  --pulse-bg: #0a0d10;
  --pulse-panel: #10161b;
  --pulse-text: #f2f4f2;
  --pulse-muted: #a2afb7;
  --pulse-line: #29333a;
  --pulse-cyan: #88eadf;
  --pulse-amber: #ffd392;
  min-width: 0;
  padding: clamp(118px, 12vw, 158px) 24px 88px;
  color: var(--pulse-text);
  background: radial-gradient(ellipse at 30% 11%, #162126, transparent 60%), var(--pulse-bg);
}

.luman-pulse *, .luman-pulse *::before, .luman-pulse *::after { box-sizing: border-box; }
.luman-pulse [hidden] { display: none !important; }
.luman-pulse :focus-visible { outline: 2px solid var(--pulse-cyan); outline-offset: 3px; }
.luman-pulse__inner { max-width: 1150px; margin: 0 auto; }

.luman-pulse__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--pulse-muted);
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
}

.luman-pulse__back:hover { color: var(--pulse-cyan); }

.luman-pulse__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0 25px;
}

.luman-pulse__eyebrow {
  margin: 0 0 7px;
  color: var(--pulse-cyan);
  font-size: .68rem;
  line-height: 1.4;
  letter-spacing: .17em;
  font-weight: 800;
}

.luman-pulse__eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px #88eadf80;
}

.luman-pulse__eyebrow i { font-style: normal; color: var(--pulse-muted); }

.luman-pulse__intro h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.3rem);
  font-weight: 900;
  line-height: .97;
  letter-spacing: -.07em;
}

.luman-pulse__intro h1 em { color: var(--pulse-cyan); font-style: normal; }

.luman-pulse__tagline {
  max-width: 32ch;
  margin: 0;
  color: var(--pulse-muted);
  font-size: .95rem;
  line-height: 1.5;
}

.luman-pulse__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  align-items: start;
  gap: 16px;
}

.luman-pulse__console, .luman-pulse__aside {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--pulse-line);
  border-radius: 18px;
  background: var(--pulse-panel);
}

.luman-pulse__hud {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 0 9px;
  border: 1px solid var(--pulse-line);
  border-radius: 10px;
  background: var(--pulse-bg);
}

.luman-pulse__hud > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 8px;
  padding: 10px 11px;
  min-width: 0;
}

.luman-pulse__hud > div + div { border-left: 1px solid var(--pulse-line); }
.luman-pulse__hud > div > span { color: var(--pulse-muted); font-size: .68rem; font-weight: 700; }
.luman-pulse__hud strong { font: 700 .86rem/1.2 ui-monospace, monospace; white-space: nowrap; }
.luman-pulse__hud .luman-pulse__health { color: var(--pulse-amber); font-family: Arial, sans-serif; }
.luman-pulse__health span + span { margin-left: 3px; }
.luman-pulse__health .is-empty { color: #78858d; }

.luman-pulse__board {
  position: relative;
  overflow: hidden;
  border: 1px solid #35464c;
  border-radius: 11px;
  background: #080e15;
}

.luman-pulse__board canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 340; }

.luman-pulse__board canvas:focus-visible {
  outline-offset: -4px;
}

.luman-pulse__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: 1fr / 1fr;
  padding: 8px;
  overflow: auto;
  background: #080d13b8;
}

.luman-pulse__dialog {
  place-self: safe center;
  max-width: 430px;
  padding: clamp(10px, 2.4vw, 23px);
  border: 1px solid #416064;
  border-radius: 13px;
  background: #10191ef2;
  text-align: center;
  box-shadow: 0 9px 34px #03090e99;
}

.luman-pulse__dialog-label {
  margin: 0 0 4px;
  color: var(--pulse-cyan);
  font-size: .6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .16em;
}

.luman-pulse__dialog h2 {
  margin: 0;
  font-size: clamp(1.25rem, 4.7vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.03;
}

.luman-pulse__dialog h2 + p {
  margin: 6px 0 0;
  color: var(--pulse-muted);
  font-size: .85rem;
  line-height: 1.4;
}

.luman-pulse__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }

.luman-pulse__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--pulse-cyan);
  color: #101b1d;
  font-family: inherit;
  font-size: .79rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.luman-pulse__button:hover:not(:disabled) { background: #baf5ee; color: #101b1d; }
.luman-pulse__button--quiet { border-color: #41545a; background: #172027; color: var(--pulse-text); }
.luman-pulse__button--quiet:hover:not(:disabled) { background: #263940; color: var(--pulse-text); }
.luman-pulse__button:disabled { opacity: .55; cursor: default; }

.luman-pulse__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 9px 0 7px;
}

.luman-pulse__control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 2vw, 13px);
  min-width: 0;
  min-height: 64px;
  padding: 5px;
  border: 1px solid #4a7873;
  border-radius: 11px;
  background: #132d2d;
  color: var(--pulse-cyan);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.luman-pulse__control--fire { border-color: #896b46; background: #30251b; color: var(--pulse-amber); }
.luman-pulse__control svg { flex: 0 0 23px; width: 23px; height: 23px; }
.luman-pulse__control strong { display: block; font-size: clamp(.83rem, 3vw, 1rem); font-weight: 800; line-height: 1.1; }
.luman-pulse__control small { display: block; margin-top: 4px; font: 700 .62rem/1.1 ui-monospace, monospace; letter-spacing: .08em; }
.luman-pulse__control kbd { margin-left: 2px; color: var(--pulse-text); }
.luman-pulse__control:disabled { opacity: .65; cursor: default; }
.luman-pulse__control:active:not(:disabled), .luman-pulse__control.is-held { filter: brightness(1.42); }

.luman-pulse__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 40px;
}

.luman-pulse__hint, .luman-pulse__keys, .luman-pulse__rules {
  margin: 0;
  color: var(--pulse-muted);
  font-size: .73rem;
  line-height: 1.4;
}

.luman-pulse__hint.is-warning { color: var(--pulse-amber); font-weight: 800; }
.luman-pulse__keys { margin-top: 5px; }

.luman-pulse__promo {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid #4a7873;
  border-radius: 11px;
  background: #132525;
}

.luman-pulse__promo label { font-size: .76rem; font-weight: 800; }
.luman-pulse__copy { display: flex; gap: 6px; max-width: 100%; }
.luman-pulse__copy input {
  flex: 1 1 160px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 5px 9px;
  border: 1px solid #4a7873;
  border-radius: 8px;
  background: #0a191d;
  color: var(--pulse-cyan);
  font: 700 .98rem/1.2 ui-monospace, monospace;
}
.luman-pulse__promo p { margin: 0; color: var(--pulse-muted); font-size: .77rem; line-height: 1.4; }

.luman-pulse__aside { padding: 19px; }
.luman-pulse__aside h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.95rem); line-height: 1.07; letter-spacing: -.04em; }
.luman-pulse__levels { display: grid; gap: 6px; margin: 15px 0; padding: 0; list-style: none; }

.luman-pulse__levels li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--pulse-line);
  border-radius: 8px;
  color: var(--pulse-muted);
  font-size: .78rem;
}

.luman-pulse__levels li[aria-current] { border-color: #4a7873; background: #12292b; color: var(--pulse-text); }
.luman-pulse__levels li.is-cleared { color: var(--pulse-cyan); }
.luman-pulse__number { font: 700 .72rem/1.2 ui-monospace, monospace; }
.luman-pulse__prize { color: var(--pulse-amber); font-weight: 800; white-space: nowrap; }
.luman-pulse__rules strong { color: var(--pulse-amber); }

.luman-pulse__announce {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 840px) {
  .luman-pulse { padding: 76px 12px 52px; }
  .luman-pulse__inner { max-width: 590px; }
  .luman-pulse__layout { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .luman-pulse__intro { display: block; margin: 6px 0 13px; }
  .luman-pulse__eyebrow { margin-bottom: 5px; }
  .luman-pulse__tagline { margin-top: 7px; max-width: none; font-size: .78rem; }
  .luman-pulse__console { padding: 8px; border-radius: 14px; }
  .luman-pulse__aside { padding: 14px; border-radius: 14px; }
}

@media (max-width: 420px) {
  .luman-pulse__hud > div { display: grid; gap: 2px; padding: 6px 7px; }
  .luman-pulse__overlay { padding: 5px; }
  .luman-pulse__dialog { padding: 8px; }
  .luman-pulse__dialog h2 + p { font-size: .72rem; }
  .luman-pulse__dialog .luman-pulse__button { padding-inline: 8px; font-size: .71rem; }
  .luman-pulse__actions { margin-top: 7px; }
}

@media (max-width: 360px) {
  .luman-pulse__overlay { padding: 4px; }
  .luman-pulse__dialog { padding: 6px; }
  .luman-pulse__dialog-label { margin-bottom: 3px; font-size: .55rem; line-height: 1.1; }
  .luman-pulse__dialog .luman-pulse__button { min-height: 44px; }
  .luman-pulse__actions { margin-top: 6px; }
}
