:root {
  --astra-cyan: #35d8f4;
  --astra-lime: #b7ff2a;
  --astra-coral: #ff5d72;
  --astra-amber: #ffc84a;
  --astra-ink: #070b0f;
  --astra-panel: #0d1318;
}

.portal-broadcast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 26px;
  width: min(620px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(4, 8, 11, 0.94);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.54);
  transform: translateX(-50%);
}

.portal-overture.is-intro-active .portal-broadcast {
  animation: portal-ui-arrive 720ms 2200ms ease both;
}

.portal-overture.is-portal-departing .portal-broadcast,
.portal-overture.is-portal-departing .portal-beta-news {
  opacity: 0;
  transform: translateX(-50%) scale(0.96);
  transition: opacity 380ms ease, transform 380ms ease;
}

.portal-overture.is-portal-departing .portal-beta-news {
  transform: scale(0.96);
}

.portal-broadcast-main {
  position: relative;
  min-width: 0;
  height: 96px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 15px;
  padding: 8px 14px 8px 8px;
  overflow: hidden;
  color: #f7fbff;
  text-align: left;
  background: transparent;
}

.portal-broadcast-main > img {
  width: 168px;
  height: 80px;
  object-fit: cover;
  object-position: 53% 50%;
  border: 1px solid rgba(53, 216, 244, 0.55);
  filter: saturate(1.1) contrast(1.04);
}

.portal-broadcast-main::after {
  content: "";
  position: absolute;
  left: 160px;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--astra-cyan);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 260ms ease, background-color 260ms ease;
}

.portal-broadcast-main:hover::after,
.portal-broadcast-main:focus-visible::after {
  background: var(--astra-lime);
  transform: scaleX(1);
}

.portal-broadcast-copy {
  min-width: 0;
  display: grid;
  line-height: 1;
}

.portal-broadcast-copy small,
.portal-broadcast-copy b {
  color: rgba(241, 248, 252, 0.58);
  font-size: 9px;
  font-weight: 800;
}

.portal-broadcast-copy strong {
  margin: 7px 0 5px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 25px;
  font-weight: 900;
}

.portal-broadcast-play {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #07100b;
  border-radius: 50%;
  background: var(--astra-lime);
  box-shadow: 0 0 0 7px rgba(183, 255, 42, 0.12);
}

.portal-broadcast-play svg { width: 19px; height: 19px; }

.portal-broadcast-wave {
  position: absolute;
  left: 190px;
  right: 80px;
  bottom: 10px;
  height: 13px;
  display: flex;
  align-items: end;
  gap: 4px;
  opacity: 0.45;
  pointer-events: none;
}

.portal-broadcast-wave i {
  width: 2px;
  height: 30%;
  background: var(--astra-cyan);
  animation: astra-broadcast-wave 850ms ease-in-out infinite alternate;
}

.portal-broadcast-wave i:nth-child(2n) { height: 80%; animation-delay: -280ms; background: var(--astra-coral); }
.portal-broadcast-wave i:nth-child(3n) { height: 55%; animation-delay: -520ms; background: var(--astra-lime); }

.portal-broadcast-spotify {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #f7fbff;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: #10171c;
  font-size: 9px;
  font-weight: 900;
}

.portal-broadcast-spotify:hover,
.portal-broadcast-spotify:focus-visible {
  color: var(--astra-lime);
  background: #152018;
}

.portal-broadcast-spotify svg { width: 20px; height: 20px; }

.portal-beta-news {
  position: absolute;
  z-index: 5;
  top: 104px;
  right: 24px;
  width: 246px;
  display: grid;
  gap: 8px;
  padding: 15px;
  color: #eff7fb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--astra-coral);
  background: rgba(6, 10, 14, 0.78);
  backdrop-filter: blur(10px);
}

.portal-beta-news > strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
}

.portal-beta-live,
.portal-beta-news small {
  color: rgba(239, 247, 251, 0.66);
  font-size: 9px;
  font-weight: 800;
}

.portal-beta-live i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--astra-lime);
  box-shadow: 0 0 10px rgba(183, 255, 42, 0.75);
}

.portal-beta-news a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--astra-lime);
  font-size: 10px;
  font-weight: 900;
}

.portal-beta-news a svg { width: 14px; height: 14px; }
.portal-beta-news small b { color: #fff; font-size: 12px; }

.portal-broadcast-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #05080b;
}

.portal-video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #05080b;
}

.portal-video-stage-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.66);
}

.portal-video-stage > header {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.portal-video-stage > header > div {
  padding: 8px 12px;
  color: #fff;
  border-left: 3px solid var(--astra-coral);
  background: rgba(4, 7, 10, 0.8);
}

.portal-video-stage > header span {
  color: var(--astra-amber);
  font-size: 9px;
  font-weight: 900;
}

.portal-video-stage > header h2 {
  margin: 2px 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 27px;
  line-height: 1;
}

.portal-video-stage > header button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(4, 7, 10, 0.82);
}

.portal-broadcast-shell .portal-video-frame {
  position: absolute;
  z-index: 2;
  top: 21%;
  left: 12%;
  width: 53%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(53, 216, 244, 0.72);
  background: #000;
  box-shadow: 0 0 0 8px rgba(6, 12, 16, 0.75), 0 0 42px rgba(53, 216, 244, 0.42);
  clip-path: polygon(4% 0, 96% 0, 100% 10%, 100% 90%, 96% 100%, 4% 100%, 0 90%, 0 10%);
}

.portal-video-signal {
  position: absolute;
  z-index: 3;
  left: 15%;
  bottom: 14%;
  color: var(--astra-lime);
  font-size: 9px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(183, 255, 42, 0.8);
}

.portal-broadcast-shell > footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-broadcast-shell > footer p {
  flex: 1;
  margin: 0;
  color: rgba(248, 251, 255, 0.62);
  font-size: 12px;
}

.portal-broadcast-shell > footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 900;
}

.beta-news-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 24px 38px;
  align-items: end;
  margin-bottom: 72px;
  padding: 28px;
  color: #f3f8fb;
  border-left: 4px solid var(--astra-coral);
  background: #0b1116;
  box-shadow: 18px 18px 0 #ccd2db;
}

.beta-news-card > div:nth-child(2) { max-width: 780px; }
.beta-news-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; color: var(--astra-lime); font-size: 10px; }
.beta-news-card h2 { margin: 8px 0 12px; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(34px, 4.2vw, 62px); line-height: 0.95; text-transform: uppercase; }
.beta-news-card p:not(.eyebrow) { margin: 0; max-width: 740px; color: rgba(238, 246, 250, 0.68); font-size: 14px; }
.beta-news-card .button { white-space: nowrap; }
.beta-news-card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: rgba(255, 255, 255, 0.12); }
.beta-news-card dl div { display: grid; gap: 4px; padding: 15px; background: #101820; }
.beta-news-card dt { color: rgba(240, 247, 251, 0.5); font-size: 9px; font-weight: 900; }
.beta-news-card dd { margin: 0; color: #fff; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 23px; font-weight: 900; }

.quick-start {
  color: #f4f8fb;
  background: #0a0f13;
}

.install-wizard {
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f161c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.install-wizard-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.install-wizard-tabs button {
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 12px 18px;
  color: rgba(243, 248, 251, 0.55);
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1419;
}

.install-wizard-tabs button:last-child { border-right: 0; }
.install-wizard-tabs button > span { grid-row: 1 / 3; align-self: center; color: rgba(255, 255, 255, 0.28); font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 26px; font-weight: 900; }
.install-wizard-tabs button strong { color: inherit; font-size: 11px; }
.install-wizard-tabs button small { font-size: 10px; }
.install-wizard-tabs button[aria-current="step"] { color: #fff; background: #172128; box-shadow: inset 0 -3px 0 var(--astra-lime); }
.install-wizard-tabs button[aria-current="step"] > span { color: var(--astra-lime); }

.install-wizard-body {
  min-height: 330px;
}

.install-panel {
  min-height: 330px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 42px;
}

.install-panel[hidden] { display: none; }

.install-panel-icon {
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  color: var(--astra-lime);
  border: 1px solid rgba(183, 255, 42, 0.4);
  background: #121d17;
  box-shadow: inset 0 0 0 14px #0d1411;
}

.install-panel-icon svg { width: 58px; height: 58px; }
.install-panel > div:last-child > span { color: var(--astra-coral); font-size: 10px; font-weight: 900; }
.install-panel h3 { margin: 8px 0 15px; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(31px, 4vw, 48px); line-height: 0.98; text-transform: uppercase; }
.install-panel p { max-width: 790px; margin: 0; color: rgba(240, 247, 251, 0.7); font-size: 14px; line-height: 1.65; }
.install-panel ol { max-width: 850px; margin: 16px 0 0; padding-left: 22px; color: rgba(240, 247, 251, 0.76); font-size: 13px; line-height: 1.7; }
.install-panel code { padding: 2px 5px; color: var(--astra-lime); background: #070b0e; }

.install-inline-action {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0 14px;
  color: #08100b;
  background: var(--astra-lime);
  font-size: 10px;
  font-weight: 900;
}

.install-inline-action svg { width: 17px; height: 17px; }

.install-wizard-footer {
  min-height: 66px;
  display: grid;
  grid-template-columns: 130px minmax(160px, 1fr) 130px;
  align-items: center;
  gap: 22px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #090e12;
}

.install-wizard-footer > button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #121a20;
  font-size: 10px;
  font-weight: 900;
}

.install-wizard-footer > button:disabled { opacity: 0.32; }
.install-wizard-footer > button:not(:disabled):hover { color: var(--astra-lime); border-color: var(--astra-lime); }
.install-wizard-footer svg { width: 16px; height: 16px; }
.install-wizard-footer > div { display: grid; gap: 7px; text-align: center; color: rgba(255, 255, 255, 0.56); font-size: 9px; font-weight: 900; }
.install-wizard-footer > div > i { height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.install-wizard-footer > div > i > b { width: 25%; height: 100%; display: block; background: var(--astra-lime); transition: width 220ms ease; }

.astra-guide-toggle {
  position: fixed;
  z-index: 90;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-width: 210px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 13px 7px 7px;
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #0c1318;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.astra-guide-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #07100b;
  background: var(--astra-lime);
}

.astra-guide-avatar svg { width: 20px; height: 20px; }
.astra-guide-toggle > span:last-child { display: grid; text-align: left; }
.astra-guide-toggle strong { font-size: 11px; }
.astra-guide-toggle small { color: rgba(245, 250, 252, 0.56); font-size: 9px; }

.astra-guide-panel {
  position: fixed;
  z-index: 91;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(86px, calc(env(safe-area-inset-bottom) + 74px));
  width: min(390px, calc(100% - 28px));
  color: #f4f9fc;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #0c1318;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
}

.astra-guide-panel[hidden] { display: none; }

.astra-guide-panel > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.astra-guide-panel > header > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.astra-guide-panel > header .live-dot { grid-row: 1 / 3; }
.astra-guide-panel > header strong { font-size: 11px; }
.astra-guide-panel > header small { color: rgba(246, 250, 252, 0.5); font-size: 8px; }
.astra-guide-panel > header button { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); background: #121a20; }
.astra-guide-panel > header svg { width: 17px; height: 17px; }

.astra-guide-message {
  min-height: 132px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
}

.astra-guide-message > span { width: 36px; height: 36px; display: grid; place-items: center; color: #06100b; background: var(--astra-lime); font-size: 10px; font-weight: 900; }
.astra-guide-message p { margin: 0; color: rgba(242, 248, 251, 0.75); font-size: 13px; line-height: 1.55; }

.astra-guide-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.astra-guide-topics button {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: rgba(246, 250, 252, 0.78);
  text-align: left;
  background: #11191f;
  font-size: 10px;
  font-weight: 800;
}

.astra-guide-topics button:hover { color: var(--astra-lime); background: #16211b; }
.astra-guide-topics svg { width: 16px; height: 16px; }
.astra-guide-primary { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #07100a; background: var(--astra-lime); font-size: 10px; font-weight: 900; }
.astra-guide-primary svg { width: 17px; height: 17px; }

.telemetry-consent {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(760px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  color: #eef7fb;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #0a1116;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  transform: translateX(-50%);
}

.telemetry-consent[hidden] { display: none; }
.telemetry-consent > div:first-child { display: flex; align-items: center; gap: 12px; }
.telemetry-consent > div:first-child > svg { flex: 0 0 28px; color: var(--astra-cyan); }
.telemetry-consent p { display: grid; gap: 3px; margin: 0; }
.telemetry-consent p strong { font-size: 10px; }
.telemetry-consent p span { color: rgba(241, 248, 251, 0.62); font-size: 10px; line-height: 1.45; }
.telemetry-consent > div:last-child { display: flex; gap: 7px; }
.telemetry-consent button { min-width: 78px; min-height: 38px; padding: 0 10px; color: #f7fbff; border: 1px solid rgba(255, 255, 255, 0.22); background: #131c22; font-size: 9px; font-weight: 900; }
.telemetry-consent [data-telemetry-accept] { color: #07100b; border-color: var(--astra-lime); background: var(--astra-lime); }

.footer-privacy-button {
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes astra-broadcast-wave {
  to { height: 100%; }
}

@media (max-width: 980px) {
  .portal-beta-news { width: 210px; }
  .beta-news-card { grid-template-columns: 1fr; align-items: start; }
  .beta-news-card .button { width: fit-content; }
  .beta-news-card dl { grid-column: auto; }
}

@media (max-width: 760px) {
  .portal-broadcast {
    bottom: 15px;
    width: calc(100% - 22px);
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .portal-broadcast-main {
    height: 78px;
    grid-template-columns: 96px minmax(0, 1fr) 40px;
    gap: 9px;
    padding: 6px 8px 6px 6px;
  }

  .portal-broadcast-main > img { width: 96px; height: 66px; }
  .portal-broadcast-main::after { left: 94px; }
  .portal-broadcast-copy strong { margin: 5px 0 3px; font-size: 20px; }
  .portal-broadcast-copy small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .portal-broadcast-play { width: 38px; height: 38px; box-shadow: none; }
  .portal-broadcast-wave { display: none; }
  .portal-broadcast-spotify span { display: none; }
  .portal-beta-news { top: 86px; right: 10px; width: auto; padding: 8px 10px; }
  .portal-beta-news > strong,
  .portal-beta-news > a,
  .portal-beta-news > small { display: none; }

  .portal-video-dialog { width: calc(100% - 12px); }
  .portal-video-stage { aspect-ratio: 4 / 3; }
  .portal-video-stage-art { object-position: 50% 50%; }
  .portal-broadcast-shell .portal-video-frame { top: 25%; left: 7%; width: 70%; }
  .portal-video-signal { left: 10%; bottom: 10%; }
  .portal-broadcast-shell > footer { flex-wrap: wrap; }
  .portal-broadcast-shell > footer p { flex-basis: 100%; }

  .beta-news-card { margin-bottom: 52px; padding: 20px; box-shadow: 9px 9px 0 #ccd2db; }
  .beta-news-card h2 { font-size: 39px; }
  .beta-news-card dl { grid-template-columns: 1fr; }

  .install-wizard-tabs button {
    min-height: 64px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1px;
    padding: 8px;
    text-align: center;
  }

  .install-wizard-tabs button > span { grid-row: auto; font-size: 19px; }
  .install-wizard-tabs button small { display: none; }
  .install-panel { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding: 24px 18px; }
  .install-panel-icon { width: 72px; height: 72px; box-shadow: inset 0 0 0 7px #0d1411; }
  .install-panel-icon svg { width: 30px; height: 30px; }
  .install-panel h3 { font-size: 34px; }
  .install-wizard-footer { grid-template-columns: 78px minmax(90px, 1fr) 78px; gap: 8px; padding: 8px; }
  .install-wizard-footer > button span { display: none; }

  .astra-guide-toggle {
    min-width: 54px;
    min-height: 54px;
    padding: 6px;
  }

  .astra-guide-toggle > span:last-child { display: none; }
  .astra-guide-panel { right: 14px; bottom: 80px; }
  .telemetry-consent { grid-template-columns: 1fr; }
  .telemetry-consent > div:last-child { justify-content: flex-end; }
}

@media (max-width: 430px) {
  .portal-broadcast-copy small { display: none; }
  .portal-broadcast-main { grid-template-columns: 86px minmax(0, 1fr) 36px; }
  .portal-broadcast-main > img { width: 86px; }
  .portal-broadcast-play { width: 34px; height: 34px; }
  .portal-broadcast-play svg { width: 15px; height: 15px; }
  .astra-guide-topics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-broadcast-wave i { animation: none; }
}
