.bb9 {
  --bb9-accent: #c1ff00;
  --bb9-muted: #b8b8b8;
  --bb9-rule: #353535;
  background: #000 linear-gradient(#101011, #000) top / 100% 132px no-repeat;
  color: #f7f7f7;
  font-family: "BB Source Han", "PingFang SC", sans-serif;
}

.bb9-intro {
  display: grid;
  align-content: center;
  min-height: min(88svh, 880px);
  padding-block: clamp(82px, 11vw, 170px) clamp(68px, 8vw, 123px);
}

.bb9-intro h2 {
  width: fit-content;
  margin: 0 0 clamp(24px, 4.1vw, 64px);
  padding-top: 12px;
  border-top: 1px solid var(--bb9-accent);
  color: var(--bb9-accent);
  font: 600 clamp(13px, 1.17vw, 18px)/1.3 var(--case-display);
  letter-spacing: .14em;
}

.bb9-statement,
.bb9-thanks {
  margin: 0;
  font: 900 clamp(44px, 10.35vw, 175px)/.89 var(--case-display);
  letter-spacing: -.018em;
}
.bb9-statement :is(span, strong) { display: block; }
.bb9-statement strong { color: var(--bb9-accent); font-weight: inherit; }
.bb9-subtitle {
  margin: clamp(24px, 4vw, 61px) 0 0;
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.5;
}

.bb9-notes { border-block: 1px solid var(--bb9-rule); }
.bb9-note {
  display: grid;
  grid-template-columns: clamp(34px, 7vw, 106px) minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 32px);
  padding-block: clamp(30px, 5.1vw, 76px);
}
.bb9-note + .bb9-note { border-top: 1px solid var(--bb9-rule); }
.bb9-index {
  color: var(--bb9-accent);
  font: 500 clamp(12px, 1.1vw, 16px)/1.3 var(--mono);
  padding-top: .35em;
}
.bb9-note h3 { display: grid; align-content: start; gap: 8px; margin: 0; color: #f7f7f7; }
.bb9-note h3 [lang] {
  font: 700 clamp(19px, 2.23vw, 37px)/1.08 var(--case-display);
  letter-spacing: -.018em;
}
.bb9-note h3 span + span {
  color: var(--bb9-muted);
  font-size: clamp(14px, 1.22vw, 18px);
  font-weight: 500;
}
.bb9-note p {
  max-width: 34em;
  margin: 0;
  color: #d5d5d5;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.85;
}

.bb9-outro { margin-top: clamp(48px, 8vw, 108px); }
.bb9-outro-stage {
  display: grid;
  align-items: center;
  min-height: 66svh;
  padding-block: 32px;
}
.bb9-motion .bb9-outro { min-height: 165svh; }
.bb9-motion .bb9-outro-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding-top: var(--nav, 64px);
}
.bb9-outro-frame {
  position: relative;
  container-type: inline-size;
  width: min(calc(100% - var(--gutter) * 2), 1150px, 136svh);
  aspect-ratio: 1040 / 629;
}
.bb9-tv { width: 100%; height: 100%; image-rendering: pixelated; }
.bb9-screen {
  position: absolute;
  inset: 10.1% 17.7% 11.5% 7.2%;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #0c1222f2, #07090ef2 65%);
  clip-path: polygon(
    0 11%, 2% 11%, 2% 6%, 4% 6%, 4% 3%, 21% 3%, 21% 0,
    79% 0, 79% 3%, 91% 3%, 91% 5%, 96% 5%, 96% 10%, 98% 10%,
    98% 13%, 100% 13%, 100% 85%, 98% 85%, 98% 92%, 96% 92%,
    96% 96%, 79% 96%, 79% 100%, 4% 100%, 4% 97%, 2% 97%, 2% 94%, 0 94%
  );
}
.bb9-screen::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: repeating-linear-gradient(0deg, #0003 0 1px, transparent 1px 4px);
  content: "";
  pointer-events: none;
}
.bb9-picture {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.7cqw;
  background: radial-gradient(ellipse at 50% 44%, #242e46, #111725 56%, #090d16 100%);
  text-align: center;
}
.bb9:not(.bb9-motion) [data-powered="false"] .bb9-picture { opacity: 0; }
.bb9-whale {
  position: relative;
  width: 24cqw;
  aspect-ratio: 380 / 424;
  overflow: clip;
}
.bb9-whale :is(img, video) { image-rendering: pixelated; }
.bb9-whale img { width: 100%; height: auto; }
.bb9-whale video {
  position: absolute;
  top: -56.8%;
  left: -14.8%;
  width: 131.7%;
  height: auto;
  opacity: 0;
}
.bb9-whale.is-playing img { opacity: 0; }
.bb9-whale.is-playing video { opacity: 1; }
.bb9-thanks {
  font-size: 9.3cqw;
  white-space: nowrap;
}
.bb9-crt-line, .bb9-crt-point {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  opacity: 0;
  pointer-events: none;
}
.bb9-crt-line {
  z-index: 2;
  width: 97%;
  height: max(1px, .2cqw);
  background: #d6ffb5;
  box-shadow: 0 0 16px #c1ff0073;
}
.bb9-crt-point {
  z-index: 2;
  width: max(3px, .55cqw);
  aspect-ratio: 1;
  background: #f5ffe8;
  box-shadow: 0 0 14px #c1ff0073;
}
.bb9-led {
  position: absolute;
  top: 88.2%;
  left: 94%;
  width: 2.2%;
  height: 3.7%;
  background: #9b333b;
  box-shadow: 0 0 .55cqw #c42e3b54;
}
.bb9-outro-frame[data-powered="true"] .bb9-led {
  background: var(--bb9-accent);
  box-shadow: 0 0 1cqw #c1ff0080;
}
.bb9-power {
  position: absolute;
  top: 29.2%;
  left: 92.15%;
  display: grid;
  place-items: center;
  width: max(44px, 8%);
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
}
.bb9-power::before {
  width: clamp(9px, 2.75cqw, 26px);
  aspect-ratio: 1;
  background: #d8dde9;
  clip-path: polygon(
    44% 0, 57% 0, 57% 53%, 44% 53%, 44% 0, 25% 24%, 15% 24%, 15% 40%,
    5% 40%, 5% 80%, 17% 80%, 17% 93%, 82% 93%, 82% 80%, 95% 80%, 95% 40%,
    85% 40%, 85% 24%, 75% 24%, 75% 45%, 82% 45%, 82% 71%, 72% 71%, 72% 80%,
    29% 80%, 29% 71%, 18% 71%, 18% 45%, 25% 45%, 25% 24%
  );
  content: "";
}
.bb9-power:is(:hover, :focus-visible)::before { background: var(--bb9-accent); }
.bb9 .bb9-power:focus-visible { outline-color: var(--bb9-accent); }

@media (prefers-reduced-motion: reduce) {
  .bb9-picture, .bb9-led { transition-property: none; }
}

@media (max-width: 700px) {
  .bb9-intro { min-height: 70svh; }
  .bb9-note { grid-template-columns: 30px minmax(0, 1fr); }
  .bb9-note p { grid-column: 2; }
  .bb9-note h3 { gap: 5px; }
}

@media (max-width: 360px) {
  .bb9-statement { font-size: 12vw; }
}
