summaryrefslogtreecommitdiff
path: root/internal/generator/templates/themes/neon.tmpl
blob: bf8bd8960cb8cfd3525e44de650d4d1da10f53fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>snonux.foo • NEON NEXUS</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');
        :root { --neon-cyan:#00f5ff; --neon-magenta:#ff00cc; --neon-yellow:#ffe700; }
        * { margin:0; padding:0; box-sizing:border-box; }
        body { font-family:'Orbitron',sans-serif; background:#0b001a; color:#e0f8ff; overflow:hidden; height:100vh; }
        #three-canvas { position:fixed; top:0; left:0; width:100%; height:100%; z-index:1; }
        .overlay { position:relative; z-index:10; height:100vh; display:flex; flex-direction:column; }
        header { padding:16px 30px; display:flex; align-items:center; justify-content:space-between;
                 background:rgba(11,0,26,0.8); backdrop-filter:blur(12px);
                 border-bottom:2px solid rgba(255,231,0,0.3); }
        .logo { display:flex; align-items:center; gap:12px; }
        #sn-logo { flex-shrink:0; }
        .logo-title h1 { font-size:2rem; font-weight:700; letter-spacing:-3px; text-shadow:0 0 25px var(--neon-cyan); }
        .logo-title .subtitle { font-size:0.68rem; opacity:0.6; letter-spacing:1px; margin-top:2px; }
        .logo-title .subtitle a { color:var(--neon-cyan); text-decoration:none; }
        .logo-title .subtitle a:hover { text-shadow:0 0 8px var(--neon-cyan); }
        .nav { gap:16px; }
        a.header-feed-link { color:var(--neon-cyan); text-shadow:0 0 8px rgba(0,245,255,0.35); }
        .transmit-btn { background:transparent; border:3px solid var(--neon-yellow); color:var(--neon-yellow);
                        padding:12px 28px; border-radius:9999px; font-weight:600; letter-spacing:1px;
                        display:flex; align-items:center; gap:10px; box-shadow:0 0 30px var(--neon-yellow);
                        transition:all 0.3s; text-decoration:none; font-family:'Orbitron',sans-serif; font-size:0.9rem; }
        .transmit-btn:hover { background:var(--neon-yellow); color:#0b001a; transform:scale(1.08); }
        .content { flex:1; padding:30px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#ffe700 #1a0033; }
        .page-nav { display:flex; justify-content:center; margin:18px 0; }
        .page-nav a { background:transparent; border:2px solid var(--neon-cyan); color:var(--neon-cyan);
                      padding:10px 28px; border-radius:9999px; font-size:0.85rem; letter-spacing:2px;
                      text-decoration:none; transition:all 0.3s; }
        .page-nav a:hover { background:var(--neon-cyan); color:#0b001a; }
        .page-nav-footer { flex-shrink:0; padding:8px 30px; display:flex; justify-content:center;
            background:rgba(11,0,26,0.8); backdrop-filter:blur(12px);
            border-top:2px solid rgba(255,231,0,0.3); }
        .post { background:rgba(20,5,45,0.9); border:2px solid transparent;
                border-image:linear-gradient(45deg,var(--neon-cyan),var(--neon-magenta)) 1;
                border-radius:24px; padding:28px; margin-bottom:28px;
                box-shadow:0 0 35px rgba(0,245,255,0.5);
                transition:all 0.4s cubic-bezier(0.23,1,0.32,1); cursor:pointer; }
        .post:hover { transform:translateY(-8px) rotate(1deg); box-shadow:0 0 50px rgba(255,231,0,0.6); }
        .post-active { border-image:none !important; border-color:var(--neon-yellow) !important;
                       background:rgba(40,20,70,0.97) !important;
                       box-shadow:0 0 0 2px var(--neon-yellow),0 0 30px rgba(255,231,0,0.7),
                                  0 0 70px rgba(255,231,0,0.35),inset 4px 0 0 var(--neon-yellow) !important;
                       transform:translateY(-6px) scale(1.012); }
        .post-header { display:flex; justify-content:space-between; margin-bottom:18px; font-size:0.95rem; }
        .post-time { font-family:monospace; color:var(--neon-yellow); text-shadow:0 0 12px var(--neon-yellow); }
        .post-text { font-size:1.1rem; line-height:1.55; }
        .post-text a { color:var(--neon-cyan); text-decoration:none; }
        .post-text a:hover { text-shadow:0 0 8px var(--neon-cyan); }
        .post-image { max-width:100%; border-radius:12px; margin-top:12px; }
        .post-audio { width:100%; margin-top:12px; }
        .nav-hints { display:flex; gap:20px; justify-content:center; align-items:center;
                     padding:6px 20px; background:rgba(11,0,26,0.7);
                     border-bottom:1px solid rgba(0,245,255,0.15);
                     font-size:0.68rem; letter-spacing:1.5px; color:rgba(224,248,255,0.5); flex-wrap:wrap; }
        .nav-hints kbd { display:inline-block; background:rgba(0,245,255,0.1);
                         border:1px solid rgba(0,245,255,0.35); border-radius:4px; padding:1px 5px;
                         color:var(--neon-cyan); font-family:monospace; font-size:0.72rem; margin:0 2px; }
        .post-modal { display:none; position:fixed; inset:0; z-index:100;
                      background:rgba(11,0,26,0.95); backdrop-filter:blur(16px);
                      overflow-y:auto; padding:40px; }
        .post-modal.active { display:block; }
        .modal-inner { max-width:800px; margin:0 auto; background:rgba(20,5,45,0.98);
                       border:2px solid transparent;
                       border-image:linear-gradient(45deg,var(--neon-yellow),var(--neon-magenta)) 1;
                       border-radius:24px; padding:40px; box-shadow:0 0 80px rgba(255,231,0,0.4); }
        .modal-close { float:right; background:none; border:none; color:var(--neon-cyan);
                       font-size:1.4rem; cursor:pointer; font-family:'Orbitron',sans-serif; }
        @media(max-width:640px) {
            .logo-title h1 { font-size:1.6rem; } #sn-logo { width:44px; height:44px; }
            .post { padding:22px; margin-bottom:22px; } .content { padding:20px; }
            header { padding:14px 20px; } .transmit-btn { padding:9px 16px; font-size:0.8rem; }
            .nav-hints { display:none; } .modal-inner { padding:24px 16px; }
        }
        .splash-overlay.splash-neon {
            background: radial-gradient(ellipse 120% 80% at 50% 35%, rgba(0,245,255,0.14) 0%, transparent 55%),
                radial-gradient(ellipse 90% 55% at 75% 85%, rgba(255,0,204,0.12) 0%, transparent 50%),
                #0b001a;
        }
        .splash-neon .splash-deco {
            width:100px; height:100px; margin:0 auto 1.25rem; border-radius:50%;
            border:3px solid var(--neon-cyan); box-shadow:0 0 36px var(--neon-cyan), inset 0 0 26px rgba(0,245,255,0.15);
            animation: splashNeonSpin 5s linear infinite;
        }
        @keyframes splashNeonSpin { to { transform: rotate(360deg); } }
        .splash-neon .splash-title {
            font-size: clamp(1.5rem, 5vw, 2.35rem);
            animation: splashNeonPulse 2s ease-in-out infinite alternate;
        }
        @keyframes splashNeonPulse {
            from { text-shadow: 0 0 12px var(--neon-cyan), 0 0 24px rgba(255,0,204,0.4); }
            to { text-shadow: 0 0 26px var(--neon-cyan), 0 0 48px var(--neon-magenta); }
        }
        .splash-neon .splash-tag { color: var(--neon-yellow); }
        .splash-neon .splash-hint { color: rgba(224,248,255,0.9); font-family: 'Orbitron', sans-serif; }
        .splash-neon .splash-inner { text-shadow: 0 2px 24px rgba(0,0,0,0.85), 0 0 40px rgba(11,0,26,0.9); }
{{template "navSharedCSSInner"}}
    </style>
</head>
<body>
    {{template "splashGate"}}
    <div id="splash-overlay" class="splash-overlay splash-neon" role="dialog" aria-modal="true" aria-label="Open microblog" tabindex="-1">
        <canvas class="splash-gl-canvas" id="splash-gl-canvas" aria-hidden="true"></canvas>
        <div class="splash-inner">
            <div class="splash-deco" aria-hidden="true"></div>
            <div class="splash-title">snonux.foo</div>
            <div class="splash-tag">Neon Nexus</div>
            <div class="splash-hint">Click or Enter &mdash; establish link</div>
        </div>
    </div>
    <script>
    (function(){
        if(document.documentElement.classList.contains('sno-splash-skip'))return;
        var cv=document.getElementById('splash-gl-canvas');
        if(!cv||typeof THREE==='undefined')return;
        var raf,ren,sc,ca,g=new THREE.Group(),t0=performance.now();
        function cleanup(){window.removeEventListener('resize',sz);if(raf)cancelAnimationFrame(raf);raf=null;if(ren){ren.dispose();}ren=null;window._snonuxSplashWebGLCleanup=null;}
        window._snonuxSplashWebGLCleanup=cleanup;
        function sz(){var w=cv.clientWidth||2,h=cv.clientHeight||2;if(ren)ren.setSize(w,h,false);if(ca){ca.aspect=w/h;ca.updateProjectionMatrix();}}
        ren=new THREE.WebGLRenderer({canvas:cv,antialias:true,alpha:true});
        ren.setClearColor(0,0);ren.setPixelRatio(Math.min(window.devicePixelRatio||1,2));
        sc=new THREE.Scene();ca=new THREE.PerspectiveCamera(52,1,0.1,100);ca.position.set(0,0.4,9);
        var cols=[0x00f5ff,0xff00cc,0xffe700],i,m;
        for(i=0;i<3;i++){m=new THREE.Mesh(new THREE.TorusGeometry(1.55+i*0.48,0.055,8,48),new THREE.MeshBasicMaterial({color:cols[i],transparent:true,opacity:0.92}));m.rotation.x=Math.PI/2;m.userData.sp=0.01+i*0.004;g.add(m);}
        g.add(new THREE.Mesh(new THREE.SphereGeometry(0.52,20,20),new THREE.MeshBasicMaterial({color:0xffe700,transparent:true,opacity:0.95})));
        sc.add(g);sz();window.addEventListener('resize',sz);
        function loop(now){raf=requestAnimationFrame(loop);var t=(now-t0)*0.001;g.rotation.y=t*0.42;g.rotation.x=Math.sin(t*0.65)*0.12;g.children.forEach(function(c){if(c.userData.sp)c.rotation.z+=c.userData.sp;});ren.render(sc,ca);}
        raf=requestAnimationFrame(loop);
    })();
    </script>
    <canvas id="three-canvas"></canvas>
    <div class="overlay">
        <header>
            <div class="logo">
                <svg id="sn-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" width="56" height="56" aria-label="snonux logo">
                  <defs>
                    <linearGradient id="sn-grad" x1="0" y1="0" x2="1" y2="1">
                      <stop offset="0%" stop-color="#ffe700"/><stop offset="100%" stop-color="#ff00cc"/>
                    </linearGradient>
                    <radialGradient id="sn-bg" cx="40%" cy="35%" r="70%">
                      <stop offset="0%" stop-color="#2d0060"/><stop offset="100%" stop-color="#0b001a"/>
                    </radialGradient>
                    <filter id="sn-gc" x="-60%" y="-60%" width="220%" height="220%">
                      <feGaussianBlur stdDeviation="2.5" result="b"/>
                      <feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
                    </filter>
                    <filter id="sn-gm" x="-60%" y="-60%" width="220%" height="220%">
                      <feGaussianBlur stdDeviation="2.5" result="b"/>
                      <feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
                    </filter>
                    <filter id="sn-gh" x="-20%" y="-20%" width="140%" height="140%">
                      <feGaussianBlur stdDeviation="3" result="b"/>
                      <feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
                    </filter>
                  </defs>
                  <polygon points="55,28 41.5,51.4 14.5,51.4 1,28 14.5,4.6 41.5,4.6"
                    fill="none" stroke="#ffe700" stroke-width="5" opacity="0.18" filter="url(#sn-gh)"/>
                  <polygon points="55,28 41.5,51.4 14.5,51.4 1,28 14.5,4.6 41.5,4.6"
                    fill="url(#sn-bg)" stroke="url(#sn-grad)" stroke-width="1.8"/>
                  <line x1="34" y1="12" x2="22" y2="44" stroke="#ffe700" stroke-width="0.9" opacity="0.75"/>
                  <rect x="32.5" y="10.5" width="3" height="3" transform="rotate(45 34 12)" fill="#ffe700" opacity="0.8"/>
                  <rect x="20.5" y="42.5" width="3" height="3" transform="rotate(45 22 44)" fill="#ffe700" opacity="0.8"/>
                  <text x="9" y="37" font-family="Orbitron,monospace" font-weight="700" font-size="20"
                    fill="#00f5ff" filter="url(#sn-gc)">S</text>
                  <text x="28" y="37" font-family="Orbitron,monospace" font-weight="700" font-size="20"
                    fill="#ff00cc" filter="url(#sn-gm)">N</text>
                </svg>
                <div class="logo-title">
                    <h1>snonux.foo</h1>
                    <p class="subtitle">microblog &mdash; <a href="https://foo.zone">foo.zone</a> is the real blog</p>
                    <p class="logo-host">Served by NetBSD on a Raspberry Pi 3</p>
                </div>
            </div>
            <div class="nav">
                <a href="atom.xml" class="header-feed-link" rel="alternate" title="Atom feed" type="application/atom+xml">Atom feed</a>
                <a href="https://foo.zone/about" class="transmit-btn">
                    <i class="fa-solid fa-feather-pointed"></i> TRANSMIT TO NEXUS
                </a>
            </div>
        </header>
        {{template "navhints" .}}
        <div class="content" id="post-content">
            {{range $i, $post := .Posts}}
            <div class="post" id="post-{{$post.ID}}" data-index="{{$i}}">
                <div class="post-header">
                    <div><strong>@snonux</strong></div>
                    <div class="post-time">{{$post.FormattedTime}}</div>
                </div>
                <div class="post-text">{{$post.ContentHTML}}</div>
            </div>
            {{end}}
        </div>
        {{if or .PrevPage .NextPage}}
        <footer class="page-nav-footer" aria-label="Pagination">
            <div class="page-nav page-nav-dual">
                {{if .PrevPage}}<a href="{{.PrevPage}}">&larr; NEWER TRANSMISSIONS</a>{{end}}
                {{if .NextPage}}<a href="{{.NextPage}}">OLDER TRANSMISSIONS &rarr;</a>{{end}}
            </div>
        </footer>
        {{end}}
    </div>
    {{template "navmodal" .}}
    <script>
        // Three.js neon nexus scene — central orb, orbiting rings, particle field.
        let scene, camera, renderer, centralSphere, rings = [], particles;
        function initThree() {
            const canvas = document.getElementById('three-canvas');
            renderer = new THREE.WebGLRenderer({ canvas, antialias:true, alpha:true });
            renderer.setSize(window.innerWidth, window.innerHeight);
            renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
            scene = new THREE.Scene();
            scene.fog = new THREE.Fog(0x0b001a, 15, 80);
            camera = new THREE.PerspectiveCamera(60, window.innerWidth/window.innerHeight, 0.1, 200);
            camera.position.set(0, 12, 35);
            scene.add(new THREE.AmbientLight(0x00f5ff, 0.8));
            const coreLight = new THREE.PointLight(0xff00cc, 4, 100);
            coreLight.position.set(0,0,0); scene.add(coreLight);
            centralSphere = new THREE.Mesh(new THREE.SphereGeometry(6,64,64),
                new THREE.MeshPhongMaterial({color:0x00f5ff,emissive:0xff00cc,emissiveIntensity:1.8,
                    shininess:100,transparent:true,opacity:0.95}));
            scene.add(centralSphere);
            scene.add(new THREE.Mesh(new THREE.SphereGeometry(4.5,64,64),
                new THREE.MeshBasicMaterial({color:0x00f5ff,transparent:true,opacity:0.4,blending:THREE.AdditiveBlending})));
            const rc=[0x00f5ff,0xff00cc,0x00f5ff,0xffe700];
            for(let i=0;i<14;i++){
                const ring=new THREE.Mesh(new THREE.TorusGeometry(12+i*2.2,0.35,32,128),
                    new THREE.MeshPhongMaterial({color:rc[i%4],emissive:rc[i%4],emissiveIntensity:2.5,
                        shininess:80,transparent:true,opacity:0.9,side:THREE.DoubleSide}));
                ring.rotation.x=Math.random()*Math.PI;
                ring.userData={speed:0.008+i*0.003,axisTilt:Math.random()*0.6};
                scene.add(ring); rings.push(ring);
            }
            const pCount=2200,pos=new Float32Array(pCount*3),col=new Float32Array(pCount*3);
            for(let i=0;i<pCount*3;i+=3){
                const r=30+Math.random()*40,t=Math.random()*Math.PI*2,p=Math.acos(2*Math.random()-1);
                pos[i]=r*Math.sin(p)*Math.cos(t);pos[i+1]=r*Math.sin(p)*Math.sin(t);pos[i+2]=r*Math.cos(p);
                const c=new THREE.Color().setHSL(Math.random()>0.5?0.55:0.8,1,1);
                col[i]=c.r;col[i+1]=c.g;col[i+2]=c.b;
            }
            const pg=new THREE.BufferGeometry();
            pg.setAttribute('position',new THREE.BufferAttribute(pos,3));
            pg.setAttribute('color',new THREE.BufferAttribute(col,3));
            particles=new THREE.Points(pg,new THREE.PointsMaterial(
                {size:0.22,vertexColors:true,transparent:true,opacity:0.9,blending:THREE.AdditiveBlending}));
            scene.add(particles);
            let mouseX=0;
            window.addEventListener('mousemove',e=>{mouseX=(e.clientX/window.innerWidth)*2-1;});
            (function animate(){
                requestAnimationFrame(animate);
                const time=Date.now()*0.0004;
                camera.position.x=Math.sin(time)*35+mouseX*6;
                camera.position.z=Math.cos(time)*35+10;
                camera.lookAt(0,4,0);
                centralSphere.rotation.y+=0.003;
                rings.forEach((ring,i)=>{
                    ring.rotation.y+=ring.userData.speed;
                    ring.rotation.x=Math.sin(time*1.5+i)*ring.userData.axisTilt;
                });
                particles.rotation.y+=window._snoNeonWild ? 0.012 : 0.0008;
                renderer.render(scene,camera);
            })();
        }
        window.addEventListener('resize',()=>{
            if(!camera||!renderer) return;
            camera.aspect=window.innerWidth/window.innerHeight;
            camera.updateProjectionMatrix();
            renderer.setSize(window.innerWidth,window.innerHeight);
        });
        window.onload=initThree;
    </script>
    <script>
    // Neon nav/wild effects — lightning flash on navigate, ring frenzy on wild
    (function() {
        function flash(color, ms) {
            var d = document.createElement('div');
            d.style.cssText = 'position:fixed;inset:0;z-index:998;pointer-events:none;background:' + color + ';transition:opacity ' + (ms||180) + 'ms';
            document.body.appendChild(d);
            setTimeout(function() { d.style.opacity = '0'; setTimeout(function() { d.remove(); }, ms || 180); }, 30);
        }
        function fxOverlay(cls, ms) {
            var ov = document.querySelector('.overlay');
            if (!ov) return;
            ov.classList.add(cls);
            setTimeout(function() { ov.classList.remove(cls); }, ms || 380);
        }
        var _wild = false;
        window.snonuxOpenEffect = function(post) {
            // Modal burst from center with lightning ring
            var modal = document.getElementById('post-modal');
            if (modal) { modal.classList.add('sno-modal-expand'); setTimeout(function() { modal.classList.remove('sno-modal-expand'); }, 420); }
            // Cyan ring pulse radiating outward
            var ring = document.createElement('div');
            var r = post ? post.getBoundingClientRect() : {left: window.innerWidth/2, top: window.innerHeight/2};
            ring.style.cssText = 'position:fixed;top:' + (r.top+20) + 'px;left:' + (r.left+20) + 'px;z-index:997;pointer-events:none;width:10px;height:10px;border-radius:50%;border:3px solid rgba(0,245,255,0.9);transition:all 0.38s ease,opacity 0.38s';
            document.body.appendChild(ring);
            setTimeout(function() { ring.style.transform='scale(35)'; ring.style.opacity='0'; setTimeout(function() { ring.remove(); }, 420); }, 15);
        };
        window.snonuxCloseEffect = function() {
            var d = document.createElement('div');
            d.style.cssText = 'position:fixed;inset:0;z-index:998;pointer-events:none;background:rgba(255,0,204,0.12);transition:opacity 0.18s';
            document.body.appendChild(d);
            setTimeout(function() { d.style.opacity='0'; setTimeout(function() { d.remove(); }, 200); }, 15);
        };
        window.snonuxNavEffect = function() {
            flash('rgba(0,245,255,0.22)', 160);
            fxOverlay('sno-fx-shake', 380);
        };
        window.snonuxPageEffect = function() {
            flash('rgba(255,231,0,0.18)', 140);
            fxOverlay('sno-fx-zoom', 320);
        };
        window.snonuxScrollEffect = function(dir) {
            var isDown = dir === 'down';
            var thick = _wild ? '14px' : '5px';
            var d = document.createElement('div');
            d.style.cssText = 'position:fixed;left:0;right:0;height:' + thick + ';z-index:9000;pointer-events:none;' +
                'background:linear-gradient(90deg,transparent,rgba(0,245,255,0.9),rgba(255,0,204,0.9),transparent);' +
                (isDown ? 'top:0;' : 'bottom:0;') +
                'transition:transform 0.3s ease,opacity 0.3s ease;';
            document.body.appendChild(d);
            setTimeout(function() { d.style.transform = isDown ? 'translateY(100vh)' : 'translateY(-100vh)'; d.style.opacity='0'; }, 16);
            setTimeout(function() { d.remove(); }, 380);
        };
        window.snonuxWildToggle = function() {
            _wild = !_wild;
            var b = document.getElementById('sno-wild-badge');
            if (b) b.classList.toggle('sno-wild-on', _wild);
            // Speed up all rings and particles when wild
            if (rings && rings.length) {
                rings.forEach(function(r, i) {
                    r.userData.speed = _wild ? (0.008 + i * 0.003) * 14 : 0.008 + i * 0.003;
                });
            }
            // Store wild state for particle rotation boost in animate loop
            window._snoNeonWild = _wild;
        };
    })();
    </script>
    {{template "navscript" .}}
</body>
</html>