@font-face{font-family:Wanted Sans;src:url('/assets/wanted-sans.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:light;--bg:#fff;--text:#171717;--muted:#666;--faint:#909090;--line:#eaeaea;--soft:#fafafa;--hover:#f4f4f4;--accent:#007ca0;--code:#f7f7f7;--terminal:#11141a;--terminal-text:#eef1f5;--header-bg:#ffffffee;--shadow:0 12px 44px #00000014;--radius:10px}
:root[data-theme=dark]{color-scheme:dark;--bg:#0a0a0a;--text:#ededed;--muted:#a1a1a1;--faint:#777;--line:#252525;--soft:#111;--hover:#1b1b1b;--accent:#5fd5f4;--code:#151515;--terminal:#11141a;--terminal-text:#eef1f5;--header-bg:#0a0a0aee;--shadow:0 12px 44px #00000066}
*{box-sizing:border-box}html{scroll-padding-top:90px;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Wanted Sans,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer;color:inherit}button,a{-webkit-tap-highlight-color:transparent}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{cursor:wait}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;top:8px;left:12px;z-index:100;transform:translateY(-150%);background:var(--text);color:var(--bg);padding:12px 18px;border-radius:8px}.skip-link:focus{transform:none}
.topbar{position:sticky;top:0;z-index:20;background:var(--header-bg);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.topbar-inner{max-width:1600px;margin:auto;height:72px;padding:0 32px;display:flex;align-items:center;gap:36px}.brand{display:flex;align-items:center;gap:16px;flex-shrink:0}.brand img{width:102px;height:auto;object-fit:contain}.logo-dark{display:none}[data-theme=dark] .logo-dark{display:block}[data-theme=dark] .logo-light{display:none}.brand-separator{width:1px;height:22px;background:var(--line);transform:rotate(18deg)}.brand-docs{font-size:16px;font-weight:560}.topnav{display:flex;gap:24px;color:var(--muted);font-size:13px}.topnav a{padding:14px 0}.topnav a:hover{color:var(--text)}.header-tools{display:flex;align-items:center;gap:16px;margin-left:auto}.search-trigger{display:flex;align-items:center;gap:10px;color:var(--muted);background:var(--soft);border:1px solid var(--line);border-radius:8px;min-height:36px;padding:5px 10px;text-align:left;width:210px;font-size:13px}.search-trigger svg{width:16px;height:16px}.search-trigger kbd{margin-left:auto;font-size:11px;border:1px solid var(--line);border-radius:4px;padding:0 4px;background:var(--bg);font-family:inherit;white-space:nowrap}.language-switch{font-size:12px;font-weight:550;min-width:40px;min-height:44px;display:grid;place-items:center}.icon-button,.github-link{width:36px;height:36px;padding:7px;display:grid;place-items:center;background:transparent;border:0;border-radius:8px}.icon-button:hover,.github-link:hover{background:var(--hover)}.menu-toggle{display:none}
.docs-layout{display:grid;grid-template-columns:244px minmax(0,1fr) 208px;max-width:1472px;margin:auto;align-items:start}.sidebar{position:sticky;top:72px;height:calc(100dvh - 72px);border-right:1px solid var(--line)}.sidebar-scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:30px 24px 32px 20px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.sidebar-label{font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.sidebar-label span{border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-weight:500;font-size:11px;color:var(--muted)}.nav-group{margin-top:25px}.nav-group h2{font-size:12px;font-weight:650;line-height:1.4;margin:0 0 8px 10px}.nav-link{display:block;font-size:13px;line-height:1.5;color:var(--muted);padding:8px 10px;border-radius:6px;margin:1px 0}.nav-link:hover{background:var(--soft);color:var(--text)}.nav-link.active{background:var(--hover);color:var(--text);font-weight:600;box-shadow:inset 2px 0 var(--accent)}.sidebar-footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:18px 10px;margin-top:32px;border-top:1px solid var(--line);color:var(--muted)}.sidebar-footer:hover{color:var(--text)}
.content{min-width:0;padding:38px 48px 24px;outline:none;max-width:930px;width:100%;margin:0 auto}.breadcrumb{display:flex;gap:9px;color:var(--faint);font-size:12px;margin-bottom:30px}.breadcrumb a{color:var(--muted)}.breadcrumb span:last-child{color:var(--muted)}.prose{font-size:15px;line-height:1.85;overflow-wrap:anywhere}.prose h1{font-size:36px;line-height:1.25;font-weight:670;letter-spacing:-1.2px;margin:0 0 20px;text-wrap:balance}.prose>h1+p{font-size:17px;line-height:1.75;color:var(--muted);margin-bottom:30px;max-width:65ch}.prose h2{font-size:23px;line-height:1.4;font-weight:620;letter-spacing:-.55px;margin:48px 0 18px}.prose h3{font-size:17px;line-height:1.5;font-weight:630;margin:30px 0 12px}.prose h4{font-size:15px;line-height:1.5;margin:24px 0 12px}.prose p{margin:16px 0}.prose a{color:var(--accent);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 30%,transparent);text-underline-offset:4px}.prose a:hover{text-decoration-color:currentColor}.prose strong{font-weight:620}.prose ul,.prose ol{padding-left:24px;margin:18px 0}.prose li{margin:8px 0}.prose li::marker{color:var(--faint)}.prose hr{border:0;border-top:1px solid var(--line);margin:36px 0}.prose blockquote{border-left:3px solid var(--accent);padding:3px 18px;margin:24px 0;background:var(--soft);color:var(--muted);border-radius:0 6px 6px 0}.prose blockquote p{margin:12px 0}.prose code{font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--code);border:1px solid var(--line);border-radius:4px;padding:2px 5px;font-weight:450}.prose pre{margin:22px 0;position:relative;background:var(--code);border:1px solid var(--line);border-radius:var(--radius);overflow:auto;scrollbar-width:thin}.prose pre code{display:block;white-space:pre;font-size:12.5px;line-height:1.85;min-width:100%;width:max-content;padding:20px 54px 20px 20px;border:0;background:transparent;border-radius:0}.highlight{margin:22px 0}.highlight pre{margin:0}.copy-button{position:absolute;top:10px;right:10px;width:32px;height:32px;background:var(--bg);border:1px solid var(--line);border-radius:6px;display:grid;place-items:center;color:var(--muted);z-index:1}.copy-button svg{width:15px;height:15px}.copy-button[data-copied=true]{color:var(--accent)}.prose table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.65;margin:20px 0}.prose th,.prose td{border-bottom:1px solid var(--line);padding:12px 12px;text-align:left;vertical-align:top;min-width:90px}.prose th{font-size:12px;font-weight:600;background:var(--soft)}.table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:8px;margin:22px 0}.table-scroll table{margin:0}.prose .headerlink{font-weight:450;margin-left:8px;color:var(--faint);opacity:0;text-decoration:none;font-size:.7em}.prose h2:hover .headerlink,.prose h3:hover .headerlink,.prose .headerlink:focus{opacity:1}.prose .admonition{border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:8px;padding:14px 18px;font-size:14px;margin:24px 0;background:var(--soft)}.prose .admonition-title{font-weight:600;margin:0 0 10px}.prose .admonition p:last-child{margin-bottom:0}.prose .tabbed-set{margin:24px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.tabbed-set>input{position:absolute;opacity:0;width:1px;height:1px}.tabbed-labels{display:flex;gap:6px;padding:8px;background:var(--soft);border-bottom:1px solid var(--line);overflow-x:auto}.tabbed-labels label{padding:6px 12px;border-radius:6px;white-space:nowrap;font-size:12px;color:var(--muted);cursor:pointer}.tabbed-block{display:none}.tabbed-block pre{margin:0;border:0;border-radius:0}.tabbed-set>input:nth-child(1):checked~.tabbed-content>.tabbed-block:nth-child(1),.tabbed-set>input:nth-child(2):checked~.tabbed-content>.tabbed-block:nth-child(2),.tabbed-set>input:nth-child(3):checked~.tabbed-content>.tabbed-block:nth-child(3){display:block}.tabbed-set>input:nth-child(1):checked~.tabbed-labels>label:nth-child(1),.tabbed-set>input:nth-child(2):checked~.tabbed-labels>label:nth-child(2),.tabbed-set>input:nth-child(3):checked~.tabbed-labels>label:nth-child(3){background:var(--bg);color:var(--text);box-shadow:0 1px 3px #0000000a}.tabbed-set>input:focus-visible~.tabbed-labels{outline:2px solid var(--accent);outline-offset:-2px}
.toc{position:sticky;top:72px;padding:40px 20px 24px 0;max-height:calc(100dvh - 72px);overflow-y:auto;font-size:12px;color:var(--muted);scrollbar-width:thin}.toc>span{font-weight:600;color:var(--text);display:block;margin-bottom:14px}.toc ul{list-style:none;padding:0;margin:0}.toc li{margin:0}.toc li>a{display:block;padding:6px 0 6px 12px;border-left:1px solid var(--line);line-height:1.55}.toc li>a:hover{color:var(--text);border-left-color:var(--accent)}.toc li>a.current{color:var(--text);border-left:2px solid var(--accent);font-weight:550}.toc ul ul{padding-left:10px}.toc>nav>ul>li:first-child>a{display:none}.toc-cta{display:block;border:1px solid var(--line);border-radius:8px;padding:16px;margin-top:32px;font-size:12px;line-height:1.6}.toc-cta span{display:block;color:var(--muted);margin-bottom:8px}.toc-cta strong{font-weight:550;color:var(--text)}.toc-cta:hover{background:var(--soft)}
.content-home .prose h1{font-size:43px;line-height:1.25;letter-spacing:-1.5px;max-width:18ch}.content-home .prose>h1+p{max-width:52ch}.content-home .prose h2{margin-top:34px}.starter-section{margin:48px 0 40px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.section-heading h2{font-size:22px;letter-spacing:-.6px;line-height:1.4;margin:0;font-weight:620}.section-heading>a{font-size:12px;color:var(--muted);flex-shrink:0}.starter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.starter-card{display:block;overflow:hidden;border:1px solid var(--line);border-radius:12px;transition:border-color .15s,box-shadow .15s}.starter-card:hover{border-color:var(--faint);box-shadow:0 3px 18px #00000008}.starter-body{padding:18px 18px 20px}.starter-tags{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);gap:12px}.starter-tags span:first-child{border:1px solid var(--line);padding:1px 6px;border-radius:4px}.starter-body h3{font-size:16px;line-height:1.5;font-weight:620;letter-spacing:-.3px;margin:10px 0 6px;display:flex;justify-content:space-between}.starter-body h3 span{color:var(--faint);font-size:14px}.starter-body p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.starter-art{height:116px;position:relative;overflow:hidden;background:#111a2d;border-bottom:1px solid var(--line)}.game-ground{position:absolute;left:0;right:0;height:26px;bottom:0;background:#24374b;border-top:1px solid #00bcf230}.game-player{position:absolute;width:23px;height:26px;background:#ffd600;left:24%;bottom:26px;border-radius:3px 3px 0 0;box-shadow:0 0 0 1px #fff1}.game-block{position:absolute;bottom:26px;background:#ec008c;border-radius:3px 3px 0 0;width:17px;height:31px}.block-one{left:57%}.block-two{left:86%;height:22px}.game-coin{position:absolute;width:8px;height:8px;background:#00bcf2;border-radius:50%;bottom:67px}.coin-one{left:52%}.coin-two{left:61%}.art-phaser{background:#121d20}.art-phaser .game-ground{background:#224044}.art-phaser .game-player{left:20%;border-radius:50%;bottom:55px;background:#00bcf2;width:22px;height:22px}.art-phaser .game-block{background:#ffd600;width:36px;height:8px;bottom:45px}.art-phaser .block-one{left:38%}.art-phaser .block-two{left:75%;bottom:64px}.art-phaser .game-coin{background:#ec008c;bottom:85px}.art-migrate{background:#191622}.art-migrate .game-ground{height:34px;background:#312746}.art-migrate .game-player{background:#ec008c;bottom:34px}.art-migrate .game-block{background:#00bcf2;bottom:34px}.art-migrate .game-coin{background:#ffd600}.art-agent{background:#162124}.art-agent .game-ground{background:#243c42;height:30px}.art-agent .game-player{background:#00bcf2;left:20%;bottom:30px}.art-agent .game-block{background:#ec008c;bottom:30px}.art-agent .game-coin{background:#ffd600}
.page-actions{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;margin-top:48px;padding:20px 0;color:var(--muted);font-size:11px}.page-actions a:hover{color:var(--text)}.page-pagination{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:12px 0 40px}.page-pagination a{border:1px solid var(--line);border-radius:9px;padding:16px 20px;min-height:83px;display:flex;flex-direction:column;gap:7px}.page-pagination a:last-child{text-align:right}.page-pagination a:hover{background:var(--soft)}.page-pagination span{font-size:11px;color:var(--muted)}.page-pagination strong{font-size:13px;font-weight:550}.content-footer{display:flex;align-items:center;gap:20px;color:var(--faint);font-size:11px;border-top:1px solid var(--line);padding:22px 0 8px;flex-wrap:wrap}.content-footer span:first-child{font-weight:650;letter-spacing:-.5px;color:var(--muted)}.content-footer a{margin-left:auto}
dialog{color:var(--text);background:var(--bg);border:1px solid var(--line);box-shadow:var(--shadow);padding:0}dialog::backdrop{background:#0007;backdrop-filter:blur(3px)}.search-dialog{border-radius:14px;width:min(620px,calc(100vw - 32px));max-height:75dvh;margin:14dvh auto 0;overflow:hidden}.search-dialog-head{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line)}.search-dialog-head>svg{color:var(--muted);width:20px}.search-dialog input{flex:1;min-width:0;border:0;outline:0;color:var(--text);background:transparent;font-size:16px;height:28px}.search-dialog input:focus-visible{outline:none}.search-dialog input::placeholder{color:var(--faint)}.dialog-close{border:1px solid var(--line);background:var(--soft);border-radius:5px;font-size:10px;padding:4px 6px;color:var(--muted)}.search-status{color:var(--muted);font-size:12px;margin:0;padding:16px 18px 10px}.search-results{max-height:calc(75dvh - 160px);overflow-y:auto;padding:0 10px 10px}.search-result{display:block;padding:12px;border-radius:8px;border:1px solid transparent;margin:2px 0}.search-result[aria-selected=true],.search-result:hover{background:var(--hover);border-color:var(--line)}.search-result strong{display:block;font-size:14px;font-weight:560;line-height:1.5}.search-result p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.6}.search-result small{display:block;font-size:10px;color:var(--faint);margin-bottom:3px}.search-result mark{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--text);border-radius:2px}.search-dialog-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:var(--faint);padding:12px 18px}.navigation-dialog{margin:0;height:100dvh;max-height:100dvh;width:min(340px,calc(100vw - 32px));max-width:340px;border-radius:0;border-top:0;border-bottom:0;border-left:0;padding:20px;overflow-y:auto}.mobile-nav-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}.mobile-nav-head h2{font-size:15px;margin:0;font-weight:600}.mobile-nav-head button{font-size:26px}.navigation-dialog .nav-link{font-size:14px;min-height:44px;padding-top:11px;padding-bottom:11px}
.highlight .c,.highlight .c1,.highlight .cm{color:var(--muted)}.highlight .s,.highlight .s1,.highlight .s2{color:#00773a}.highlight .k,.highlight .kn,.highlight .kd{color:#7c3ca0}.highlight .m,.highlight .mi,.highlight .mf{color:#9c4600}.highlight .nt,.highlight .na,.highlight .nf{color:#005ba1}[data-theme=dark] .highlight .s,[data-theme=dark] .highlight .s1,[data-theme=dark] .highlight .s2{color:#86c99e}[data-theme=dark] .highlight .k,[data-theme=dark] .highlight .kn,[data-theme=dark] .highlight .kd{color:#cfa1eb}[data-theme=dark] .highlight .m,[data-theme=dark] .highlight .mi,[data-theme=dark] .highlight .mf{color:#e8b178}[data-theme=dark] .highlight .nt,[data-theme=dark] .highlight .na,[data-theme=dark] .highlight .nf{color:#9bc6ee}
@media(min-width:1550px){.topbar-inner{padding:0 56px}.content{padding-left:64px;padding-right:64px}}
@media(max-width:1200px){.docs-layout{grid-template-columns:220px minmax(0,1fr) 175px}.topbar-inner{gap:24px;padding:0 24px}.topnav{gap:18px}.content{padding:32px}.header-tools{gap:12px}.search-trigger{width:170px}.sidebar-scroll{padding-left:16px;padding-right:16px}.toc{padding-right:16px;font-size:11px}}
@media(max-width:1023px){.docs-layout{grid-template-columns:220px minmax(0,1fr)}.toc{display:none}.content{max-width:800px;padding:32px 38px}.topnav{display:none}.topbar-inner{gap:20px}.search-trigger{width:220px}.content-home .prose h1{font-size:39px}}
@media(max-width:767px){html{scroll-padding-top:84px}.topbar-inner{height:64px;padding:0 20px;gap:12px}.brand{gap:12px}.brand img{width:89px}.brand-docs{font-size:14px}.brand-separator{height:18px}.header-tools{gap:8px}.search-trigger{width:36px;height:36px;min-height:36px;padding:9px;background:transparent;border:0;justify-content:center}.search-trigger svg{width:18px;height:18px}.search-trigger span,.search-trigger kbd{display:none}.github-link{display:none}.theme-toggle{display:grid}.language-switch{font-size:11px;min-width:28px}.menu-toggle{display:grid}.docs-layout{display:block}.sidebar{display:none}.content{padding:26px 24px 24px;max-width:720px}.breadcrumb{margin-bottom:24px;font-size:11px}.prose{font-size:15px;line-height:1.85}.prose h1{font-size:30px;letter-spacing:-1px}.content-home .prose h1{font-size:35px;letter-spacing:-1.2px;max-width:18ch}.prose>h1+p{font-size:16px}.prose h2{font-size:21px;margin-top:36px}.prose pre code{font-size:12px;padding-left:16px}.starter-grid{gap:14px}.starter-body{padding:16px}.starter-body h3{font-size:15px}.starter-body p{font-size:12px}.starter-art{height:112px}.section-heading{align-items:flex-start;gap:10px}.section-heading h2{font-size:20px}.section-heading>a{font-size:11px;padding-top:4px}.content-footer{gap:12px}.search-dialog{margin-top:9dvh}.page-pagination a{padding:14px 16px}.theme-mobile{display:block}}
@media(max-width:479px){.brand-separator{display:none}.topbar-inner{padding:0 16px}.header-tools{gap:4px}.brand img{width:80px}.brand{gap:9px}.brand-docs{font-size:13px}.content{padding:24px 20px 20px}.content-home .prose h1{font-size:32px}.starter-grid{grid-template-columns:1fr}.starter-art{height:135px}.starter-tags{font-size:11px}.starter-body h3{font-size:16px}.starter-body p{font-size:13px}.page-pagination{gap:10px}.page-pagination a{padding:12px}.page-pagination strong{font-size:12px}.content-footer span:nth-child(2){width:calc(100% - 62px)}.content-footer a{margin-left:0}.prose th,.prose td{padding:10px}.language-switch{min-width:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
@media print{.topbar,.sidebar,.toc,.page-actions,.page-pagination,.content-footer,.copy-button{display:none}.docs-layout{display:block}.content{max-width:none;padding:0}.prose{font-size:11pt}.prose pre{white-space:pre-wrap}.prose pre code{width:auto;white-space:pre-wrap}body{background:#fff;color:#000}}

body.modal-open{overflow:hidden}
