body:has(#demo-channel-dialog[open]) { overflow: hidden; }

#demo-channel-dialog {
  width: min(420px,calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 1px solid #4a375f;
  border-radius: 24px;
  background: #141122;
  color: #f6f2ff;
  font-family: "Segoe UI Variable","Segoe UI",system-ui,sans-serif;
  box-shadow: 0 24px 65px #08050ec9;
}

#demo-channel-dialog::backdrop {
  background: #080612ba;
  backdrop-filter: blur(4px);
}

.demo-channel-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 164px;
  padding: 22px 22px;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 114% at 79% 93%,#48336c 0%,#201436 55%,transparent 80%),
    linear-gradient(120deg,#21123a,#130e24 65%,#1d1632);
}

.demo-channel-brand { position: relative; z-index: 1; }
.demo-channel-brand-logo {
  display: block;
  margin-bottom: 12px;
  object-fit: cover;
  border: 1px solid #cdb0ef75;
  border-radius: 12px;
  background: #f2eaff;
}
.demo-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #715199;
  border-radius: 999px;
  background: #2a1944;
  color: #dbc8ff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.demo-channel-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5add95;
}
.demo-channel-brand strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.15;
}
.demo-channel-logo {
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  margin-inline: 12px clamp(18px,9vw,49px);
  border: 1px solid #7eefa67a;
  border-radius: 24px;
  background: linear-gradient(150deg,#38da82,#14a45c);
  box-shadow: 0 12px 28px #0f091c8c,0 0 28px #35d47a38;
  transform: rotate(-7deg);
}
.demo-channel-logo img { transform: rotate(7deg); }
.demo-channel-star {
  position: absolute;
  width: 10px;
  aspect-ratio: 1;
  clip-path: polygon(50% 0,58% 39%,100% 50%,59% 58%,50% 100%,40% 58%,0 50%,41% 41%);
  background: #c7abff;
  pointer-events: none;
}
.demo-channel-star.star-one { top: 29px; left: 45%; }
.demo-channel-star.star-two { top: 97px; right: 25px; width: 12px; }
.demo-channel-star.star-three { bottom: 20px; left: 42%; width: 12px; background: #9a7ae5; }

#demo-channel-dialog button, #demo-channel-dialog a {
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
#demo-channel-dialog :is(button,a):focus-visible {
  outline: 2px solid #ddc6ff;
  outline-offset: 2px;
}
#demo-channel-dialog .demo-channel-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  top: 11px;
  right: 11px;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 1px solid #8e75b570;
  border-radius: 9px;
  background: #1b122cbb;
  box-shadow: none;
  color: #eee6fc;
  font-size: 1.25rem;
  line-height: 1;
}

.demo-channel-content { padding: 22px 22px 16px; border-top: 1px solid #49365f; }
#demo-channel-dialog h2 {
  margin: 0;
  color: #f6f2ff;
  font-size: clamp(1.4rem,5.8vw,1.7rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.12;
}
#demo-channel-dialog h2 span { color: #cba9ff; }
#demo-channel-description { margin: 11px 0 0; color: #c6bbd7; font-size: .9rem; line-height: 1.52; }
.demo-channel-features {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin: 17px 0 18px;
  padding: 0;
  list-style: none;
}
.demo-channel-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid #48385d;
  border-radius: 10px;
  background: #211930;
  color: #f6f2ff;
  font-size: .72rem;
  font-weight: 700;
}
.demo-channel-features svg { flex: 0 0 15px; width: 15px; height: 15px; color: #c39ef6; }
#demo-channel-dialog :is(.demo-channel-join,.demo-channel-continue) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 750;
}
#demo-channel-dialog .demo-channel-join {
  gap: 8px;
  border: 1px solid #4add91;
  background: linear-gradient(110deg,#3fe38c,#28c873);
  color: #081d14;
  box-shadow: 0 9px 20px #1bd57519;
}
.demo-channel-join img { filter: brightness(0); }
#demo-channel-dialog .demo-channel-continue {
  margin-top: 8px;
  border: 1px solid #4a3c61;
  background: #181327;
  color: #f0e8fb;
  box-shadow: none;
}
#demo-channel-dialog .demo-channel-snooze {
  display: block;
  min-height: 36px;
  margin: 4px auto 0;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #b9aaca;
  font-size: .78rem;
}
#demo-channel-dialog .demo-channel-snooze:hover { text-decoration: underline; }

@media(max-width: 410px) {
  .demo-channel-features li { justify-content: center; gap: 4px; padding-inline: 4px; font-size: .68rem; }
  .demo-channel-features svg { flex-basis: 13px; width: 13px; height: 13px; }
}
@media(max-width: 365px) {
  .demo-channel-content, .demo-channel-hero { padding-inline: 16px; }
  .demo-channel-features li { flex-direction: column; gap: 3px; text-align: center; }
  .demo-channel-logo { width: 67px; margin-inline-end: 24px; }
}
