.stream-hero {
  position: relative;
  padding-top: clamp(24px, 5vw, 62px);
  padding-bottom: clamp(42px, 7vw, 88px);
  overflow: hidden;
}

.stream-hero::before {
  position: absolute;
  top: 7%;
  right: -8%;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--color-white-strong), transparent 66%);
}

.stream-hero-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(20px, 3.6vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-white-soft);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(28px) saturate(135%);
}

.stream-hero-board::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(var(--color-map-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-map-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black, transparent);
}

.stream-hero-copy,
.stream-route-card {
  position: relative;
  z-index: 1;
}

.stream-hero-copy {
  display: flex;
  min-height: 530px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
}

.stream-hero-copy h1 {
  max-width: 770px;
  margin-top: 20px;
  margin-bottom: 23px;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 0.98;
}

.stream-hero-lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--color-text-muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.stream-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.stream-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 29px;
}

.stream-route-card {
  align-self: center;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  transform: rotate(1.2deg);
}

.stream-window-bar {
  display: flex;
  gap: 7px;
  padding: 4px 4px 13px;
}

.stream-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.stream-window-bar span:nth-child(2) {
  background: var(--color-warn);
}

.stream-window-bar span:nth-child(3) {
  background: var(--color-success);
}

.stream-screen {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 20%, var(--color-white-strong), transparent 35%),
    var(--color-panel-blue);
}

.stream-screen svg {
  position: absolute;
  inset: 7% 2% auto;
  width: 96%;
  height: 78%;
}

.stream-land {
  fill: var(--color-map-land);
}

.stream-route {
  fill: none;
  stroke: var(--color-map-line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 9;
}

.stream-route-b {
  stroke: var(--color-blue-medium);
}

.stream-route-c {
  stroke-width: 2;
}

.stream-hub {
  fill: var(--color-accent);
  stroke: var(--color-white-strong);
  stroke-width: 6;
}

.stream-node {
  fill: var(--color-warn);
  stroke: var(--color-white-strong);
  stroke-width: 5;
}

.stream-screen-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 15px 17px;
  border-radius: var(--radius-md);
  background: var(--color-white-soft);
  backdrop-filter: blur(16px);
}

.stream-screen-label span,
.stream-screen-label strong {
  display: block;
}

.stream-screen-label span {
  margin-bottom: 2px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.stream-screen-label strong {
  font-size: 14px;
}

.stream-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 10px 5px;
}

.stream-control-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
}

.stream-control-row strong {
  display: block;
  font-size: 14px;
}

.stream-connect-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  background: var(--color-warn);
  box-shadow: var(--shadow-connect);
}

.stream-connect-mark svg {
  width: 24px;
  height: 24px;
}

.stream-article {
  position: relative;
}

.stream-section-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 96px);
}

.stream-section-grid .section-heading {
  margin-bottom: 0;
}

.stream-section-grid .section-heading h2 {
  margin-top: 15px;
}

.stream-prose {
  max-width: 790px;
  color: var(--color-text);
  font-size: 17px;
}

.stream-prose > :last-child {
  margin-bottom: 0;
}

.stream-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.stream-table th,
.stream-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.stream-table th {
  color: var(--color-text-muted);
  background: var(--color-panel-soft);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
}

.stream-table td {
  color: var(--color-text-muted);
  font-size: 14px;
}

.stream-table td:first-child {
  color: var(--color-text);
}

.stream-table tbody tr:last-child td {
  border-bottom: 0;
}

.stream-table-note {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.stream-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
}

.stream-info-card {
  position: relative;
  min-height: 245px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.stream-info-card:nth-child(3) {
  background: var(--color-panel-blue);
}

.stream-info-main {
  grid-row: span 2;
  min-height: 506px;
  background:
    radial-gradient(circle at 90% 8%, var(--color-yellow-soft), transparent 28%),
    var(--color-panel-soft);
}

.stream-info-wide {
  grid-column: 1 / -1;
  min-height: auto;
  background: var(--color-accent-dark);
}

.stream-info-card h3 {
  position: relative;
  z-index: 1;
}

.stream-info-card p {
  position: relative;
  z-index: 1;
  color: var(--color-text-muted);
}

.stream-info-wide h3,
.stream-info-wide p {
  color: var(--color-panel);
}

.stream-info-wide p {
  color: var(--color-white-soft);
}

.stream-card-index {
  position: absolute;
  right: 20px;
  bottom: -22px;
  color: var(--color-blue-soft);
  font-family: var(--font-mono);
  font-size: clamp(80px, 11vw, 150px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.09em;
}

.stream-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0;
}

.stream-check-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.stream-check-card strong {
  color: var(--color-accent-dark);
}

.stream-check-card ul {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.stream-check-card li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.stream-check-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: var(--radius-pill);
  background: var(--color-success);
}

.stream-error-list {
  display: grid;
  gap: 14px;
}

.stream-error-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 5vw, 70px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.stream-error-kind h3 {
  margin-top: 13px;
  margin-bottom: 0;
  font-size: 21px;
}

.stream-error-row p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.stream-steps {
  display: grid;
  max-width: 970px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stream-step;
}

.stream-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  margin: 0;
  counter-increment: stream-step;
}

.stream-steps li::before {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  content: counter(stream-step);
  border-radius: var(--radius-md);
  color: var(--color-panel);
  background: var(--color-accent);
  box-shadow: var(--shadow-button);
  font-family: var(--font-mono);
  font-weight: 760;
}

.stream-steps li::after {
  position: absolute;
  top: 54px;
  bottom: 0;
  left: 26px;
  width: 2px;
  content: "";
  background: var(--color-blue-medium);
}

.stream-steps li:last-child::after {
  display: none;
}

.stream-steps li > div {
  padding-bottom: 38px;
}

.stream-steps h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.stream-steps p {
  color: var(--color-text-muted);
}

.stream-plan-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding: clamp(27px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 15%, var(--color-yellow-soft), transparent 30%),
    var(--color-panel-blue);
  box-shadow: var(--shadow-card);
}

.stream-plan-note h3 {
  margin: 5px 0 13px;
}

.stream-plan-note p {
  max-width: 880px;
  color: var(--color-text-muted);
}

.stream-plan-note p:last-of-type {
  margin-bottom: 0;
}

.stream-end-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.stream-end-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  min-height: 135px;
  padding: 25px;
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stream-end-link:hover {
  color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}

.stream-end-link span:first-child {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.07em;
}

.stream-end-link strong {
  align-self: end;
  font-size: 18px;
}

.stream-end-link span:last-child {
  align-self: end;
  color: var(--color-accent);
  font-size: 22px;
}

@media (max-width: 980px) {
  .stream-hero-board {
    grid-template-columns: 1fr;
  }

  .stream-hero-copy {
    min-height: auto;
  }

  .stream-route-card {
    width: 100%;
    max-width: 680px;
    justify-self: center;
    transform: none;
  }

  .stream-section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stream-section-grid .section-heading {
    max-width: 780px;
  }
}

@media (max-width: 720px) {
  .stream-bento {
    grid-template-columns: 1fr;
  }

  .stream-info-main,
  .stream-info-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
  }

  .stream-check-grid,
  .stream-end-links {
    grid-template-columns: 1fr;
  }

  .stream-error-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stream-plan-note {
    grid-template-columns: 1fr;
  }

  .stream-plan-note .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .stream-hero {
    padding-top: 16px;
  }

  .stream-hero-board {
    padding: 15px;
    border-radius: var(--radius-lg);
  }

  .stream-hero-copy {
    padding: 17px 4px 9px;
  }

  .stream-hero-copy h1 {
    margin-top: 15px;
    font-size: clamp(38px, 11vw, 48px);
  }

  .stream-hero-lead {
    font-size: 15px;
  }

  .stream-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stream-hero-actions .button {
    width: 100%;
  }

  .stream-screen {
    min-height: 285px;
  }

  .stream-route-card {
    padding: 10px;
  }

  .stream-section-grid {
    gap: 17px;
  }

  .stream-prose {
    font-size: 16px;
  }

  .stream-info-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .stream-error-row {
    padding: 23px 19px;
  }

  .stream-steps li {
    grid-template-columns: 47px minmax(0, 1fr);
    gap: 15px;
  }

  .stream-steps li::before {
    width: 43px;
    height: 43px;
  }

  .stream-steps li::after {
    top: 43px;
    left: 21px;
  }

  .stream-steps h3 {
    font-size: 20px;
  }

  .stream-plan-note {
    padding: 25px 20px;
    border-radius: var(--radius-lg);
  }

  .stream-end-link {
    min-height: 120px;
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stream-route-card {
    transform: none;
  }
}