@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #090914;
  --bg-2: #101524;
  --panel: #171a22;
  --panel-2: #202634;
  --panel-3: #111520;
  --text: #f8f2e8;
  --muted: #b9c0cc;
  --soft: #dbe5f0;
  --line: rgba(202, 211, 226, 0.18);
  --green: #54d99a;
  --gold: #f2bd57;
  --blue: #69aef8;
  --violet: #a789ff;
  --red: #ff6b7a;
  --ink: #0e1118;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      120deg,
      #3b7fa8 0%,
      #9dc8df 16%,
      #d5ad75 32%,
      #c65b47 46%,
      #6d367d 62%,
      #221044 80%,
      #060712 100%
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 7, 14, 0.56), rgba(5, 7, 14, 0.8)),
    linear-gradient(to right, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.34));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(9, 10, 18, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 26px rgba(84, 217, 154, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero,
.section,
.site-footer,
.dashboard-shell,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: 56px 0 44px;
}

.story-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 65px);
  padding-bottom: 124px;
}

.hero-copy,
.section-heading {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 900;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

p,
li {
  color: var(--muted);
  line-height: 1.62;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--gold);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  font-size: 19px;
}

.hero-actions,
.docs-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.card-toggle,
.dashboard-tabs button,
.activity-head button,
.audience-switch button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.card-toggle,
.audience-switch button.is-active {
  background: var(--green);
  color: var(--ink);
  border-color: transparent;
}

.button.ghost {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
}

.button:hover,
.card-toggle:hover,
.audience-switch button:hover {
  transform: translateY(-1px);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.status-strip span,
.status-pill,
.preset-ready,
.preset-coming {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-strip span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.24);
  color: var(--soft);
}

.status-strip b {
  color: var(--gold);
}

.status-pill {
  width: fit-content;
}

.status-pill.live,
.preset-ready {
  background: rgba(84, 217, 154, 0.16);
  color: #9cf0c3;
}

.status-pill.beta {
  background: rgba(105, 174, 248, 0.18);
  color: #b6d8ff;
}

.status-pill.soon,
.preset-coming {
  background: rgba(242, 189, 87, 0.16);
  color: #ffe0a2;
}

.status-pill.future {
  background: rgba(167, 137, 255, 0.18);
  color: #d5c8ff;
}

.hero-demo,
.demo-screen,
.stream-frame,
.chat-rail,
.note-panel,
.support-card,
.way-card,
.tester-wall,
.legal-link,
.status-card,
.activity-log,
.panel-card,
.package-card,
.preview-card,
.faq-card,
.tutorial-brief,
.docs-content section,
.setup-steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 32, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.hero-demo {
  padding: 10px;
  backdrop-filter: blur(12px);
}

.demo-screen {
  min-height: 450px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 17, 28, 0.96), rgba(17, 28, 38, 0.9));
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.demo-topbar strong {
  color: var(--green);
}

.demo-arena {
  position: relative;
  min-height: 280px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(105, 174, 248, 0.14), rgba(167, 137, 255, 0.08)),
    linear-gradient(to bottom, transparent 60%, rgba(84, 217, 154, 0.12));
}

.boss-card,
.party-card,
.overlay-preview-ui {
  position: absolute;
  width: min(270px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.boss-card {
  left: 18px;
  bottom: 18px;
}

.party-card {
  right: 18px;
  top: 18px;
}

.boss-card span,
.party-card span,
.overlay-preview-ui span {
  display: block;
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.boss-card strong,
.party-card strong,
.overlay-preview-ui strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
}

.meter {
  height: 8px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.demo-chat {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.demo-chat p {
  margin: 0;
  font-size: 14px;
}

.demo-chat b {
  color: var(--gold);
}

.scroll-story {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 136px;
  pointer-events: none;
}

.story-ground {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 62px;
  background: linear-gradient(180deg, #203922, #101b12);
  clip-path: polygon(0 34%, 12% 20%, 24% 31%, 36% 17%, 49% 32%, 62% 22%, 76% 36%, 89% 24%, 100% 34%, 100% 100%, 0 100%);
}

.story-knight {
  position: absolute;
  left: clamp(64px, 10vw, 150px);
  bottom: 40px;
  width: 54px;
  height: 92px;
  animation: knight-walk linear both;
  animation-timeline: scroll(root);
  animation-range: 0 78%;
}

@keyframes knight-walk {
  from { transform: translateX(0); }
  to { transform: translateX(min(54vw, 760px)); }
}

.story-knight span {
  position: absolute;
  display: block;
}

.story-knight .helmet {
  left: 15px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #202438;
  border: 2px solid #3a415c;
}

.story-knight .helmet::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.story-knight .body {
  left: 12px;
  top: 26px;
  width: 30px;
  height: 38px;
  border-radius: 7px;
  background: #1b2032;
  border: 2px solid #343b55;
}

.story-knight .shield {
  left: 0;
  top: 32px;
  width: 18px;
  height: 30px;
  border-radius: 4px 4px 10px 10px;
  background: #27304a;
  border: 2px solid #3b4560;
}

.story-knight .sword {
  right: 0;
  top: 20px;
  width: 4px;
  height: 46px;
  border-radius: 999px;
  background: #d5d7e1;
}

.story-knight .sword::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 24px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.story-knight .legs {
  left: 14px;
  top: 66px;
  width: 28px;
  height: 24px;
  border-left: 9px solid #101522;
  border-right: 9px solid #101522;
}

.story-cave {
  position: absolute;
  right: clamp(26px, 8vw, 120px);
  bottom: 10px;
  width: 180px;
  height: 126px;
  border-radius: 44% 56% 0 0;
  background: linear-gradient(135deg, #393648, #1d1f2c);
  clip-path: polygon(0 100%, 0 28%, 18% 14%, 36% 20%, 50% 0, 66% 15%, 82% 8%, 100% 26%, 100% 100%);
}

.story-cave span {
  position: absolute;
  left: 46px;
  bottom: 0;
  width: 88px;
  height: 92px;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 80%, rgba(99, 28, 129, 0.52), #03040a 58%);
}

.section {
  position: relative;
  padding: 58px 0;
}

.anchor-target {
  position: absolute;
  top: -82px;
}

.section-heading {
  margin-bottom: 24px;
}

.ways-grid,
.package-grid,
.preview-grid,
.faq-grid,
.support-grid,
.status-grid,
.split-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.way-card,
.package-card,
.preview-card,
.support-card,
.status-card,
.faq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: visible;
}

.way-preview,
.preview-shot {
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  background: #0b0f16;
  border: 1px solid var(--line);
}

.preview-shot {
  height: 220px;
}

.stream-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.stream-frame img,
.way-preview img,
.preview-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-preview,
.chat-shot {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 14px;
}

.chat-line {
  padding: 10px;
  border-radius: 6px;
  background: rgba(15, 21, 31, 0.94);
  color: #e7edf6;
  font-size: 14px;
}

.chat-line b {
  color: var(--gold);
}

.overlay-preview-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(105, 174, 248, 0.16), rgba(167, 137, 255, 0.12)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(84, 217, 154, 0.1));
}

.overlay-preview-ui {
  left: 14px;
  right: 14px;
  bottom: 14px;
  width: auto;
}

.way-details {
  display: none;
  padding-bottom: 8px;
}

.way-card:hover .way-details,
.way-card:focus-within .way-details,
.way-card.show-details .way-details {
  display: block;
}

.way-card:hover .way-preview,
.way-card:focus-within .way-preview,
.way-card.show-details .way-preview {
  opacity: 0.32;
}

.way-details ul,
.dashboard-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.card-toggle {
  align-self: flex-start;
  margin-top: auto;
}

.two-column,
.support-layout,
.tutorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.note-panel,
.tester-wall,
.panel-card,
.tutorial-brief {
  padding: 22px;
}

.setup-steps,
.tutorial-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.setup-steps article {
  padding: 18px;
}

.setup-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}

.support-grid.compact {
  grid-template-columns: 1fr;
}

.tester-row,
.activity-row,
.editor-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.tester-row.private b {
  color: var(--red);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, 0.35fr));
  gap: 14px;
  align-items: stretch;
}

.legal-link {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.page-hero {
  padding: 58px 0 28px;
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  font-size: 18px;
}

.audience-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.audience-switch button {
  border-radius: 999px;
  border-color: transparent;
}

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

.faq-card h2 {
  font-size: 22px;
}

.tutorial-brief {
  margin-top: 16px;
}

.tutorial-list {
  counter-reset: step;
  list-style: none;
}

.tutorial-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 32, 0.86);
}

.tutorial-list strong {
  color: var(--text);
}

.docs-body {
  background: #15161a;
}

.docs-body::before,
.docs-body::after {
  display: none;
}

.docs-header {
  background: rgba(20, 21, 25, 0.96);
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.docs-brand {
  margin-bottom: 22px;
}

.docs-sidebar nav,
.docs-toc {
  display: grid;
  gap: 8px;
}

.docs-sidebar a,
.docs-toc a {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
}

.docs-sidebar nav a:hover,
.docs-toc a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.docs-content {
  min-width: 0;
}

.docs-search {
  position: sticky;
  top: 64px;
  z-index: 10;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 22, 26, 0.96);
}

.docs-search label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.docs-search div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
}

.docs-search span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 7px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
}

.docs-content section {
  margin-bottom: 16px;
  padding: 24px;
  scroll-margin-top: 136px;
}

.docs-content section.is-hidden {
  display: none;
}

.docs-content h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.docs-content h2 {
  font-size: 28px;
}

.docs-toc h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.dashboard-body {
  background:
    radial-gradient(circle at 52% 10%, rgba(145, 93, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #111722 0%, #181225 48%, #080912 100%);
}

.dashboard-body::before,
.dashboard-body::after {
  display: none;
}

.dashboard-header {
  align-items: center;
}

.dashboard-shell {
  padding: 34px 0 56px;
}

.account-dashboard {
  display: grid;
  gap: 1.25rem;
}

.login-stage,
.signed-out-stage {
  display: grid;
  min-height: calc(100vh - 190px);
  place-items: center;
}

.login-stage[hidden],
.signed-out-stage[hidden],
#dashboard-app[hidden] {
  display: none;
}

.login-card-wrap {
  isolation: isolate;
  position: relative;
  width: min(100%, 480px);
  padding-top: 76px;
}

.login-card {
  position: relative;
  z-index: 2;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(21, 25, 35, 0.96), rgba(14, 17, 25, 0.98)),
    rgba(18, 22, 32, 0.94);
}

.login-card h1,
.signed-out-card h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.login-button {
  position: relative;
  width: 100%;
  justify-content: center;
  margin: 10px 0 14px;
}

.provider-icon {
  position: absolute;
  top: 102px;
  right: -20px;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(248, 242, 232, 0.94);
  border-radius: 18px;
  background: #9146ff;
  box-shadow: 0 18px 34px rgba(145, 70, 255, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translate(-18px, 18px) scale(0.68) rotate(26deg);
  transform-origin: 30% 80%;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    z-index 0ms linear 160ms;
}

.provider-icon svg {
  width: 36px;
  height: 36px;
}

.twitch-bubble {
  fill: #fff;
}

.twitch-cuts {
  fill: #9146ff;
}

.login-card-wrap.is-provider-peeking .provider-icon,
.login-card-wrap.is-provider-popped .provider-icon {
  opacity: 1;
}

.login-card-wrap.is-provider-peeking .provider-icon {
  transform: translate(10px, -8px) scale(0.86) rotate(18deg);
}

.login-card-wrap.is-provider-popped .provider-icon {
  z-index: 3;
  transform: translate(26px, -18px) scale(1) rotate(7deg);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    z-index 0ms linear;
}

.signed-out-card {
  width: min(100%, 520px);
  padding: 34px;
  text-align: center;
}

.account-menu {
  position: relative;
}

.account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--green));
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 12px;
}

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: grid;
  width: 240px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(17, 20, 29, 0.98);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

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

.account-menu-panel strong,
.account-menu-panel span {
  padding: 0 8px;
}

.account-menu-panel span {
  color: var(--muted);
  font-size: 13px;
}

.account-menu-panel a,
.account-menu-panel button {
  border: 0;
  border-radius: 6px;
  padding: 9px 8px;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.account-title {
  margin-bottom: 0;
}

.account-routing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
}

.account-summary-box {
  display: grid;
  gap: 4px;
  margin: auto 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.account-summary-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-summary-box strong {
  color: var(--text);
}

.install-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: auto;
}

.setup-panel {
  padding: 22px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 16px;
}

.checklist-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.check-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(105, 174, 248, 0.22);
  color: #cde5ff;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}

.check-dot.is-ready {
  background: var(--green);
  color: var(--ink);
}

.config-panel {
  padding: 22px;
}

.config-grid-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-grid-form fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.config-grid-form legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 900;
}

.config-grid-form .dashboard-actions {
  grid-column: 1 / -1;
}

.custom-config-panel {
  padding: 22px;
}

.custom-editor-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  gap: 1rem;
  margin-top: 16px;
}

.custom-editor-layout nav,
.custom-editor-layout aside,
.custom-editor-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.custom-editor-layout nav {
  display: grid;
  align-self: start;
  gap: 6px;
}

.custom-editor-layout nav a {
  border-radius: 6px;
  padding: 8px;
  color: var(--muted);
  text-decoration: none;
}

.custom-editor-layout nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.install-dialog {
  width: min(520px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: #141821;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.install-dialog::backdrop {
  background: rgba(0, 0, 0, 0.64);
}

.install-dialog form {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 26px;
}

.install-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-footer {
  width: min(1180px, calc(100% - 32px));
}

.dashboard-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.moderating-banner {
  min-width: 220px;
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--green);
  color: var(--ink);
}

.moderating-banner span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.moderating-banner strong {
  display: block;
  font-size: 20px;
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dashboard-tabs button.is-active {
  background: var(--blue);
  color: var(--ink);
}

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

.activity-log {
  margin-top: 16px;
  padding: 20px;
}

.activity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.toggle-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  color: var(--muted);
}

.streamer-dashboard {
  display: grid;
  gap: 1.25rem;
}

.dashboard-welcome {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-status-grid {
  margin-bottom: 1.25rem;
}

.dashboard-note {
  color: var(--muted);
  max-width: 34rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.preset-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid rgba(200, 182, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.preset-card h3,
.preset-card p {
  margin: 0;
}

.preset-card .button {
  margin-top: auto;
}

.dashboard-form {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.dashboard-form label:not(.toggle-row) {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.dashboard-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(200, 182, 255, 0.35);
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  color: inherit;
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-error {
  border-color: rgba(248, 113, 113, 0.55);
}

@media (max-width: 1040px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }

  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header,
  .dashboard-title,
  .activity-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .two-column,
  .stream-preview,
  .legal-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .ways-grid,
  .support-grid,
  .status-grid,
  .split-panel,
  .preview-grid,
  .account-routing-grid,
  .checklist-grid,
  .custom-editor-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .config-grid-form {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .docs-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-search {
    position: static;
  }

  .story-hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .site-footer,
  .dashboard-shell,
  .page-hero,
  .docs-layout {
    width: min(100% - 20px, 1180px);
  }

  .site-nav {
    gap: 10px;
  }

  .package-grid,
  .dashboard-welcome,
  .install-button-grid,
  .docs-sidebar nav {
    grid-template-columns: 1fr;
  }

  .account-menu {
    width: 100%;
  }

  .account-menu-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .account-menu-panel {
    left: 0;
    right: auto;
    width: min(100%, 280px);
  }

  .provider-icon {
    top: 98px;
    right: -6px;
  }

  .login-card-wrap.is-provider-peeking .provider-icon {
    transform: translate(0, -8px) scale(0.8) rotate(18deg);
  }

  .login-card-wrap.is-provider-popped .provider-icon {
    transform: translate(10px, -16px) scale(0.92) rotate(7deg);
  }

  .login-card {
    padding: 24px;
  }

  .demo-screen {
    min-height: 390px;
  }

  .party-card {
    left: 18px;
    right: auto;
    top: 18px;
  }

  .boss-card {
    bottom: 18px;
  }

  .way-preview,
  .preview-shot {
    height: 220px;
  }

  .story-knight {
    left: 26px;
  }

  .story-cave {
    right: 16px;
    width: 144px;
  }
}
