:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0c1017;
  --panel: #121720;
  --panel-strong: #192230;
  --panel-muted: #0e131b;
  --line: #2b3748;
  --line-strong: #45617d;
  --text: #f7f9fc;
  --muted: #aab5c4;
  --cyan: #42c9f5;
  --green: #45dda0;
  --rose: #ff6b86;
  --gold: #f4c95d;
  --purple: #9b87f5;
  --focus: #8be2ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .02) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--text);
}

::selection {
  color: #061018;
  background: var(--cyan);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(139, 226, 255, .72);
  outline-offset: 3px;
}

.shell {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 70px;
  padding: 10px max(20px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(69, 97, 125, .4);
  background: rgba(7, 9, 13, .94);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
}

.brand-link.compact {
  font-size: 18px;
  letter-spacing: .01em;
}

.brand-link img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-link.compact img {
  width: 44px;
  height: 44px;
}

.top-nav,
.top-actions,
.actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav {
  justify-content: center;
  gap: 4px;
}

.top-nav a,
.site-footer nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.top-nav a:hover,
.site-footer nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(66, 201, 245, .11);
}

.top-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.top-actions {
  justify-content: flex-end;
}

.button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  background: var(--panel-strong);
  box-shadow: none;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 207, 255, .6);
}

.button.primary,
.primary-button {
  color: #04121a;
  background: var(--cyan);
  border-color: var(--cyan);
}

.button.primary:hover,
.primary-button:hover {
  background: #78daf7;
  border-color: #78daf7;
}

.button.ghost {
  background: rgba(18, 23, 32, .78);
  color: var(--muted);
}

.button.danger {
  color: #ffdce3;
  background: #51212e;
  border-color: #814052;
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}

.hero-section {
  min-height: clamp(560px, calc(100svh - 150px), 720px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(69, 97, 125, .34);
  background: #090e16;
}

.hero-grid {
  position: relative;
  min-height: inherit;
  display: block;
  padding-top: 60px;
  padding-bottom: 36px;
}

.hero-section + .band .shell:first-child {
  padding-top: 32px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 51%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  margin: 0;
  font-size: 82px;
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.hero-copy .actions {
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}

.hero-stats div,
.feature-card,
.steps article,
.doc-cta,
.plans article,
.faq-list details,
.doc-section,
.auth-card {
  border: 1px solid rgba(69, 97, 125, .52);
  border-radius: 8px;
  background: rgba(18, 23, 32, .9);
}

.hero-stats div {
  padding: 16px;
  background: rgba(18, 23, 32, .72);
}

.hero-stats dt {
  color: var(--text);
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.live-hero-strip {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(53, 207, 255, .44);
  border-radius: 8px;
  background: rgba(14, 19, 27, .86);
  color: var(--text);
  text-decoration: none;
}

.live-hero-strip span {
  color: var(--cyan);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 12px;
}

.live-hero-strip strong {
  font-weight: 950;
}

.product-stage {
  position: absolute;
  z-index: 1;
  inset: 44px 0 38px;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: end;
  pointer-events: none;
}

.product-stage > * {
  width: min(470px, 42%);
  margin-left: auto;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 0 54%;
  border: 1px solid rgba(66, 201, 245, .2);
  border-radius: 8px;
  background: rgba(18, 23, 32, .72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

.stage-top,
.event-preview,
.game-list article,
.integration-docs section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stage-top {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(69, 97, 125, .36);
}

.stage-top img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.stage-top strong,
.stage-top span {
  display: block;
}

.stage-top span {
  margin-top: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.event-preview {
  position: relative;
  z-index: 1;
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(6, 16, 28, .72);
  border: 1px solid rgba(59, 98, 141, .4);
}

.event-preview strong,
.event-preview span,
.event-preview em {
  display: block;
}

.event-preview span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.event-preview em {
  margin-left: auto;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.event-icon {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: rgba(141, 108, 255, .18);
  border: 1px solid rgba(141, 108, 255, .46);
}

.event-icon.cyan {
  background: rgba(53, 207, 255, .13);
  border-color: rgba(53, 207, 255, .46);
}

.event-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.mini-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(13, 24, 40, .9);
  color: var(--muted);
  font-weight: 900;
}

.mini-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.band {
  border-bottom: 1px solid rgba(69, 97, 125, .28);
  background: #090c12;
}

.band:nth-of-type(even) {
  background: #0c1017;
}

.section-head {
  padding-bottom: 22px;
  text-align: center;
}

.section-head.left {
  text-align: left;
  padding: 0;
}

.section-head p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.section-head.left p:not(.eyebrow) {
  margin-left: 0;
}

.live-streamers-band {
  background: #0d1118;
}

.live-streamers-shell {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

.live-streamers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(59, 98, 141, .54);
  border-radius: 8px;
  background: rgba(13, 24, 40, .7);
}

.live-streamers-toolbar span {
  color: var(--muted);
  font-weight: 900;
}

.live-streamers-toolbar .button {
  min-height: 38px;
  padding: 0 16px;
}

.live-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.live-streamers-list {
  display: grid;
  gap: 14px;
}

.live-plan-group {
  display: grid;
  gap: 10px;
}

.live-plan-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-weight: 950;
  text-transform: uppercase;
}

.live-plan-heading small {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(53, 207, 255, .16);
}

.live-plan-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-streamer-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(59, 98, 141, .58);
  border-radius: 8px;
  background: rgba(16, 27, 45, .82);
}

.live-plan-pro {
  border-color: rgba(255, 209, 102, .68);
  background: linear-gradient(135deg, rgba(255, 209, 102, .16), rgba(16, 27, 45, .88));
}

.live-plan-plus {
  border-color: rgba(53, 207, 255, .6);
}

.live-streamer-initial {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 22px;
  font-weight: 950;
}

.live-streamer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(53, 207, 255, .14);
  border: 1px solid rgba(53, 207, 255, .32);
}

.live-streamer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-streamer-avatar.small,
.live-streamer-initial.small {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.live-streamer-main {
  min-width: 0;
}

.live-streamer-main a,
.live-streamer-main span {
  display: block;
}

.live-streamer-main a {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-streamer-main a:hover {
  color: var(--cyan);
}

.live-streamer-main span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 900;
}

.live-streamer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.live-streamer-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(6, 16, 28, .62);
  font-size: 12px;
}

.live-streamer-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.live-streamer-plan {
  justify-self: end;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(53, 207, 255, .13);
  white-space: nowrap;
}

.live-open-link {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.live-streamers-empty {
  padding: 22px;
  border: 1px dashed rgba(59, 98, 141, .64);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(13, 24, 40, .62);
  font-weight: 900;
  text-align: center;
}

.live-page-layout {
  display: grid;
  gap: 16px;
}

.live-page-hero .shell {
  padding-bottom: 44px;
}

.live-filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(100px, .55fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(59, 98, 141, .56);
  border-radius: 8px;
  background: rgba(13, 24, 40, .72);
}

.live-filter-panel label {
  display: grid;
  gap: 7px;
}

.live-filter-panel span {
  color: var(--muted);
  font-weight: 900;
}

.live-filter-panel select,
.live-filter-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(59, 98, 141, .72);
  border-radius: 8px;
  background: #101f3c;
  color: var(--text);
  font: inherit;
}

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-stat-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(59, 98, 141, .56);
  border-radius: 8px;
  background: rgba(16, 27, 45, .78);
}

.live-stat-card span,
.live-stat-card small {
  color: var(--muted);
  font-weight: 900;
}

.live-stat-card strong {
  font-size: 30px;
}

.live-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.live-ranking-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(59, 98, 141, .56);
  border-radius: 8px;
  background: rgba(16, 27, 45, .78);
}

.live-ranking-card h3 {
  font-size: 20px;
}

.live-ranking-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.live-ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(6, 16, 28, .58);
}

.live-ranking-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.live-ranking-row strong {
  color: var(--muted);
  white-space: nowrap;
}

.streamer-profile-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(59, 98, 141, .62);
  border-radius: 8px;
  background: rgba(16, 27, 45, .82);
}

.streamer-profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(53, 207, 255, .14);
  border: 1px solid rgba(53, 207, 255, .36);
}

.streamer-profile-avatar.fallback {
  display: grid;
  place-items: center;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 56px;
  font-weight: 950;
}

.streamer-profile-copy h1 {
  font-size: 58px;
}

.streamer-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.streamer-profile-badges span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(53, 207, 255, .13);
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.feature-card,
.steps article {
  min-height: 210px;
  padding: 22px;
  border-top-color: rgba(66, 201, 245, .72);
}

.feature-card:nth-child(2),
.feature-card:nth-child(5) {
  border-top-color: rgba(69, 221, 160, .72);
}

.feature-card:nth-child(3),
.feature-card:nth-child(6) {
  border-top-color: rgba(244, 201, 93, .72);
}

.feature-icon,
.steps span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--bg);
  background: var(--cyan);
  font-weight: 950;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
  background: var(--green);
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
  background: var(--gold);
}

.feature-card p,
.steps p,
.doc-cta p,
.plans p,
.faq-list p,
.doc-section p,
.doc-grid span,
.integration-docs p,
.doc-steps span {
  color: var(--muted);
  line-height: 1.5;
}

.split-band {
  background: #0e131b;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
}

.game-list {
  display: grid;
  gap: 12px;
}

.game-list article,
.integration-docs section {
  padding: 16px;
  border: 1px solid rgba(59, 98, 141, .6);
  border-radius: 8px;
  background: rgba(18, 23, 32, .88);
}

.game-list img,
.integration-docs img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
}

.game-list strong,
.game-list span,
.integration-docs strong,
.integration-docs span {
  display: block;
}

.game-list span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 0;
}

.steps article {
  min-height: 190px;
}

.steps span {
  background: var(--green);
}

.doc-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
}

.doc-cta strong {
  font-size: 24px;
}

.doc-cta p {
  margin: 0;
}

.doc-cta .button {
  grid-row: span 2;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.plans article {
  min-height: 290px;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.plans article.featured {
  border-color: rgba(66, 201, 245, .78);
  background: #15212b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.plans span {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.plans strong {
  display: block;
  font-size: 36px;
}

.plans .button {
  align-self: end;
  width: fit-content;
}

.plan-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-name-row em {
  padding: 6px 8px;
  border-radius: 6px;
  color: #14200b;
  background: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: none;
}

.plan-price {
  line-height: 1;
}

.plan-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.plan-features {
  display: grid;
  gap: 9px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.35;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 950;
}

.pricing-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 0;
  padding-bottom: 20px;
}

.pricing-intro span {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  color: var(--muted);
  background: rgba(18, 23, 32, .72);
  font-weight: 800;
}

.pricing-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
  padding-top: 26px;
}

.pricing-note strong {
  font-size: 22px;
}

.pricing-note p {
  margin: 0;
  color: var(--muted);
}

.pricing-note .button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.feature-workflow {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
  gap: 48px;
  align-items: center;
}

.workflow-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list > li > span {
  color: var(--cyan);
  font-weight: 950;
}

.workflow-list strong,
.workflow-list p {
  display: block;
}

.workflow-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.game-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 0;
}

.game-catalog-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 32, .86);
}

.game-catalog-grid img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.game-catalog-grid strong,
.game-catalog-grid span {
  display: block;
}

.game-catalog-grid span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.faq-list {
  display: grid;
  gap: 12px;
  padding-top: 0;
}

.faq-list details,
.doc-section details {
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-list p,
.doc-section details p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(69, 97, 125, .36);
  background: #07090d;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.docs-hero {
  border-bottom: 1px solid rgba(69, 97, 125, .3);
  background: #0a0f16;
}

.docs-hero .shell {
  padding-top: 74px;
  padding-bottom: 58px;
}

.docs-hero h1 {
  max-width: 900px;
  font-size: 60px;
  line-height: 1.04;
}

.docs-layout {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.docs-layout.shell,
.docs-layout .shell {
  width: auto;
}

.docs-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(59, 98, 141, .6);
  border-radius: 8px;
  background: rgba(16, 27, 45, .82);
}

.docs-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
}

.docs-nav a:hover {
  color: var(--text);
  background: rgba(53, 207, 255, .1);
}

.docs-content {
  display: grid;
  gap: 18px;
}

.doc-section {
  padding: 24px;
}

.doc-section h2 {
  font-size: 34px;
}

.doc-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 24px;
}

.doc-steps li {
  padding-left: 8px;
}

.doc-steps strong,
.doc-steps span {
  display: block;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.doc-grid div {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(59, 98, 141, .5);
  border-radius: 8px;
  background: rgba(13, 24, 40, .76);
}

.doc-grid strong,
.doc-grid span {
  display: block;
}

.doc-grid span {
  margin-top: 8px;
}

.integration-docs {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
}

.auth-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.auth-copy h1 {
  font-size: 44px;
}

.auth-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.auth-copy .primary-button,
.auth-copy .button {
  margin-top: 12px;
}

.account-page {
  min-height: 100vh;
  background-color: #080b10;
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 10px max(20px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(69, 97, 125, .36);
  background: rgba(7, 9, 13, .92);
}

.account-topbar nav,
.account-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-topbar nav > a:not(.button),
.account-footer a {
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.account-topbar nav > a:not(.button):hover,
.account-footer a:hover {
  color: var(--text);
}

.account-shell {
  width: min(1160px, calc(100vw - 40px));
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  padding: 54px 0 70px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.18fr);
  gap: 72px;
  align-items: center;
}

.account-side {
  padding: 24px 0;
}

.account-side h1 {
  max-width: 520px;
  font-size: 58px;
  line-height: 1.02;
}

.account-side .lead {
  margin-bottom: 30px;
  font-size: 19px;
}

.account-benefits {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-benefits li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.account-benefits li:first-child {
  border-top: 1px solid var(--line);
}

.account-benefits > li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #052116;
  background: var(--green);
  font-weight: 950;
}

.account-benefits strong,
.account-benefits small {
  display: block;
}

.account-benefits small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.account-security-note {
  margin: 20px 0 0;
  color: #8390a2;
  font-size: 13px;
  line-height: 1.45;
}

.account-main {
  min-width: 0;
}

.auth-panel {
  width: min(590px, 100%);
  margin-left: auto;
  padding: 32px;
  border: 1px solid rgba(69, 97, 125, .62);
  border-radius: 8px;
  background: #121720;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .3);
}

.auth-panel-head h2 {
  margin: 0;
  font-size: 34px;
}

.auth-panel-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 26px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090d13;
}

.auth-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-switch button[aria-selected="true"] {
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.field-label-row label {
  color: var(--text);
  font-weight: 850;
}

.form-field small,
.auth-consent {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-link,
.auth-consent a,
.account-section-head a {
  color: var(--cyan);
  font-weight: 850;
  text-decoration: none;
}

.auth-form input,
.referral-panel input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(69, 97, 125, .72);
  border-radius: 8px;
  background: #0b1018;
  color: var(--text);
  font: inherit;
}

.auth-form input:focus,
.referral-panel input:focus {
  outline: 2px solid rgba(66, 201, 245, .46);
  border-color: var(--cyan);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 78px;
}

.password-field button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 64px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--cyan);
  background: var(--panel-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-consent {
  margin: -4px 0 0;
  text-align: center;
}

.referral-code-details {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d121a;
}

.referral-code-details summary {
  color: var(--cyan);
}

.referral-code-details p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.selected-plan-notice {
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--gold);
  color: #f7df9a;
  background: rgba(244, 201, 93, .08);
  font-weight: 800;
}

.account-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(69, 97, 125, .62);
  background: #151c27;
  color: var(--text);
  font-weight: 800;
}

.account-message[data-kind="success"] {
  border-color: rgba(69, 221, 160, .68);
  background: rgba(28, 87, 62, .28);
}

.account-message[data-kind="error"] {
  border-color: rgba(255, 107, 134, .72);
  background: rgba(103, 37, 52, .3);
}

.account-dashboard {
  display: grid;
  gap: 24px;
}

.account-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.account-dashboard-head h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.account-dashboard-head > div > span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  gap: 8px;
}

.account-status-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-status-panel > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 32, .88);
}

.account-status-panel span,
.account-status-panel strong {
  display: block;
}

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

.account-status-panel strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.referral-panel {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(300px, 1.25fr) auto;
  gap: 18px;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(69, 97, 125, .58);
  border-radius: 8px;
  background: #121720;
}

.referral-copy h3 {
  font-size: 24px;
}

.referral-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.referral-copy .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
}

.referral-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.referral-stats {
  min-width: 118px;
  padding: 10px 12px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.referral-stats span,
.referral-stats strong {
  display: block;
}

.referral-stats span {
  color: var(--muted);
  font-size: 12px;
}

.referral-stats strong {
  margin-top: 5px;
  font-size: 26px;
}

.account-plan-section {
  display: grid;
  gap: 16px;
}

.account-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.account-section-head h3 {
  font-size: 26px;
}

.account-plans {
  margin-top: 0;
}

.account-plans article {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
}

.account-plans .button {
  width: 100%;
}

.plan-card.current {
  border-color: var(--green);
  box-shadow: inset 0 3px 0 var(--green);
}

.plan-card.preferred {
  border-color: var(--gold);
}

.account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reset-layout {
  min-height: 560px;
}

.reset-page .auth-panel {
  max-width: 540px;
}

.footer-directory {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, .7fr));
  align-items: start;
  padding-top: 38px;
  padding-bottom: 38px;
}

.footer-brand-copy p {
  max-width: 260px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.footer-directory nav {
  display: grid;
  align-items: start;
  gap: 4px;
}

.footer-directory nav strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-directory nav a {
  padding: 5px 0;
  border-radius: 0;
  font-size: 14px;
}

.product-catalog-hero .shell {
  padding-top: 68px;
  padding-bottom: 62px;
}

.catalog-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .62fr);
  gap: 56px;
  align-items: end;
}

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

.catalog-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.catalog-hero-stats div {
  min-width: 0;
  padding: 20px 14px;
  border-left: 1px solid var(--line);
}

.catalog-hero-stats div:first-child {
  border-left: 0;
}

.catalog-hero-stats dt {
  color: var(--cyan);
  font-size: 29px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.catalog-hero-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.process-rail,
.support-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
}

.process-rail article,
.support-checklist article {
  min-width: 0;
  padding: 22px;
  border-top: 2px solid var(--cyan);
  border-right: 1px solid var(--line);
  background: rgba(18, 23, 32, .74);
}

.process-rail article:last-child,
.support-checklist article:last-child {
  border-right: 0;
}

.process-rail span,
.support-checklist span {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 950;
}

.process-rail strong,
.support-checklist strong {
  font-size: 18px;
}

.process-rail p,
.support-checklist p,
.capability-list p,
.module-strip span,
.catalog-card p,
.diagnostic-grid p,
.comparison-panel p,
.notice-band p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.capability-columns {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(480px, 1.22fr);
  gap: 52px;
  align-items: center;
}

.capability-columns > article {
  min-width: 0;
  padding: 24px 0;
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid var(--line);
}

.capability-columns > article h3 {
  margin-top: 6px;
  font-size: 27px;
}

.capability-columns > article p:not(.eyebrow) {
  min-height: 66px;
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.capability-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.capability-list article {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.status-dot.green { background: var(--green); }
.status-dot.gold { background: var(--gold); }

.module-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-top: 0;
}

.module-strip article {
  min-width: 0;
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: rgba(18, 23, 32, .8);
}

.module-strip strong,
.module-strip span,
.module-strip code {
  display: block;
}

.module-strip code {
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.catalog-shell {
  padding-top: 0;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .42fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar label,
.catalog-toolbar label > span {
  display: grid;
  gap: 7px;
}

.catalog-toolbar label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-strong);
  font: inherit;
}

.catalog-summary {
  min-width: 132px;
  padding: 13px 0;
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 32, .82);
}

.catalog-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-card-head h3,
.gift-catalog-card h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.catalog-card-head span:not(.catalog-mark) {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.catalog-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(66, 201, 245, .46);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(66, 201, 245, .1);
  font-size: 12px;
  font-weight: 950;
}

.catalog-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: auto 0 0;
  padding-top: 16px;
}

.catalog-facts div {
  min-width: 0;
  padding: 9px;
  background: rgba(7, 9, 13, .46);
}

.catalog-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.catalog-facts dd {
  margin: 3px 0 0;
  font-weight: 950;
}

.catalog-file {
  margin-top: 10px;
  color: var(--green);
  font-family: Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.catalog-more {
  margin-top: 20px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.event-type-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 0;
}

.event-type-rail article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 3px 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 32, .82);
}

.event-type-rail img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.event-type-rail span {
  color: var(--muted);
  font-size: 13px;
}

.comparison-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-panel > div {
  padding: 22px;
  background: rgba(18, 23, 32, .84);
}

.comparison-panel > div + div {
  border-left: 1px solid var(--line-strong);
}

.comparison-panel span {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font: 900 20px Consolas, monospace;
}

.gift-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gift-catalog-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 32, .82);
}

.gift-catalog-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.gift-catalog-card.image-missing::before {
  content: "WY";
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 950;
}

.gift-catalog-card h3,
.gift-catalog-card span {
  display: block;
}

.gift-catalog-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-catalog-card strong {
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}

.gift-catalog-card em {
  position: absolute;
  top: 5px;
  right: 6px;
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.notice-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-left: 4px solid var(--green);
}

.notice-band.warning {
  border-left-color: var(--gold);
}

.support-checklist article:nth-child(2) { border-top-color: var(--green); }
.support-checklist article:nth-child(3) { border-top-color: var(--gold); }
.support-checklist article:nth-child(4) { border-top-color: var(--purple); }

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
}

.diagnostic-grid div {
  min-width: 0;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
}

.diagnostic-grid div:nth-child(even) {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.game-catalog-card[hidden] {
  display: none;
}

.pricing-comparison-head {
  margin-top: 64px;
}

.pricing-table-wrap {
  overflow-x: auto;
  padding-top: 0;
}

.pricing-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 32, .82);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pricing-table th:first-child {
  width: 52%;
  text-align: left;
}

.pricing-table thead th {
  color: #fff;
  background: rgba(29, 39, 56, .96);
  font-size: 15px;
}

.pricing-table thead th:nth-child(3) {
  color: var(--cyan);
}

.pricing-table tbody td {
  color: #78eda8;
  font-weight: 900;
}

.pricing-table tbody tr:last-child > * {
  border-bottom: 0;
}

.pricing-table .pricing-group th {
  padding-top: 22px;
  color: var(--cyan);
  background: rgba(8, 13, 23, .72);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .footer-directory {
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(150px, .8fr));
  }

  .footer-directory nav:nth-of-type(3),
  .footer-directory nav:nth-of-type(4) {
    margin-top: 18px;
  }

  .module-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-copy {
    width: 50%;
  }

  .product-stage::before {
    left: 54%;
  }

  .feature-workflow {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 32px;
  }

  .account-layout {
    grid-template-columns: minmax(300px, .72fr) minmax(500px, 1.28fr);
    gap: 40px;
  }

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

  .referral-panel {
    grid-template-columns: 1fr minmax(320px, 1.2fr);
  }

  .referral-stats {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .referral-stats strong {
    margin: 0;
  }
}

@media (max-width: 980px) {
  .split-layout,
  .docs-layout,
  .feature-workflow,
  .catalog-hero-layout,
  .capability-columns {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps,
  .plans,
  .live-plan-rows,
  .game-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-filter-panel,
  .live-stats-grid,
  .live-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-nav {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .process-rail,
  .support-checklist,
  .event-type-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-rail article:nth-child(3),
  .support-checklist article:nth-child(3),
  .event-type-rail article:nth-child(3) {
    border-left: 0;
  }

  .account-side {
    max-width: 720px;
    padding-bottom: 0;
  }

  .auth-panel {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-menu-toggle {
    display: grid;
    place-items: center;
    grid-column: 2;
  }

  .site-header .top-nav,
  .site-header .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .site-header .top-nav {
    grid-row: 2;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-header .top-actions {
    grid-row: 3;
  }

  .site-nav-ready .site-header:not([data-menu-open="true"]) .top-nav,
  .site-nav-ready .site-header:not([data-menu-open="true"]) .top-actions {
    display: none;
  }

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

  .hero-grid {
    padding-top: 58px;
    padding-bottom: 50px;
  }

  .hero-copy {
    width: 100%;
    max-width: 670px;
  }

  .product-stage {
    position: relative;
    inset: auto;
    min-height: 360px;
    margin-top: 40px;
  }

  .product-stage::before {
    inset: 0;
  }

  .product-stage > * {
    width: calc(100% - 32px);
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, 1200px);
    padding: 52px 0;
  }

  h1,
  .docs-hero h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-stats,
  .feature-grid,
  .steps,
  .plans,
  .live-plan-rows,
  .live-filter-panel,
  .live-stats-grid,
  .live-ranking-grid,
  .streamer-profile-card,
  .doc-grid,
  .game-catalog-grid,
  .pricing-intro,
  .auth-card {
    grid-template-columns: 1fr;
  }

  .catalog-grid,
  .gift-catalog-grid,
  .module-strip,
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-brand-copy {
    grid-column: 1 / -1;
  }

  .footer-directory nav:nth-of-type(3),
  .footer-directory nav:nth-of-type(4) {
    margin-top: 0;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-summary {
    justify-self: start;
  }

  .diagnostic-grid article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .diagnostic-grid article:first-child {
    border-top: 0;
  }

  .notice-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-stage .event-preview:nth-of-type(3) {
    display: none;
  }

  .product-stage {
    min-height: 260px;
  }

  .doc-cta,
  .pricing-note {
    grid-template-columns: 1fr;
  }

  .doc-cta .button,
  .pricing-note .button {
    grid-row: auto;
    grid-column: auto;
    width: fit-content;
  }

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

  .event-preview {
    align-items: flex-start;
  }

  .event-preview em {
    margin-left: 0;
  }

  .live-streamers-toolbar,
  .live-streamer-card {
    align-items: flex-start;
  }

  .live-streamers-toolbar {
    flex-direction: column;
  }

  .live-toolbar-actions,
  .live-streamer-actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .streamer-profile-copy h1 {
    font-size: 42px;
  }

  .account-topbar {
    padding: 10px 14px;
  }

  .account-topbar nav > a:not(.button) {
    display: none;
  }

  .account-shell {
    width: min(100% - 28px, 1160px);
    padding: 32px 0 48px;
  }

  .account-side {
    padding: 8px 0 0;
  }

  .account-side h1,
  .auth-copy h1 {
    font-size: 42px;
  }

  .account-side .lead {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .account-benefits,
  .account-security-note {
    display: none;
  }

  .auth-panel {
    padding: 24px;
  }

  .account-dashboard-head,
  .account-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-status-panel,
  .referral-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-copy,
  .referral-controls,
  .referral-stats {
    grid-column: 1 / -1;
  }

  .account-footer {
    width: min(100% - 28px, 1160px);
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 62px;
    padding: 8px 12px;
  }

  .brand-link.compact {
    font-size: 17px;
  }

  .brand-link.compact img {
    width: 38px;
    height: 38px;
  }

  .site-header .top-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-header .top-nav a {
    text-align: center;
  }

  .site-header .top-actions,
  .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .actions .button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .top-actions .button,
  .actions .button,
  .plans .button,
  .doc-cta .button,
  .live-streamers-toolbar .button {
    width: 100%;
  }

  h1,
  .docs-hero h1 {
    font-size: 42px;
  }

  .hero-grid {
    padding-top: 44px;
    padding-bottom: 42px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-stats div {
    min-width: 0;
    padding: 10px;
  }

  .hero-stats dt {
    font-size: 13px;
  }

  .hero-stats dd {
    display: none;
  }

  .hero-stats div {
    display: grid;
    min-height: 48px;
    align-content: center;
  }

  .hero-copy .actions .button {
    padding: 0 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .product-stage,
  .doc-section,
  .feature-card,
  .steps article,
  .plans article,
  .auth-card {
    padding: 16px;
  }

  .product-stage {
    min-height: 112px;
    margin-top: 20px;
    padding: 0;
  }

  .product-stage .stage-top {
    display: none;
  }

  .product-stage .event-preview {
    min-height: 78px;
  }

  .mini-grid {
    display: none;
  }

  .live-streamer-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .live-streamer-actions {
    grid-column: 2;
  }

  .live-streamer-plan {
    justify-self: start;
  }

  .streamer-profile-avatar {
    width: 104px;
    height: 104px;
  }

  .live-hero-strip {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .docs-nav,
  .account-status-panel,
  .referral-panel {
    grid-template-columns: 1fr;
  }

  .process-rail,
  .support-checklist,
  .event-type-rail,
  .comparison-panel,
  .catalog-hero-stats {
    grid-template-columns: 1fr;
  }

  .process-rail article,
  .support-checklist article,
  .event-type-rail article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-rail article:first-child,
  .support-checklist article:first-child,
  .event-type-rail article:first-child {
    border-top: 0;
  }

  .gift-catalog-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .auth-panel {
    padding: 18px;
  }

  .auth-panel-head h2 {
    font-size: 30px;
  }

  .field-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .account-actions,
  .referral-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .account-actions .button {
    width: 100%;
  }

  .account-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
