.guide-page { background: #0a0c11; }
.guide-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 12% 18%, rgba(255, 194, 102, .08), transparent 30%), radial-gradient(circle at 86% 35%, rgba(83, 216, 255, .055), transparent 32%), linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px); background-size: auto, auto, 34px 34px, 34px 34px; }
.guide-header { border-bottom-color: rgba(255, 255, 255, .075); background: rgba(10, 12, 17, .86); }
.guide-brand img { border-radius: 24%; background: transparent; object-fit: contain; }
.manual-hero { display: grid; min-height: min(760px, calc(100vh - 72px)); grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; padding-block: clamp(5rem, 10vw, 9rem); }
.manual-hero-copy h1 { max-width: 780px; margin: .75rem 0 1.25rem; font-size: clamp(3.4rem, 8vw, 7rem); line-height: .91; letter-spacing: -.07em; }
.manual-lead { max-width: 700px; color: #aeb8c9; font-size: clamp(1.02rem, 1.8vw, 1.22rem); line-height: 1.75; }
.manual-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.manual-audience { margin-top: 1.2rem; color: #7f8ca0; font-size: .78rem; }
.manual-cover { position: relative; display: grid; min-height: 520px; place-items: center; }
.manual-cover-orbit { position: absolute; width: min(42vw, 430px); aspect-ratio: 1; border: 1px dashed rgba(255, 194, 102, .32); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,194,102,.018), 0 0 0 84px rgba(83,216,255,.012); animation: manual-orbit-spin 24s linear infinite; }
.manual-cover-sheet { position: relative; display: flex; width: min(310px, 78vw); min-height: 430px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2.2rem; overflow: hidden; border: 2px solid rgba(21, 22, 26, .92); border-radius: 3px 11px 5px 8px; color: #16130e; background: #f1e8d3; box-shadow: 12px 14px 0 rgba(242, 174, 38, .88), 34px 45px 100px rgba(0,0,0,.44); transform: rotate(2.2deg); }
.manual-cover-sheet::before { content: ""; position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(0deg, transparent 0 27px, #8e7d5d 28px); }
.manual-cover-sheet > * { position: relative; }
.manual-cover-sheet img { width: 92px; height: 92px; margin: 1.7rem 0; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.16)); }
.manual-cover-sheet strong { font-size: 2.35rem; line-height: .95; letter-spacing: -.07em; }
.manual-cover-kicker, .manual-cover-sheet small { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .68rem; font-weight: 850; letter-spacing: .14em; }
.manual-cover-line { width: 100%; margin: 1.7rem 0 1rem; border-top: 2px solid #17130e; transform: rotate(-1deg); }
.quick-start { padding-block: 5.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-start > header { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; }
.quick-start > header .eyebrow { grid-column: 1 / -1; }
.quick-start h2 { max-width: 560px; margin: .5rem 0 0; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }
.quick-start > header > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.quick-start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 2.5rem; }
.quick-start-grid article { min-height: 190px; padding: 1.25rem; border: 1px solid rgba(255,255,255,.08); border-radius: 4px 15px 6px 12px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); box-shadow: 5px 6px 0 rgba(255,255,255,.025); transform: rotate(var(--quick-tilt)); }
.quick-start-grid article:nth-child(1), .quick-start-grid article:nth-child(3) { --quick-tilt: -.45deg; }
.quick-start-grid article:nth-child(2), .quick-start-grid article:nth-child(4) { --quick-tilt: .45deg; }
.quick-start-grid article > span { color: var(--yellow); font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 900; }
.quick-start-grid article strong { display: block; margin-top: 1.2rem; font-size: 1rem; }
.quick-start-grid article p { margin: .55rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.manual-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: 5.5rem; }
.manual-toc { position: sticky; top: 106px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; }
.manual-toc > strong { display: block; margin-bottom: .9rem; color: #778499; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.manual-toc nav { display: grid; gap: .28rem; }
.manual-toc a { padding: .48rem .25rem; color: #8995a8; font-size: .76rem; line-height: 1.35; }
.manual-toc a:hover, .manual-toc a:focus-visible { color: var(--yellow); }
.manual-chapters { min-width: 0; }
.manual-chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .8fr); gap: clamp(2.2rem, 6vw, 6rem); align-items: center; min-height: 720px; padding: 5.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 86px; }
.manual-chapter:first-child { padding-top: 1rem; }
.manual-chapter-reverse .manual-chapter-copy { order: 2; }
.manual-chapter-reverse .sketch-figure { order: 1; }
.manual-chapter-marker { display: inline-grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,194,102,.28); border-radius: 50% 46% 51% 45%; color: var(--yellow); font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 900; transform: rotate(-5deg); }
.manual-chapter h2 { max-width: 660px; margin: 1.15rem 0 .9rem; font-size: clamp(2.2rem, 4.4vw, 4.1rem); line-height: 1; letter-spacing: -.055em; }
.manual-chapter-lead { max-width: 680px; color: #a8b2c3; line-height: 1.75; }
.manual-step-list { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.manual-step-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .85rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.07); }
.manual-step-list li > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(83,216,255,.25); border-radius: 50%; color: var(--cyan); font-size: .74rem; font-weight: 900; }
.manual-step-list strong { font-size: .92rem; }
.manual-step-list p { margin: .35rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.68; }
.manual-caution { margin: 1.1rem 0 0; padding: .9rem 1rem; border-left: 3px solid var(--yellow); color: #f6dca5; background: rgba(255,194,102,.055); font-size: .81rem; line-height: 1.6; }
.sketch-figure { min-width: 0; margin: 0; }
.sketch-paper { position: relative; display: grid; min-height: 540px; place-items: center; padding: 2rem 1.3rem; border: 2px solid #242019; border-radius: 5px 14px 7px 12px; color: #201c16; background: #f2ead9; box-shadow: 10px 11px 0 rgba(255,194,102,.72), 22px 36px 80px rgba(0,0,0,.35); transform: rotate(-.8deg); }
.manual-chapter-reverse .sketch-paper { box-shadow: -10px 11px 0 rgba(83,216,255,.52), -22px 36px 80px rgba(0,0,0,.35); transform: rotate(.8deg); }
.sketch-paper::before, .sketch-paper::after { content: ""; position: absolute; pointer-events: none; }
.sketch-paper::before { inset: 0; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 25px, #8d7e64 26px); }
.sketch-paper::after { width: 58px; height: 24px; top: -10px; left: calc(50% - 29px); background: rgba(234, 211, 161, .72); transform: rotate(-2deg); }
.sketch-phone { position: relative; width: min(278px, 100%); min-height: 475px; padding: 1rem 1rem 1.15rem; border: 3px solid #22201c; border-radius: 34px 29px 36px 31px; background: #fbf8ef; box-shadow: 5px 6px 0 rgba(32,28,22,.16); transform: rotate(.65deg); }
.sketch-phone::before { content: ""; position: absolute; width: 60px; height: 5px; top: 8px; left: calc(50% - 30px); border-radius: 999px; background: #29251e; }
.sketch-status { display: flex; justify-content: space-between; margin-top: .25rem; color: #5f574b; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .53rem; font-weight: 800; }
.sketch-status i { display: block; width: 24px; border-top: 4px double #302b24; border-bottom: 2px solid #302b24; }
.sketch-screen-header { display: grid; grid-template-columns: 22px 1fr 22px; align-items: center; margin-top: 1.25rem; text-align: center; }
.sketch-screen-header > span:first-child { font-size: 1.5rem; line-height: 1; }
.sketch-screen-header strong { font-size: .9rem; }
.sketch-summary { display: flex; min-height: 92px; flex-direction: column; justify-content: center; margin-top: 1rem; padding: .9rem; border: 2px solid #29251e; border-radius: 15px 10px 17px 12px; background: #eee3ca; transform: rotate(-.35deg); }
.sketch-summary span { color: #6e6455; font-size: .58rem; }
.sketch-summary strong { margin-top: .35rem; overflow-wrap: anywhere; font-size: 1.03rem; letter-spacing: -.04em; }
.sketch-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: 1rem 0; }
.sketch-actions > span { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.sketch-actions i { display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid #39332a; border-radius: 48% 53% 45% 52%; font-size: .57rem; font-style: normal; font-weight: 900; transform: rotate(-4deg); }
.sketch-actions b { overflow: hidden; max-width: 100%; font-size: .5rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sketch-rows { display: grid; gap: .42rem; }
.sketch-rows > div { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .6rem; border: 1.5px solid #4f473b; border-radius: 9px 13px 8px 11px; }
.sketch-rows span { color: #716656; font-size: .55rem; }
.sketch-rows strong { max-width: 58%; overflow-wrap: anywhere; font-size: .61rem; text-align: right; }
.sketch-primary-action { display: grid; min-height: 42px; margin-top: .75rem; place-items: center; border: 2px solid #231f19; border-radius: 13px 10px 14px 11px; color: #fff9e7; background: #26221c; font-size: .65rem; font-weight: 900; transform: rotate(-.25deg); }
.sketch-figure figcaption { max-width: 360px; margin: 1.45rem auto 0; color: #8793a6; font-size: .75rem; line-height: 1.55; text-align: center; }
.manual-safety { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); margin-block: 2rem 7rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(255,194,102,.2); border-radius: 7px 24px 10px 19px; background: linear-gradient(135deg, rgba(255,194,102,.09), rgba(140,103,255,.05)); }
.manual-safety-mark { display: grid; width: 78px; height: 78px; place-items: center; border: 3px solid #ffcf70; border-radius: 50% 47% 53% 45%; color: #ffcf70; font-size: 2.5rem; font-weight: 900; transform: rotate(-7deg); }
.manual-safety h2, .manual-help h2 { margin: .5rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; }
.manual-safety p:not(.eyebrow) { color: #c4ad83; line-height: 1.7; }
.manual-safety ul { display: grid; gap: .6rem; padding-left: 1.2rem; color: #e5d4b3; }
.manual-help { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-block: 5rem 7rem; }
.manual-help > div:first-child { max-width: 760px; }
.manual-help p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.manual-help-actions { display: flex; flex: 0 0 auto; flex-direction: column; gap: .7rem; }
.manual-load-error { width: min(1180px, calc(100% - 40px)); min-height: 1.5rem; margin: -4rem auto 4rem; color: #ffb4ab; text-align: center; }
.guide-footer > a { display: inline-flex; min-height: 44px; align-items: center; }
@keyframes manual-orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .manual-body { grid-template-columns: 170px minmax(0, 1fr); }
  .manual-chapter { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 2.5rem; }
}

@media (max-width: 900px) {
  .manual-hero { grid-template-columns: 1fr; min-height: auto; }
  .manual-cover { min-height: 470px; }
  .quick-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-body { display: block; }
  .manual-toc { position: static; margin-bottom: 4rem; }
  .manual-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-toc a { min-height: 44px; padding: .7rem .55rem; border-bottom: 1px solid var(--line); }
  .manual-chapter { min-height: 0; grid-template-columns: 1fr 340px; }
}

@media (max-width: 720px) {
  .guide-nav { display: none; }
  .guide-mobile-menu { display: block; margin-left: auto; }
  .manual-hero { gap: 1rem; padding-top: 4rem; }
  .manual-hero-copy h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .manual-cover { min-height: 440px; }
  .quick-start > header { display: block; }
  .quick-start > header > p:last-child { margin-top: 1rem; }
  .manual-chapter, .manual-chapter-reverse { display: flex; flex-direction: column; gap: 3rem; padding-block: 4.5rem; }
  .manual-chapter-reverse .manual-chapter-copy, .manual-chapter-reverse .sketch-figure { order: initial; }
  .manual-chapter-copy, .sketch-figure { width: 100%; }
  .sketch-paper { min-height: 520px; }
  .manual-safety { grid-template-columns: 1fr; }
  .manual-help { display: block; }
  .manual-help-actions { margin-top: 2rem; }
}

@media (max-width: 620px) {
  .guide-header { gap: .55rem; }
  .guide-brand span { font-size: .78rem; }
  .guide-brand small { font-size: .55rem; }
  .guide-header .language-picker select { max-width: 116px; }
  .manual-hero, .quick-start, .manual-body, .manual-safety, .manual-help { width: min(100% - 28px, 1180px); }
  .manual-hero-actions .button { width: 100%; }
  .quick-start-grid { grid-template-columns: 1fr; }
  .quick-start-grid article { min-height: 0; }
  .manual-toc nav { grid-template-columns: 1fr; }
  .sketch-paper { padding-inline: .85rem; }
  .manual-safety { padding: 1.5rem; }
  .manual-help-actions .button { width: 100%; }
}

@media (max-width: 390px) {
  .guide-brand span { display: none; }
  .guide-header .language-picker select { width: 94px; max-width: 94px; padding-inline: .55rem 1.4rem; }
  .manual-cover-sheet { min-height: 395px; padding: 1.8rem; }
  .manual-cover-sheet strong { font-size: 2rem; }
  .sketch-phone { width: min(270px, 100%); padding-inline: .85rem; }
  .sketch-actions b { font-size: .46rem; }
}

@media (prefers-reduced-motion: reduce) {
  .manual-cover-orbit { animation: none; }
  .wallet-guide-button { transition: none; }
}
