* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(179, 115, 58, 0.16), transparent 28%),
    linear-gradient(180deg, #171414 0%, #0d0f12 100%);
  color: #f4f4f6;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: #d7b471;
  text-decoration: none;
}

a:hover {
  color: #f3d39a;
}

img {
  max-width: 100%;
  height: auto;
}

.shell-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(9, 10, 12, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand-lockup img {
  display: block;
  max-width: 260px;
  height: auto;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f0f0f2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.primary-nav a.selected,
.primary-nav a:hover {
  color: #f3d39a;
  border-color: rgba(215, 180, 113, 0.34);
  background: rgba(215, 180, 113, 0.08);
}

.page-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 40px;
}

.page-shell:not(.has-sidebar) {
  grid-template-columns: minmax(0, 1fr);
}

.doc-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.sidebar-card,
.hero-card,
.section-card,
.stat-card,
.streamer-card,
.purchase-card,
.gallery-card,
.doc-card,
.notice-card,
.embed-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-card {
  padding: 18px;
}

.sidebar-title {
  margin-bottom: 10px;
  color: #d7b471;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li + li {
  margin-top: 6px;
}

.sidebar-card a {
  color: #d9d9df;
  font-size: 14px;
}

.page-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-card {
  padding: 26px;
  margin-bottom: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.kicker {
  margin: 0 0 10px;
  color: #d7b471;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin: 0 0 12px;
  color: #ecd6a8;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: #fff5e7;
}

h4 {
  font-size: 1rem;
  margin: 18px 0 8px;
  color: #d7b471;
}

p,
li,
span,
div,
code {
  font-size: 15px;
}

p:last-child,
ul:last-child,
ol:last-child,
pre:last-child {
  margin-bottom: 0;
}

code {
  padding: 0.12rem 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3d39a;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.92em;
}

.lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
}

.button-primary {
  background: rgba(215, 180, 113, 0.12);
  border: 1px solid rgba(215, 180, 113, 0.3);
  color: #f3d39a;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #f4f4f6;
}

.button-primary:hover,
.button-secondary:hover {
  transform: none;
}

.hero-media,
.embed-card,
.gallery-card {
  overflow: hidden;
}

.hero-media img,
.gallery-card img,
.embed-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media img {
  max-height: 520px;
  object-fit: cover;
}

.stat-grid,
.card-grid,
.streamer-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

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

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

.stat-card,
.doc-card,
.purchase-card,
.notice-card {
  padding: 18px;
}

.stat-value {
  font-size: 2rem;
  line-height: 1.1;
  color: #d7b471;
  margin-bottom: 8px;
}

.section-card {
  padding: 24px;
  margin-top: 22px;
}

.section-intro {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.72);
}

.feature-list,
.doc-list {
  padding-left: 1.2rem;
}

.feature-list li + li,
.doc-list li + li,
.section-card li + li {
  margin-top: 6px;
}

.streamer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.streamer-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.streamer-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.code-block {
  display: block;
  width: 100%;
  overflow-x: auto;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #efe3b8;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.small-note {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 12, 0.84);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.video-placeholder {
  position: relative;
  display: block;
  height: 360px;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: auto auto 18px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

@media (max-width: 980px) {
  .page-shell,
  .page-shell.has-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-sidebar {
    position: static;
  }

  .hero-grid,
  .stat-grid,
  .card-grid,
  .streamer-grid,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .shell-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-row {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-lockup img {
    max-width: 220px;
    margin: 0 auto;
  }

  .primary-nav {
    justify-content: center;
    gap: 8px;
  }

  .primary-nav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 10px;
  }

  .site-header {
    position: static;
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero-pills span,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .streamer-card {
    align-items: flex-start;
  }

  .hero-card,
  .section-card,
  .stat-card,
  .doc-card,
  .purchase-card,
  .notice-card,
  .sidebar-card {
    padding: 18px 14px;
  }

  .video-placeholder {
    height: 220px;
  }

  .footer-row {
    flex-direction: column;
  }
}
