/* Shared components: page-family CSS must not override these contracts. */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.logo-block { display: flex; align-items: center; gap: 12px; font: 700 var(--text-h4)/var(--line-body) var(--font-serif); letter-spacing: .04em; color: var(--gold-light); }
.logo-badge { display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-control); border: 1px solid var(--border-gold); background: linear-gradient(135deg,#2b383f,#151b1f); color: var(--gold); font-size: var(--text-lead); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-control); font: 600 var(--text-button)/24px var(--font-body); text-align: center; cursor: pointer; text-decoration: none; transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn-large { padding: 14px 28px; }
h1.hero-title { font-size: var(--text-hero); margin: 0 auto 24px; max-width: 900px; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
h1.page-title, h1.adventure-title { font-size: var(--text-h1); margin-bottom: 16px; }
h2.section-title { font-size: var(--text-h2); margin-bottom: 16px; }
.section-header { text-align: center; margin-bottom: 48px; }
.page-lead, .hero-lead { color: var(--text-muted); font-size: var(--text-lead); line-height: var(--line-body); max-width: 760px; }
.breadcrumbs { font-size: var(--text-small); line-height: var(--line-body); color: var(--text-faint); margin-bottom: 12px; }
.container.breadcrumbs { padding-top: 20px; }
.info-card, .scene-block, .npc-card, .pregen-card, .advice-card, .prompt-card { min-width: 0; overflow-wrap: anywhere; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: var(--card-padding); }
.scene-block { margin-bottom: 24px; }
.pregen-card { display: flex; flex-direction: column; gap: 12px; }
.prompt-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.catalog-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s, border-color .2s, box-shadow .2s; }
footer.site-footer { border-top: 1px solid var(--border-subtle); background: #080a0c; padding: 48px 0 32px; font-size: var(--text-label); color: var(--text-faint); }
.footer-brand .logo-block { margin-bottom: 8px; }
.footer-brand p { max-width: 380px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-8); }
.container {
  width: 100%;
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 20px;
}

.btn-primary {
  background: var(--gold-gradient);
        color: #1a1407;
        box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.38);
        color: #0d0a03;
}

.btn-secondary {
  background: var(--bg-card);
        border-color: var(--border-subtle);
        color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--border-gold);
        background: var(--bg-card-hover);
        color: var(--gold-light);
}

.footer-brand h3 {
  font-family: var(--font-serif);
        color: var(--gold-light);
        font-size: var(--text-h3);
        margin-bottom: 8px;
}

.footer-links-group {
  display: flex;
        flex-direction: column;
        gap: 8px;
}

.footer-links-group strong {
  color: var(--text-main);
        font-size: var(--text-label);
        margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid #141b1f;
        padding-top: 24px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.catalog-card.ready {
  border-color: var(--border-gold);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.catalog-card.ready:hover {
  transform: translateY(-3px);
        border-color: var(--gold);
}

.catalog-card.ready:hover .card-cover img {
  transform: scale(1.04);
}

.card-footer .btn {
  width: 100%;
}

.btn.copied {
  border-color: var(--border-gold);
        background: var(--bg-card-hover);
        color: var(--gold-light);
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.info-card h3 {
  font-family: var(--font-serif);
        font-size: var(--text-h3);
        color: var(--gold-light);
        margin-bottom: 10px;
}

.info-card p {
  color: var(--text-muted);
        font-size: var(--text-button);
        line-height: var(--line-body);
}

.info-card li {
  color: var(--text-muted);
        font-size: var(--text-button);
        line-height: var(--line-body);
}

.info-card ul {
  padding-left: 18px;
        display: grid;
        gap: 8px;
}

.info-card strong {
  color: var(--text-main);
}

.pregen-card p {
  font-size: var(--text-label);
        color: var(--text-muted);
        line-height: var(--line-body);
}

.pregen-card strong {
  color: var(--text-main);
}

.scene-block:last-child {
  margin-bottom: 0;
}

.advice-card h2 {
  font-family: var(--font-serif);
        font-size: var(--text-h3);
        color: var(--gold-light);
        margin-bottom: 8px;
}

.advice-card p {
  color: var(--text-muted); font-size: var(--text-button); line-height: var(--line-body);
}

.advice-card strong {
  color: var(--text-main);
}

.prompt-card h3 {
  font-family: var(--font-serif);
        font-size: var(--text-h3);
        color: var(--gold-light);
        margin-bottom: 6px;
}

/* Shared navigation geometry: independent of each page's content styles. */
header.site-header {
  position: relative;
  top: auto;
  z-index: 100;
  background: #0b0e11;
  backdrop-filter: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--line-body);
}
header.site-header .header-inner,
header.site-header .submenu-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
header.site-header .header-inner {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}
header.site-header .logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: var(--text-h4);
  line-height: var(--line-body);
  letter-spacing: .04em;
  color: var(--gold-light);
  font-weight: 700;
}
header.site-header .logo-badge {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2b383f, #151b1f);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: var(--text-lead);
  line-height: var(--line-body);
}
header.site-header nav.nav-links {
  display: flex;
  order: 0;
  width: auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  border: 0;
}
header.site-header nav.nav-links a {
  color: var(--text-muted);
  font-size: var(--text-button);
  line-height: var(--line-body);
  font-weight: 500;
  white-space: nowrap;
}
header.site-header nav.nav-links a:hover,
header.site-header nav.nav-links a.active {
  color: var(--gold-light);
}
header.site-header .header-actions {
  display: flex;
  gap: 12px;
}
header.site-header .header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: var(--text-button);
  line-height: var(--line-body);
  font-weight: 600;
  white-space: nowrap;
  background: var(--gold-gradient);
  color: #1a1407;
  box-shadow: 0 4px 14px rgba(212, 175, 55, .25);
}
header.site-header .header-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, .38);
  color: #0d0a03;
}
header.site-header .submenu-bar {
  background: #12171b;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 0;
}
header.site-header .submenu-inner {
  gap: 8px;
}
header.site-header .submenu-label {
  color: var(--text-faint);
  font-size: var(--text-small);
  line-height: var(--line-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
  white-space: nowrap;
}
header.site-header .submenu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: var(--text-label);
  line-height: var(--line-body);
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(24, 32, 37, .7);
  white-space: normal;
  overflow-wrap: anywhere;
}
header.site-header .submenu-link:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
}
header.site-header .submenu-link.current {
  background: rgba(212, 175, 55, .14);
  border-color: var(--border-gold);
  color: var(--gold-light);
}
@media (max-width: 820px) {
  header.site-header .header-inner,
  header.site-header .submenu-inner {
    padding-right: 12px;
    padding-left: 12px;
  }
  header.site-header nav.nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(36, 50, 56, .6);
    gap: 10px 14px;
  }
  header.site-header nav.nav-links a {
    font-size: var(--text-label);
  }
}

.u-d8b52501 { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); color: #04210d; }
.u-4c58e2d3 { position:absolute; left:-9999px; }
.u-936a7bd5 { margin-top: 28px; }
.u-9d21da37 { color: var(--text-muted); }
.u-5313025c { margin-top: 8px; }
.u-1aacbc1d { margin-top: 36px; }
.u-6e399fbb { font-family: var(--font-serif); font-size: var(--text-h3); color: var(--gold-light); margin-bottom: 16px; }

@media (max-width: 820px) {
  .container { padding-right: 12px; padding-left: 12px; }
  .section-header { margin-bottom: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .info-card ul { padding-left: 16px; }
}

.feature-card, .faq-item, .price-card, .bot-launch-box, .phrase-item {
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}
