:root {
  --bg: #050b16;
  --bg-soft: #081222;
  --surface: rgba(12, 25, 45, .86);
  --surface-2: #0d1b30;
  --line: rgba(120, 178, 226, .18);
  --line-strong: rgba(55, 190, 255, .45);
  --text: #f4f8fc;
  --muted: #9db0c6;
  --cyan: #38c8ff;
  --blue: #238dff;
  --green: #38df96;
  --amber: #ffc857;
  --red: #ff7281;
  --max: 1240px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 7%, rgba(25, 116, 213, .17), transparent 25rem),
    radial-gradient(circle at 92% 20%, rgba(28, 205, 233, .09), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code { color: #94e7ff; font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; background: white; color: #06101f; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 78px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(5, 11, 22, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 44px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { color: var(--cyan); font-size: 1.08rem; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: #b8c7d7; font-size: .68rem; font-weight: 700; letter-spacing: .12em; }

.header-actions { display: flex; gap: 10px; }
.ghost-button, .primary-button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 750;
}
.ghost-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.primary-button { color: #03101e; border-color: transparent; background: linear-gradient(110deg, #35d8f5, #2b8fff); box-shadow: 0 10px 34px rgba(36, 156, 255, .23); }
.primary-button:hover { filter: brightness(1.08); }
.primary-button.large { min-height: 54px; padding: 0 24px; }

.reading-progress { position: fixed; z-index: 60; top: 77px; left: 0; width: 100%; height: 2px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); }
.mobile-steps { display: none; }

main { overflow: clip; }
.guide-hero { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 88px 0 60px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b8c9da; font-size: .82rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(56, 223, 150, .1), 0 0 16px rgba(56, 223, 150, .8); }
.guide-hero h1 { max-width: 820px; margin: 20px auto 18px; font-size: clamp(3rem, 7vw, 6.1rem); line-height: .98; letter-spacing: -.07em; }
.guide-hero h1 span { color: var(--cyan); text-shadow: 0 0 42px rgba(56, 200, 255, .18); }
.hero-copy { max-width: 710px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); }

.route-summary { max-width: 970px; margin: 48px auto 28px; padding: 22px 26px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(11, 25, 44, .7); box-shadow: inset 0 1px rgba(255,255,255,.03); }
.route-summary div { min-width: 100px; display: grid; justify-items: center; gap: 4px; }
.route-summary strong { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--cyan); background: rgba(44, 175, 255, .12); font-size: .8rem; }
.route-summary span { color: #dce8f4; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.route-summary i { width: min(8vw, 84px); height: 1px; background: linear-gradient(90deg, var(--line-strong), rgba(55, 190, 255, .08)); }
.route-summary .route-done strong { color: #04160e; background: var(--green); box-shadow: 0 0 18px rgba(56,223,150,.24); }

.before-you-start { max-width: 970px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 28px; text-align: left; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(120deg, rgba(22, 53, 88, .78), rgba(9, 22, 40, .72)); }
.before-title { display: flex; align-items: center; gap: 14px; }
.mini-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #061810; background: var(--green); font-weight: 900; }
.before-title div { display: flex; flex-direction: column; }
.before-title small { color: var(--muted); }
.before-you-start ul { margin: 0; padding-left: 22px; color: #c1d0df; }

.page-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 52px; align-items: start; }
.toc-card { position: sticky; top: 110px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 19, 35, .78); backdrop-filter: blur(14px); }
.toc-card > p { margin: 4px 12px 12px; color: #6f849b; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.toc-link { padding: 11px 12px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 14px; text-decoration: none; color: #aebed0; transition: .2s ease; }
.toc-link:hover { color: white; background: rgba(255,255,255,.035); }
.toc-link b { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #7890a9; background: #0d1b2e; font-size: .75rem; }
.toc-link span { display: flex; flex-direction: column; font-size: .9rem; font-weight: 750; }
.toc-link small { color: #687f97; font-size: .71rem; font-weight: 550; }
.toc-link.active { color: white; border-color: rgba(55, 200, 255, .2); background: linear-gradient(100deg, rgba(35, 141, 255, .16), rgba(35, 141, 255, .04)); }
.toc-link.active b { color: #03101d; background: var(--cyan); }
.toc-link.active small { color: #a6bad0; }
.toc-tip { margin: 15px 4px 2px; padding: 12px; display: flex; gap: 9px; border-top: 1px solid var(--line); color: #8fa4b8; }
.toc-tip > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--amber); border: 1px solid rgba(255,200,87,.4); font-weight: 900; }
.toc-tip p { margin: 0; font-size: .75rem; line-height: 1.55; }

.guide-flow { min-width: 0; padding-bottom: 90px; }
.stage { position: relative; padding: 22px 0 70px; }
.stage + .stage { border-top: 1px solid var(--line); }
.stage-header { padding: 10px 0 30px; display: flex; align-items: flex-start; gap: 20px; }
.stage-number { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 17px; color: var(--cyan); background: rgba(24, 118, 194, .12); font-size: .88rem; font-weight: 850; box-shadow: inset 0 1px rgba(255,255,255,.06); }
.stage-header p, .quick-help header p { margin: 2px 0 2px; color: var(--cyan); font-size: .72rem; font-weight: 850; letter-spacing: .15em; }
.stage-header h2, .quick-help h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -.04em; }
.stage-header div > span { display: block; margin-top: 8px; color: var(--muted); }

.step-card { margin-bottom: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(14, 29, 51, .92), rgba(8, 18, 33, .95)); box-shadow: 0 26px 75px rgba(0,0,0,.24); }
.step-copy { padding: 28px 30px 24px; }
.screen-tag { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(53, 196, 255, .22); border-radius: 999px; color: var(--cyan); background: rgba(45, 160, 255, .08); font-size: .68rem; font-weight: 850; letter-spacing: .11em; }
.step-copy h3 { margin: 12px 0 8px; font-size: clamp(1.35rem, 2.7vw, 1.85rem); line-height: 1.2; letter-spacing: -.03em; }
.step-copy > p { margin: 0 0 12px; color: #b7c7d7; }
.step-copy a, .notice a, .quick-help a { color: var(--cyan); text-underline-offset: 3px; }
.action-list, .number-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; color: #c5d3e1; }
.action-list li, .number-list li { position: relative; padding-left: 30px; }
.action-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: rgba(56,223,150,.1); font-size: .72rem; font-weight: 900; }
.number-list { counter-reset: steps; }
.number-list li { counter-increment: steps; }
.number-list li::before { content: counter(steps); position: absolute; left: 0; top: 2px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #05111e; background: var(--cyan); font-size: .68rem; font-weight: 900; }

.notice { margin-top: 18px; padding: 13px 15px; display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; border: 1px solid rgba(63,173,255,.18); background: rgba(39, 122, 193, .08); }
.notice b { flex: 0 0 auto; color: #90ddff; font-size: .82rem; }
.notice span { color: #aebfd1; font-size: .84rem; }
.notice.amber { border-color: rgba(255,200,87,.22); background: rgba(255,200,87,.07); }
.notice.amber b { color: var(--amber); }
.notice.red { border-color: rgba(255,114,129,.24); background: rgba(255,114,129,.07); }
.notice.red b { color: var(--red); }
.notice.wide { margin: 0 0 24px; padding: 17px 20px; }

.image-button { position: relative; width: 100%; padding: 0; display: block; overflow: hidden; border: 0; border-top: 1px solid var(--line); background: #020712; cursor: zoom-in; }
.image-button img { width: 100%; height: auto; display: block; transition: transform .35s ease, filter .35s ease; }
.image-button:hover img { transform: scale(1.012); filter: brightness(.92); }
.image-button > span { position: absolute; right: 14px; bottom: 14px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: white; background: rgba(3,10,20,.78); backdrop-filter: blur(8px); font-size: .76rem; font-weight: 750; opacity: 0; transform: translateY(5px); transition: .25s ease; }
.image-button:hover > span, .image-button:focus-visible > span { opacity: 1; transform: none; }

.prompt-card { margin: 8px 0 28px; padding: 25px; border: 1px solid rgba(56, 200, 255, .28); border-radius: var(--radius); background: linear-gradient(140deg, rgba(9, 45, 75, .84), rgba(6, 19, 36, .9)); }
.prompt-card span { color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .14em; }
.prompt-card h3 { margin: 4px 0 14px; font-size: 1.35rem; }
.prompt-card pre { margin: 0; padding: 18px; overflow: auto; white-space: pre-wrap; color: #d6e8f7; border: 1px solid var(--line); border-radius: 14px; background: rgba(1, 8, 17, .55); font: .92rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prompt-card button { margin-top: 14px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: white; background: rgba(36, 141, 255, .14); cursor: pointer; font-weight: 750; }
.prompt-card button:hover { background: rgba(36, 141, 255, .25); }
.success-card { border-color: rgba(56,223,150,.27); }
.success-line { margin-top: 20px; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(56,223,150,.2); border-radius: 15px; background: rgba(56,223,150,.07); }
.success-line > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #04140d; background: var(--green); font-weight: 900; }
.success-line div { display: flex; flex-direction: column; }
.success-line strong { color: var(--green); }
.success-line small { color: #a8bdb2; }

.quick-help { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quick-help header { margin-bottom: 18px; }
.quick-help details { border-top: 1px solid var(--line); }
.quick-help summary { padding: 17px 0; cursor: pointer; color: #e7f0f8; font-weight: 750; }
.quick-help details p { margin: -3px 0 18px; color: var(--muted); }
.quick-help summary::marker { color: var(--cyan); }

.finish-banner { margin-top: 30px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid rgba(59, 199, 255, .3); border-radius: var(--radius); background: radial-gradient(circle at 100% 0, rgba(48, 187, 255, .22), transparent 55%), #0a1930; }
.finish-banner span { color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .15em; }
.finish-banner h2 { margin: 4px 0 4px; font-size: 2rem; letter-spacing: -.04em; }
.finish-banner p { margin: 0; color: var(--muted); }

footer { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 40px 0 56px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: #788da3; font-size: .78rem; }
footer p { max-width: 650px; margin: 0; }
footer > div:last-child { display: flex; gap: 16px; }
footer a { color: #a9bdd1; }

dialog { width: min(94vw, 1500px); max-height: 94vh; padding: 0; border: 1px solid rgba(95, 187, 247, .3); border-radius: 20px; color: white; background: #07111f; box-shadow: 0 40px 120px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(0, 4, 11, .86); backdrop-filter: blur(8px); }
.dialog-head { height: 58px; padding: 0 14px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head p { margin: 0; font-weight: 750; }
.dialog-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.07); cursor: pointer; font-size: 1.55rem; }
.dialog-body { max-height: calc(94vh - 58px); overflow: auto; background: #02060d; }
.dialog-body img { width: 100%; height: auto; display: block; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translate(-50%, 18px); padding: 11px 17px; border: 1px solid rgba(56,223,150,.35); border-radius: 999px; color: #dffff0; background: rgba(7, 42, 30, .94); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  html { scroll-padding-top: 140px; }
  .toc-card { display: none; }
  .page-shell { grid-template-columns: 1fr; }
  .mobile-steps { position: sticky; z-index: 35; top: 78px; padding: 9px 18px; display: flex; gap: 8px; overflow-x: auto; background: rgba(5, 11, 22, .9); border-bottom: 1px solid var(--line); scrollbar-width: none; backdrop-filter: blur(14px); }
  .mobile-steps::-webkit-scrollbar { display: none; }
  .mobile-steps a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #9fb2c6; text-decoration: none; font-size: .75rem; font-weight: 750; }
  .reading-progress { top: 77px; }
  .guide-hero { padding-top: 68px; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 16px; }
  .reading-progress { top: 69px; }
  .mobile-steps { top: 70px; }
  .brand img { width: 31px; height: 36px; }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .58rem; }
  .ghost-button { display: none; }
  .primary-button { min-height: 40px; padding: 0 14px; font-size: .82rem; }
  .guide-hero, .page-shell, footer { width: min(100% - 28px, var(--max)); }
  .guide-hero { padding: 55px 0 42px; }
  .guide-hero h1 { margin-top: 16px; font-size: clamp(2.7rem, 15vw, 4.5rem); }
  .eyebrow { font-size: .69rem; letter-spacing: .06em; }
  .route-summary { margin-top: 32px; padding: 16px 12px; justify-content: flex-start; overflow-x: auto; }
  .route-summary div { min-width: 92px; }
  .route-summary i { min-width: 30px; }
  .before-you-start { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .before-you-start ul { font-size: .9rem; }
  .page-shell { display: block; }
  .stage { padding-bottom: 52px; }
  .stage-header { gap: 14px; padding-bottom: 22px; }
  .stage-number { width: 47px; height: 47px; border-radius: 14px; }
  .step-copy { padding: 22px 19px 18px; }
  .step-copy > p, .action-list, .number-list { font-size: .93rem; }
  .notice { display: grid; gap: 4px; }
  .image-button > span { opacity: 1; transform: none; font-size: .68rem; }
  .prompt-card, .quick-help, .finish-banner { padding: 21px 18px; }
  .finish-banner { display: grid; }
  .finish-banner h2 { font-size: 1.65rem; }
  footer { grid-template-columns: 1fr; gap: 16px; }
  .footer-brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
