/* Game guides share the homepage palette, with a compact reading layout. */
.docs-page {
  --bg: #1b1321;
  --surface: #291e32;
  --surface-raised: #32243c;
  --text: #fff5fc;
  --muted: #cbbbce;
  --line: rgba(227, 188, 237, 0.17);
  --line-strong: rgba(227, 188, 237, 0.32);
  --accent: #c58cff;
  --accent-pink: #f2add3;
  --accent-lilac: #dcc4f3;
  --link: #e4b9f4;
  --action-bg: #c996fa;
  --action-ink: #2c133e;
  --action-hover: #deb5ff;
  background: var(--bg);
}
html:has(.docs-page) { scroll-behavior: auto; }
.docs-page::before,
.docs-page::after,
.docs-page .site-shell::before { display: none; }
.docs-page h1,
.docs-page h2,
.docs-page h3,
.docs-page h4 { text-wrap: balance; }
.docs-page p { text-wrap: pretty; }
.docs-page a:focus-visible,
.docs-page button:focus-visible,
.docs-page select:focus-visible,
.docs-page summary:focus-visible { outline: 2px solid var(--accent-lilac); outline-offset: 4px; }
.guide-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.guide-icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.guide-skip-link { position: fixed; z-index: 100; top: 0.75rem; left: 1rem; padding: 0.75rem 1rem; border-radius: 8px; color: var(--bg); background: var(--text); transform: translateY(-160%); }
.guide-skip-link:focus { transform: none; }
.docs-page .site-header { background: rgba(27, 19, 33, 0.96); border-bottom-color: var(--line); box-shadow: none; }
.docs-page .header-inner { min-height: 82px; }
.docs-page .brand-mark { width: 46px; height: 46px; background: var(--surface-raised); box-shadow: none; }
.docs-page .brand-name { text-shadow: none; }
.docs-page .brand-tag { font-size: 0.75rem; }
.docs-page .site-nav { padding: 0; border-color: transparent; background: transparent; box-shadow: none; }
.docs-page .site-nav-link { color: #e1cfe7; font-size: 0.82rem; }
.docs-page .site-nav-link:hover,
.docs-page .site-nav-link:focus-visible,
.docs-page .site-nav-link.is-active { color: var(--text); border-color: var(--line-strong); background: #e0baff12; box-shadow: none; }
.docs-page .site-nav-cta,
.docs-page .site-nav-cta:focus-visible { margin-left: 0.3rem; color: var(--action-ink); background: var(--action-bg); border-color: transparent; box-shadow: none; }
.docs-page .site-nav-cta:hover { color: var(--action-ink); background: var(--action-hover); border-color: transparent; }
.docs-page .nav-toggle { display: none; }
.guide-hero { padding: 3.2rem 0 3rem; background: radial-gradient(ellipse at 65% 0, #a46de512, transparent 65%); }
.guide-eyebrow { color: var(--accent-pink); font: 700 0.7rem/1.4 "Syne", sans-serif; text-transform: uppercase; letter-spacing: 0.13em; }
.guide-hero h1 { margin: 0.8rem 0 0; font: 700 clamp(2.2rem, 3.5vw, 3.15rem)/1.15 "Syne", sans-serif; letter-spacing: -0.03em; }
.guide-hero h1 span { color: var(--accent-pink); }
.guide-hero p { margin: 0.9rem 0 0; color: var(--muted); font-size: 1rem; }
.guide-workspace { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 3rem; align-items: start; padding-top: 2.5rem; padding-bottom: 4rem; border-top: 1px solid var(--line); scroll-margin-top: 105px; }
.guide-sidebar { position: sticky; top: 110px; min-width: 0; }
.guide-nav-label { padding: 0 0.9rem; margin-bottom: 0.8rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; }
.guide-nav { display: grid; gap: 0.35rem; }
.guide-nav a { display: flex; align-items: center; gap: 0.7rem; min-height: 46px; padding: 0.7rem 0.8rem; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 0.85rem; font-weight: 500; line-height: 1.4; }
.guide-nav .guide-icon { width: 19px; height: 19px; color: var(--accent-lilac); }
.guide-nav a:hover { background: var(--surface); color: var(--text); }
.guide-nav a[aria-current="location"] { color: var(--text); background: #c58cff18; border-color: #c58cff38; }
.guide-nav a[aria-current="location"] .guide-icon { color: var(--accent); }
.guide-device-link { display: flex; justify-content: space-between; gap: 0.5rem; margin: 1.5rem 0.8rem 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--accent-pink); font-size: 0.75rem; }
.guide-select-wrap { display: none; }
.guide-content { min-width: 0; }
.guide-panel { min-width: 0; scroll-margin-top: 110px; }
.guide-panel[hidden] { display: none; }
.guide-panel + .guide-panel { margin-top: 4rem; }
.docs-page[data-guide-enhanced] .guide-panel { margin-top: 0; }
.guide-panel-header h2 { margin: 0.65rem 0 0; font: 700 clamp(1.7rem, 2.4vw, 2.25rem)/1.2 "Syne", sans-serif; letter-spacing: -0.025em; }
.guide-panel-header p { max-width: 65ch; margin: 0.85rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.guide-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.guide-checklist li { display: flex; align-items: start; gap: 0.9rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.guide-step-number { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #c58cff45; border-radius: 50%; background: #c58cff12; color: var(--accent-lilac); font: 700 0.75rem/1 "Space Grotesk", sans-serif; }
.guide-checklist li:nth-child(2n) .guide-step-number { color: var(--accent-pink); border-color: #f2add340; background: #f2add312; }
.guide-checklist h3 { margin: 0.2rem 0 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.guide-checklist p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.87rem; line-height: 1.7; }
.guide-chooser { margin-top: 2.3rem; }
.guide-chooser-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.guide-chooser-heading h3 { margin: 0; font: 700 1.25rem/1.4 "Syne", sans-serif; }
.guide-chooser-heading > span { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.guide-card { display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: #c58cff08; transition: border-color 150ms ease, background-color 150ms ease; }
.guide-card:hover { border-color: var(--accent); background: #c58cff13; }
.guide-card-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--surface-raised); color: var(--accent); }
.guide-card:nth-child(2n) .guide-card-icon { color: var(--accent-pink); }
.guide-card > span:nth-child(2) { flex: 1; min-width: 0; }
.guide-card strong { display: block; font-size: 0.92rem; line-height: 1.4; }
.guide-card > span > span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.guide-card-arrow { width: 17px; height: 17px; color: var(--accent-lilac); }
.guide-requirements { margin: 1.5rem 0 2rem; padding-bottom: 1.65rem; border-bottom: 1px solid var(--line); }
.guide-requirements h3 { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.74rem; font-weight: 500; }
.guide-requirements ul { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.guide-requirements li { padding: 0.45rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-lilac); background: var(--surface); font-size: 0.72rem; line-height: 1.5; }
.guide-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 2rem; align-items: start; }
.guide-instructions { min-width: 0; }
.guide-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; font: 700 1.05rem/1.4 "Syne", sans-serif; }
.guide-subheading > span { color: var(--muted); font: 400 0.72rem/1.4 "Space Grotesk", sans-serif; }
.guide-steps { display: grid; gap: 1.65rem; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0.9rem; }
.guide-steps h4 { margin: 0.22rem 0 0; color: var(--text); font-size: 0.95rem; font-weight: 700; line-height: 1.45; }
.guide-steps p { max-width: 62ch; margin: 0.45rem 0 0; color: var(--muted); font-size: 0.89rem; line-height: 1.75; }
.guide-reference { margin-top: 2rem; border-top: 1px solid var(--line); }
.guide-reference details { border-bottom: 1px solid var(--line); }
.guide-reference summary { display: grid; grid-template-columns: 1fr auto 1rem; align-items: center; gap: 0.6rem; min-height: 66px; padding: 1rem 0.1rem; color: var(--text); cursor: pointer; list-style: none; font-size: 0.88rem; font-weight: 500; }
.guide-reference summary::-webkit-details-marker { display: none; }
.guide-reference summary::after { content: "+"; color: var(--accent-pink); font-size: 1.35rem; line-height: 1; text-align: center; }
.guide-reference details[open] summary::after { content: "−"; }
.guide-reference summary:hover,
.guide-reference details[open] summary { color: var(--accent-pink); }
.guide-detail-count { color: var(--muted); font-size: 0.7rem; font-weight: 400; white-space: nowrap; }
.guide-reference dl { margin: 0; padding: 0 0 0.4rem; }
.guide-reference dl > div { margin-bottom: 1.1rem; padding-left: 0.85rem; border-left: 2px solid var(--accent); }
.guide-reference details:last-child dl > div { border-left-color: var(--accent-pink); }
.guide-reference dt { color: var(--text); font-size: 0.85rem; font-weight: 700; }
.guide-reference dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }
.guide-screenshots { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.guide-screenshots > .guide-subheading { color: var(--accent-lilac); font: 500 0.76rem/1.4 "Space Grotesk", sans-serif; margin-bottom: 1.1rem; }
.guide-screenshot { min-width: 0; margin: 0; }
.guide-screenshot + .guide-screenshot { margin-top: 1.5rem; }
.guide-screenshot a { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #17101e; }
.guide-screenshot img { width: 100%; height: auto; }
.guide-image-open { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.65rem; border-top: 1px solid var(--line); color: var(--accent-pink); font-size: 0.68rem; }
.guide-screenshot a:hover { border-color: var(--accent-pink); }
.guide-screenshot figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.guide-next { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.guide-next > a { display: flex; align-items: center; gap: 0.85rem; color: var(--accent-lilac); font-size: 0.78rem; }
.guide-next > a:last-child { text-align: right; }
.guide-next > a:last-child > span:first-child { color: var(--muted); font-size: 0.7rem; }
.guide-next strong { display: block; margin-top: 0.2rem; color: var(--text); font-size: 0.85rem; font-weight: 500; }
.docs-page .site-footer { padding: 0 0 2.5rem; background: none; }
.docs-page .footer-inner { font-size: 0.85rem; }
.docs-page .footer-inner p { font-size: 0.8rem; }

@media (max-width: 1100px) {
  .guide-workspace { grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; }
  .guide-body { grid-template-columns: minmax(0, 1fr) 215px; gap: 1.5rem; }
  .guide-card { padding: 0.85rem; gap: 0.65rem; }
  .guide-card-icon { flex-basis: 34px; height: 36px; border-radius: 10px; }
  .guide-checklist li { padding: 1.1rem; }
}
@media (max-width: 1000px) {
  .guide-body { grid-template-columns: 1fr; gap: 2rem; }
  .guide-screenshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
  .guide-screenshots > .guide-subheading { grid-column: 1 / -1; margin-bottom: 0; }
  .guide-screenshot + .guide-screenshot { margin-top: 0; }
  .guide-card-arrow { display: none; }
}
@media (max-width: 800px) {
  .docs-page .brand-tag { display: none; }
  .docs-page .header-inner { gap: 1rem; }
  .guide-hero { padding: 2.5rem 0 2rem; }
  .guide-workspace { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; }
  .guide-sidebar { position: static; }
  .docs-page[data-guide-enhanced] .guide-sidebar { position: sticky; top: 82px; z-index: 10; padding-block: 0.65rem; background: var(--bg); }
  .guide-nav-label { padding-left: 0; }
  .guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-nav a { background: var(--surface); border-color: var(--line); }
  .guide-device-link { display: none; }
  .docs-page[data-guide-enhanced] .guide-nav,
  .docs-page[data-guide-enhanced] .guide-nav-label { display: none; }
  .guide-select-wrap:not([hidden]) { display: block; }
  .guide-select-wrap label { display: block; margin-bottom: 0.5rem; color: var(--muted); font-size: 0.75rem; }
  #guide-select { display: block; width: 100%; min-height: 50px; padding: 0.7rem 1rem; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: var(--surface-raised); font: 500 1rem/1.5 "Space Grotesk", sans-serif; }
  .guide-panel { scroll-margin-top: 190px; }
  .guide-panel-header h2 { font-size: 1.95rem; }
  .guide-card-arrow { display: block; }
}
@media (max-width: 600px) {
  .docs-page .header-inner { min-height: 66px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-block: 0.85rem; }
  .docs-page .brand { gap: 0.6rem; }
  .docs-page .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .docs-page .brand-name { font-size: 1.22rem; }
  .docs-page .nav-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 38px; padding: 0.5rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: var(--surface-raised); font: 500 0.8rem/1 "Space Grotesk", sans-serif; cursor: pointer; }
  .docs-page .site-nav { width: 100%; flex-wrap: wrap; gap: 0.3rem; padding-top: 0.5rem; }
  .docs-page[data-menu-open="false"] .site-nav { display: none; }
  .docs-page .site-nav-link { flex: 1 0 40%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.78rem; }
  .docs-page .site-nav-cta { margin-left: 0; }
  .guide-hero { padding-top: 2rem; }
  .guide-hero h1 { max-width: 14ch; font-size: clamp(2rem, 8vw, 2.7rem); }
  .guide-hero p { max-width: 37ch; font-size: 0.93rem; line-height: 1.65; }
  .guide-workspace { gap: 1.7rem; }
  .docs-page[data-guide-enhanced] .guide-sidebar { top: 66px; }
  .guide-panel { scroll-margin-top: 175px; }
  .guide-panel-header h2 { font-size: 1.8rem; }
  .guide-panel-header p { font-size: 0.93rem; }
  .guide-checklist { grid-template-columns: 1fr; gap: 0.85rem; margin-top: 1.4rem; }
  .guide-checklist li { padding: 1.15rem; }
  .guide-checklist p { font-size: 0.9rem; }
  .guide-chooser { margin-top: 2rem; }
  .guide-chooser-heading { display: block; }
  .guide-chooser-heading > span { display: none; }
  .guide-chooser-heading h3 { font-size: 1.17rem; }
  .guide-cards { grid-template-columns: 1fr; gap: 0.75rem; }
  .guide-card { padding: 1rem; gap: 0.85rem; }
  .guide-card-icon { flex-basis: 40px; height: 40px; }
  .guide-card strong { font-size: 0.95rem; }
  .guide-card > span > span { font-size: 0.8rem; }
  .guide-requirements { margin: 1.25rem 0 1.65rem; }
  .guide-requirements li { max-width: 100%; border-radius: 10px; }
  .guide-subheading { margin-bottom: 1.25rem; }
  .guide-steps { gap: 1.5rem; }
  .guide-steps li { gap: 0.75rem; }
  .guide-steps h4 { font-size: 0.97rem; }
  .guide-steps p { font-size: 0.93rem; line-height: 1.7; }
  .guide-reference summary { font-size: 0.86rem; gap: 0.4rem; }
  .guide-reference dt { font-size: 0.9rem; }
  .guide-reference dd { font-size: 0.91rem; }
  .guide-screenshots { gap: 1.25rem; padding: 1rem; grid-template-columns: 1fr; }
  .guide-screenshot img { max-height: 210px; object-fit: contain; }
  .guide-image-open { font-size: 0.75rem; padding: 0.65rem 0.75rem; }
  .guide-screenshot figcaption { font-size: 0.76rem; }
  .guide-next { gap: 1rem; }
  .guide-next > a { gap: 0.5rem; font-size: 0.75rem; }
  .guide-next strong { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: none; }
}
