/* Full-width canvas hero: shaped components traced, cut and lifted from irregular offcuts. */
.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(60% 70% at 72% 58%, #c8f0311a, transparent 70%), var(--bg);
}
.hero-shell:not(.hero-canvas-ready) {
  background:
    linear-gradient(90deg, var(--bg) 0 30%, #0a0b0a00 62%),
    url('/assets/images/hero-poster.webp') right center / cover no-repeat,
    var(--bg);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-shell:not(.hero-canvas-ready) .hero-canvas {
  display: none;
}
.hero-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #0a0b0af2 0%, #0a0b0acc 26%, #0a0b0a33 50%, #0a0b0a00 62%),
    linear-gradient(180deg, #0a0b0a00 78%, var(--bg) 100%);
}
.hero-component .hero-focus {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.hero-focus > * {
  pointer-events: auto;
}
.hero-component .hero-focus > .hero-stage-area {
  flex: 1;
  min-height: 200px;
  pointer-events: none;
}
.hero-hud {
  align-self: flex-end;
  width: min(100%, 290px);
  padding: 16px 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0a0b0a8c;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.hero-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-hud-index b {
  color: var(--heading);
  font-weight: 600;
  margin-right: 5px;
}
.hero-hud-index i {
  font-style: normal;
}
.hero-hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}
.hero-hud-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero-hud-body {
  display: grid;
  gap: 5px;
  margin: 16px 0 14px;
}
.hero-hud-kicker {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hero-hud-body strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.hero-hud-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.hero-hud-bars span {
  --progress: 0;
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}
.hero-hud-bars span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scaleX(var(--progress));
  transform-origin: left;
}
.hero-shell:not(.hero-canvas-ready) .hero-hud-bars span:first-child {
  --progress: 1;
}
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.hero-render-note {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hero-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #0a0b0a8c;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--heading);
  font-size: 11px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.hero-pause:hover {
  background: #ffffff14;
  border-color: #ffffff4d;
}
.hero-pause svg {
  width: 12px;
  height: 12px;
}
.hero-pause:disabled {
  color: var(--muted);
}
.hero-shell[data-hero-playing='false'] .hero-hud-tag::before {
  background: var(--muted);
  box-shadow: none;
}
@media (max-width: 640px) {
  .hero-shell::after {
    background:
      linear-gradient(180deg, #0a0b0af2 0%, #0a0b0ad9 40%, #0a0b0a1a 58%, #0a0b0a00 70%),
      linear-gradient(180deg, #0a0b0a00 88%, var(--bg) 100%);
  }
  .hero-shell:not(.hero-canvas-ready) {
    background:
      linear-gradient(180deg, var(--bg) 0 45%, #0a0b0a00 70%),
      url('/assets/images/hero-poster.webp') 70% bottom / auto 48% no-repeat,
      var(--bg);
  }
  .hero-component .hero-focus {
    min-height: 470px;
    margin: 0;
    gap: 14px;
  }
  .hero-component .hero-focus > .hero-stage-area {
    order: -1;
    min-height: 300px;
  }
  .hero-hud {
    width: 100%;
    padding: 13px 15px 15px;
  }
  .hero-hud-body {
    grid-template-columns: 1fr;
    margin: 10px 0 11px;
  }
  .hero-hud-body strong {
    font-size: 18px;
  }
  .hero-controls {
    justify-content: space-between;
  }
}
