:root{--ui-background:#fff;--ui-surface:#f5f5f5;--ui-surface-hover:#ebebeb;--ui-text:#171717;--ui-text-secondary:#404040;--ui-text-muted:#6b6b6b;--ui-border:#e5e5e5;--ui-border-strong:#b8b8b8;--ui-accent:#f45b35;--ui-accent-hover:#dd4e2c;--ui-accent-text:#ce4828;--ui-accent-soft:#fff3ed;--ui-accent-subtle:#fff9f6;--ui-accent-border:#f4ad9a;--ui-accent-ring:#f45b3517;--ui-accent-shadow:#f45b3526;--ui-selected:#171717;--ui-on-selected:#fff;--ui-on-accent:#171717;--ui-overlay:#17171760;--ui-glass:#fffffff2;--ui-shadow-soft:#0000000b;--ui-shadow:#00000018;--ui-shadow-strong:#00000030;--ui-grid:#f0f0f0;--ui-transparent:#fff0}::selection{background:var(--ui-accent-soft);color:var(--ui-text)}a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
:root{--paper:var(--ui-background);--ink:var(--ui-text);--muted:var(--ui-text-muted);--line:var(--ui-border);--orange:var(--ui-accent);color:var(--ink);background:var(--paper);font-synthesis:none;font-family:Arial,Microsoft YaHei UI,PingFang SC,sans-serif;font-weight:500}*{box-sizing:border-box}body{margin:0}button,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,canvas:focus-visible{outline:2px solid var(--orange);outline-offset:3px}button{transition:border-color .15s,background .15s}button:hover{border-color:var(--ui-border-strong)}button:active{transform:translateY(1px)}[hidden]{display:none!important}
body{margin:0;overflow:auto}a{color:inherit}button,a,input,textarea,select{outline-offset:4px}.site-nav{border-bottom:1px solid var(--ui-surface);background:var(--ui-background);justify-content:space-between;align-items:center;height:64px;padding:0 24px;display:flex}.site-brand{letter-spacing:-.055em;font-size:22px;font-weight:900;text-decoration:none}.site-brand span{color:var(--ui-accent)}.site-nav-links{align-items:center;gap:clamp(12px,1.6vw,24px);display:flex}.site-nav a{padding:8px 0;text-decoration:none}.site-nav a:hover{text-decoration:underline}.site-nav-links a{white-space:nowrap;position:relative}.site-nav-links a[aria-current=page]:after{content:"";background:var(--ui-accent);border-radius:2px;height:2px;position:absolute;bottom:2px;left:0;right:0}.site-nav-links a[aria-current=page]{font-weight:700}.site-language{align-items:center;display:inline-flex}.skip-link{background:var(--ui-background);z-index:100;padding:12px;position:fixed;top:-80px;left:16px}.skip-link:focus{top:10px}.page-content{max-width:900px;margin:auto;padding:48px 24px;line-height:1.8}.page-content h1{overflow-wrap:anywhere;font-size:clamp(28px,4vw,44px);line-height:1.4}.muted,.eyebrow{color:var(--ui-text-muted)}.page-tabs,.action-row{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.action-row button,.page-content button{border:1px solid var(--ui-border);background:var(--ui-background);cursor:pointer;border-radius:8px;padding:10px 16px}.action-row button[aria-pressed=true]{color:var(--ui-accent-text);border-color:var(--ui-accent)}.work-list{padding:0;list-style:none}.work-list li{border-bottom:1px solid var(--ui-border)}.work-list a{padding:22px 0;text-decoration:none;display:block}.work-list strong{overflow-wrap:anywhere;font-size:20px;display:block}.work-list span{color:var(--ui-text-muted);font-size:13px}.thread-list{padding-left:24px}.thread-list li{padding:12px}.thread-list p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:20px}.thread-list small{color:var(--ui-text-muted)}.service-banner{background:var(--ui-accent-soft);color:var(--ui-text-secondary);margin:0;padding:8px 20px;font-size:12px;line-height:1.5}.game-root .app{height:calc(100dvh - 64px)}.service-banner+.game-root .app{height:calc(100dvh - 100px)}.home-actions a{justify-content:space-between;align-items:center;gap:30px;text-decoration:none;display:inline-flex}.home{min-height:calc(100dvh - 64px)}.auth-form{gap:14px;max-width:420px;display:grid}.auth-form label{gap:6px;display:grid}.auth-form input{border:1px solid var(--ui-border-strong);font:inherit;border-radius:6px;padding:12px}.empty-state{padding:32px 0}.page-content details{margin:30px 0}.page-content textarea{margin:10px 0}.game-root .sidebar-header .wordmark{font-size:20px}@media (max-width:760px){.site-nav{padding:0 16px}.site-nav-links{gap:14px;font-size:14px}.game-root .app,.service-banner+.game-root .app{height:auto}.page-content{padding:28px 20px}.site-brand{font-size:18px}}.language-switch{font:inherit;color:var(--ui-text-secondary);cursor:pointer;background:0 0;border:0;padding:6px}@media (max-width:480px){html[lang=en] .site-nav{flex-wrap:wrap;gap:8px;height:auto;min-height:64px;padding:10px 16px}html[lang=en] .site-nav-links{gap:12px;font-size:12px}.site-nav-links{gap:10px}}@media (max-width:640px){.site-nav{flex-wrap:wrap;gap:4px;height:auto;min-height:64px;padding:8px 14px}.site-brand{flex:1 0 100%}.site-nav-links{flex-wrap:wrap;justify-content:space-between;gap:4px;width:100%;font-size:12px}.site-nav-links a{padding:8px 2px}.site-language .language-switch{padding-inline:2px}}body:has(.game-root){flex-direction:column;height:100dvh;display:flex;overflow:hidden}body:has(.game-root) .site-nav{flex-shrink:0}.snake-stats,.popup-actions{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.snake-stat{background:var(--ui-surface);min-height:28px;color:var(--ui-text-secondary);font:inherit;white-space:nowrap;border:1px solid #0000;border-radius:9px;align-items:center;gap:3px;padding:4px 6px;font-size:11px;line-height:1.3;text-decoration:none;display:inline-flex}button.snake-stat,a.snake-stat{cursor:pointer}button.snake-stat:hover,a.snake-stat:hover,button.snake-stat:focus-visible,a.snake-stat:focus-visible{border-color:var(--ui-border-strong);background:var(--ui-surface-hover);text-decoration:none}.snake-stat[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent-text)}.snake-stat-like{color:var(--ui-accent)}.snake-stat:disabled,.snake-stat-inactive{opacity:.5;cursor:default}.snake-stat-static{color:var(--ui-text-muted);background:0 0;padding-inline:3px}.snake-stat-icon{flex:none;width:14px;height:14px;display:inline-flex}.snake-stat-icon svg{width:100%;height:100%;display:block}.snake-stat-copy{align-items:center;min-height:16px;line-height:16px;display:inline-flex}.snake-stat-message{color:var(--ui-accent-text);font-size:12px}body:has(.game-root) #content{flex-direction:column;flex:1;min-height:0;display:flex}body:has(.game-root) .service-banner{flex-shrink:0}.game-root{flex:1;min-height:0}.game-root .app,.service-banner+.game-root .app{height:100%;min-height:0}
.home{min-height:calc(100dvh - 64px);color:var(--ui-text);background-color:var(--ui-background);background-image:linear-gradient(var(--ui-surface) 1px, transparent 1px), linear-gradient(90deg, var(--ui-surface) 1px, transparent 1px);background-size:32px 32px;flex-direction:column;display:flex}.home-hero{flex:1;grid-template-columns:minmax(0,44%) minmax(0,56%);min-height:500px;display:grid}.home-copy{z-index:1;flex-direction:column;justify-content:center;align-items:flex-start;padding:40px 0 40px clamp(48px,6.8vw,128px);display:flex;position:relative}.home-copy h1{letter-spacing:-.055em;white-space:nowrap;margin:0;font-size:clamp(49px,4.5vw,82px);font-weight:900;line-height:1.38}.home-copy h1 span{color:var(--ui-accent)}.home-description{max-width:34em;color:var(--ui-text-muted);margin:24px 0 0;font-size:clamp(16px,1.2vw,20px);font-weight:600;line-height:1.65}.home-actions{align-items:center;gap:30px;margin-top:44px;display:flex}.home-start{border:1px solid var(--ui-accent);background:var(--ui-accent);min-width:220px;color:var(--ui-on-accent);box-shadow:0 10px 24px var(--ui-accent-shadow);border-radius:14px;padding:17px 25px;font-size:19px;font-weight:800}.home-start:hover{background:var(--ui-accent-hover);border-color:var(--ui-accent-hover)}.home-start span{font-size:25px;font-weight:400;line-height:.8}.home-look{border-bottom:1px solid var(--ui-border-strong);color:var(--ui-text-secondary);white-space:nowrap;padding:8px 0;font-size:16px;font-weight:700}.home-look:hover{color:var(--ui-accent)}.home-art{min-width:0;overflow:hidden}.home-art canvas{width:100%;height:100%;display:block}.home-art canvas.home-mouse-active{cursor:none}.home-process{padding:22px clamp(36px,5vw,96px) 32px}.home-process h2{letter-spacing:.13em;text-align:center;justify-content:center;align-items:center;gap:20px;margin:0;font-size:14px;font-weight:600;display:flex}.home-process h2:before,.home-process h2:after{content:"";background:var(--ui-border-strong);width:68px;height:3px}.home-process h2:before{clip-path:polygon(0 42%,100% 0,100% 100%,0 58%)}.home-process h2:after{clip-path:polygon(0 0,100% 42%,100% 58%,0 100%)}.home-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:56px;margin:22px auto 0;padding:0;list-style:none;display:grid}.home-steps li{border:1px solid var(--ui-border);background:var(--ui-glass);min-width:0;min-height:108px;box-shadow:0 14px 30px var(--ui-shadow-soft);border-radius:16px;align-items:center;gap:22px;padding:18px 24px;display:flex;position:relative}.home-steps li:not(:last-child):after{content:"→";color:var(--ui-text-muted);font-size:24px;font-weight:400;position:absolute;top:50%;right:-34px;transform:translateY(-50%)}.home-step-icon{background:var(--ui-accent-soft);width:58px;height:58px;color:var(--ui-accent);border-radius:14px;flex:none;place-items:center;display:grid}.home-step-icon svg{width:32px;height:32px}.home-step-heading{align-items:baseline;gap:16px;display:flex}.home-step-number{color:var(--ui-accent);font-size:19px;font-weight:700}.home-step-heading h3{white-space:nowrap;margin:0;font-size:20px;font-weight:750}.home-steps p{color:var(--ui-text-muted);margin:8px 0 0;font-size:14px;line-height:1.5}@media (max-width:1100px){.home-hero{grid-template-columns:minmax(0,42%) minmax(0,58%)}.home-copy{padding-left:clamp(36px,5vw,55px)}.home-copy h1{font-size:clamp(44px,4.7vw,62px)}.home-actions{gap:18px}.home-start{min-width:180px;font-size:17px}.home-look{font-size:14px}.home-steps{gap:30px}.home-steps li{gap:14px;padding:16px}.home-steps li:not(:last-child):after{right:-23px}.home-step-icon{width:48px;height:48px}.home-step-heading{gap:8px}.home-step-heading h3{font-size:17px}.home-steps p{font-size:12px}}@media (max-width:760px){.home-hero{flex-direction:column;flex:none;min-height:0;display:flex}.home-copy{padding:48px 24px 18px}.home-copy h1{letter-spacing:-.06em;font-size:clamp(37px,9vw,62px)}.home-description{margin-top:18px;font-size:15px}.home-actions{gap:20px;margin-top:28px}.home-start{min-width:168px;padding:14px 17px;font-size:16px}.home-look{font-size:13px}.home-art{flex:none;height:clamp(300px,95vw,410px)}.home-process{padding:28px 24px 40px}.home-process h2{gap:12px;font-size:13px}.home-process h2:before,.home-process h2:after{width:28px}.home-steps{grid-template-columns:1fr;gap:28px;margin-top:20px}.home-steps li{min-height:90px;padding:16px 18px}.home-steps li:not(:last-child):after{font-size:20px;top:auto;bottom:-29px;right:50%;transform:translate(50%)rotate(90deg)}.home-step-heading h3{font-size:18px}.home-steps p{font-size:13px}}
