@font-face{font-family:GotchiPixel;src:url('assets/gotchi-pixel.ttf?v=2') format('truetype');font-display:swap}
:root{--ink:#050505;--paper:#fff;--muted:rgba(255,255,255,.56);--line:rgba(255,255,255,.23);--panel:#0b0b0b;--pixel:GotchiPixel,monospace;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ink);color:var(--paper);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;line-height:1.65;overflow-x:hidden}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}img{display:block}::selection{background:var(--paper);color:var(--ink)}:focus-visible{outline:2px solid var(--paper);outline-offset:4px}.skip{position:absolute;left:12px;top:-80px;background:var(--paper);color:var(--ink);z-index:20;padding:10px}.skip:focus{top:12px}.site-header{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.5vw,64px);border-bottom:1px solid var(--line);position:relative;z-index:5;background:var(--ink)}.identity{display:inline-flex;align-items:center;gap:13px;text-decoration:none;font-family:var(--pixel);font-size:11px;line-height:1.28;letter-spacing:.07em}.identity img{image-rendering:pixelated}.site-header nav{display:flex;gap:clamp(18px,3vw,48px);align-items:center}.site-header nav a{font-family:var(--pixel);font-size:9px;text-decoration:none;white-space:nowrap;transition:opacity .2s}.site-header nav a:hover{opacity:.55}.realm-switch{display:flex;gap:10px;align-items:center;border:1px solid var(--line);color:var(--paper);background:none;padding:10px 12px;font-family:var(--pixel);font-size:8px;white-space:nowrap}.realm-switch:hover{background:var(--paper);color:var(--ink)}.switch-icon{font:20px/0.7 monospace}.hero{min-height:min(810px,calc(100svh - 86px));position:relative;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);align-items:center;gap:3vw;padding:80px clamp(24px,7vw,136px) 70px;overflow:hidden}.hero-grid{position:absolute;inset:0;pointer-events:none;opacity:.075;background-image:url('assets/grid.svg');background-size:32px 32px}.hero-copy,.hero-display{position:relative;z-index:1}.eyebrow{font-family:var(--pixel);font-size:10px;line-height:1.8;letter-spacing:.1em}.live-pixel{display:inline-block;width:8px;height:8px;background:var(--paper);margin-right:7px;animation:flicker 3s steps(1) infinite}.wordmark{width:min(100%,600px);height:auto;image-rendering:pixelated;margin:27px 0 39px}.hero-line{font-family:var(--pixel);font-size:clamp(20px,2.55vw,38px);line-height:1.38;letter-spacing:-.03em;margin:0 0 24px}.hero-description{max-width:480px;margin:0 0 38px;font-size:17px;line-height:1.65;color:var(--muted)}.hero-actions{display:flex;flex-wrap:wrap;gap:12px}.button{min-height:53px;padding:15px 17px;display:inline-flex;justify-content:space-between;align-items:center;gap:25px;text-decoration:none;font-family:var(--pixel);font-size:10px;line-height:1.35;border:1px solid var(--paper);transition:transform .18s,background .18s,color .18s}.button:hover{transform:translateY(-3px)}.button-primary{background:var(--paper);color:var(--ink)}.button-primary:hover{background:var(--ink);color:var(--paper)}.button-quiet{background:var(--ink);color:var(--paper)}.button-quiet:hover{background:var(--paper);color:var(--ink)}.micro-note{font-family:var(--pixel);font-size:8px;color:var(--muted);line-height:1.9;margin:34px 0 0;max-width:500px}.hero-display{aspect-ratio:1;max-width:570px;width:100%;margin-left:auto;border:1px solid var(--line);background:#000;display:flex;flex-direction:column;box-shadow:16px 16px 0 -1px var(--ink),16px 16px 0 0 var(--line)}.display-corner{position:absolute;width:14px;height:14px;border-color:var(--paper);border-style:solid}.top-left{top:-1px;left:-1px;border-width:2px 0 0 2px}.top-right{top:-1px;right:-1px;border-width:2px 2px 0 0}.bottom-left{bottom:-1px;left:-1px;border-width:0 0 2px 2px}.bottom-right{bottom:-1px;right:-1px;border-width:0 2px 2px 0}.display-topline,.display-bottomline{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:17px 22px;font-family:var(--pixel);font-size:8px;letter-spacing:.06em}.display-bottomline{color:var(--muted)}.blink-dot{animation:flicker 2s steps(1) infinite}.shadow-stage{border:0;background:#000;color:#fff;display:grid;place-items:center;touch-action:manipulation;width:100%;padding:0;overflow:hidden}.shadow-stage svg{display:block;width:100%;height:100%;image-rendering:pixelated;shape-rendering:crispEdges}.hero-stage{flex:1;min-height:0}.ghost-facing{transform-box:view-box;transform-origin:center}.facing-left .ghost-facing{transform:scaleX(-1)}.solid-form{transition:opacity .34s steps(5)}.spirit-only .solid-form{opacity:0}.hero-index{position:absolute;bottom:28px;left:clamp(24px,7vw,136px);font-family:var(--pixel);font-size:9px;color:var(--muted)}.signal-strip{border-top:1px solid var(--paper);border-bottom:1px solid var(--paper);overflow:hidden;white-space:nowrap;height:50px;display:flex;align-items:center;font-family:var(--pixel);font-size:10px}.strip-track{animation:marquee 24s linear infinite;min-width:max-content}.section-shell{padding:clamp(86px,10vw,158px) clamp(24px,7vw,136px);border-bottom:1px solid var(--line)}.section-heading h2,.outro h2{font-family:var(--pixel);font-weight:400;font-size:clamp(26px,4.3vw,64px);line-height:1.42;letter-spacing:-.05em;margin:18px 0 0}.section-heading h2 em,.outro h2 em{font-style:normal;background:var(--paper);color:var(--ink);padding:0 .12em}.story-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(40px,8vw,135px);margin-top:76px;align-items:center}.story-symbol{min-height:430px;border:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:34px;background:#000;position:relative}.story-symbol:before,.story-symbol:after{content:'';position:absolute;width:8px;height:8px;background:var(--paper)}.story-symbol:before{top:25px;left:25px}.story-symbol:after{bottom:25px;right:25px}.story-symbol img{width:min(58%,290px);image-rendering:pixelated}.story-symbol span{font-family:var(--pixel);font-size:9px;color:var(--muted)}.story-copy{max-width:630px}.story-copy p{color:var(--muted);font-size:17px;line-height:1.7}.story-copy .lead{font-size:clamp(21px,2.35vw,32px);color:var(--paper);line-height:1.45;margin-top:0}.story-signoff{margin-top:36px;padding-top:20px;border-top:1px solid var(--line);font:10px var(--pixel)}.square-pixel{display:inline-block;width:10px;height:10px;background:var(--paper);margin-right:9px}.story-steps{display:grid;grid-template-columns:repeat(3,1fr);margin-top:80px;border-top:1px solid var(--line)}.story-steps>div{padding:25px 26px 0 0;display:grid;gap:10px}.story-steps>div+div{border-left:1px solid var(--line);padding-left:26px}.story-steps b{font:12px var(--pixel);color:var(--muted)}.story-steps span{font:11px var(--pixel)}.story-steps p{margin:0;color:var(--muted);font-size:14px}.arcade{background:var(--panel)}.arcade-heading{display:flex;justify-content:space-between;gap:45px;align-items:end}.arcade-heading>p{max-width:410px;color:var(--muted);font-size:16px;margin:0 0 6px}.arcade-shell{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(340px,.96fr);border:1px solid var(--paper);margin-top:65px;background:var(--ink)}.arcade-stage-wrap{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.arcade-stage-top{display:flex;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid var(--line);font:9px var(--pixel)}.arcade-stage{aspect-ratio:1.05;min-height:360px}.stage-controls{display:flex;border-top:1px solid var(--line)}.stage-controls button{flex:1;background:transparent;border:0;color:var(--paper);font:9px var(--pixel);padding:19px 5px}.stage-controls button+button{border-left:1px solid var(--line)}.stage-controls button:hover{background:var(--paper);color:var(--ink)}.arcade-inspector{padding:clamp(24px,3.5vw,54px);display:flex;flex-direction:column}.inspector-heading h3{font:clamp(18px,2vw,28px)/1.5 var(--pixel);margin:16px 0 8px}.inspector-heading p{color:var(--muted);margin:0 0 28px}.trait-list{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-left:1px solid var(--line)}.trait-list>div{padding:11px 14px;min-height:64px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.trait-list small{display:block;font:8px var(--pixel);color:var(--muted);margin-bottom:6px}.trait-list strong{font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.summon-panel{margin-top:auto;padding-top:35px}.summon-panel label{display:block;font:9px var(--pixel);margin-bottom:12px}.seed-form{display:flex;border:1px solid var(--line)}.seed-form input{flex:1;width:0;border:0;outline:0;background:transparent;color:var(--paper);padding:14px;font:11px var(--pixel)}.seed-form input::placeholder{color:var(--muted)}.seed-form button{border:0;border-left:1px solid var(--line);color:var(--paper);background:none;padding:0 14px;font:9px var(--pixel)}.seed-form button:hover{background:var(--paper);color:var(--ink)}.summon-panel p{font-size:12px;color:var(--muted);margin:10px 0 22px}.summon-button{width:100%;font-size:10px}.gallery-heading{display:flex;justify-content:space-between;gap:12px;font:9px var(--pixel);margin:38px 0 16px}.shadow-gallery{display:grid;grid-template-columns:repeat(9,1fr);gap:8px}.gallery-card{border:1px solid var(--line);background:#000;padding:5px;color:#fff;text-align:left;min-width:0;transition:transform .15s,border-color .15s}.gallery-card:hover{transform:translateY(-4px);border-color:#fff}.gallery-card[aria-pressed=true]{border-color:#fff;box-shadow:inset 0 0 0 1px #fff}.gallery-card img{width:100%;aspect-ratio:1;image-rendering:pixelated}.gallery-card span{display:block;font:8px var(--pixel);padding:8px 2px 4px}.archive-note{font-size:12px;color:var(--muted);margin:20px 0 0}.anatomy-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:10%;align-items:start;margin-top:68px}.anatomy-copy{max-width:560px;color:var(--muted);font-size:17px}.anatomy-copy p:first-child{margin-top:0}.anatomy-copy strong{color:var(--paper)}.anatomy-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-left:1px solid var(--line)}.anatomy-stats>div{padding:25px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:14px}.anatomy-stats strong{font:clamp(30px,4vw,58px)/1.2 var(--pixel)}.anatomy-stats span{font:9px var(--pixel);color:var(--muted)}.pixel-lab{background:var(--panel)}.lab-layout{display:grid;grid-template-columns:1fr 1fr;gap:10%;align-items:center;margin-top:60px}.lab-copy{max-width:440px}.lab-copy>p:first-child{font-size:21px;line-height:1.5}.lab-actions{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 18px}.lab-actions button{border:1px solid var(--paper);background:transparent;color:var(--paper);padding:13px;font:9px var(--pixel)}.lab-actions button:hover{background:var(--paper);color:var(--ink)}.lab-status{font-size:13px;color:var(--muted)}.pixel-board{width:min(100%,460px);aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);border:1px solid var(--paper);background:#000;touch-action:manipulation}.pixel-board button{border:1px solid rgba(255,255,255,.16);background:#000;padding:0;aspect-ratio:1}.pixel-board button[aria-pressed=true]{background:#fff}.pixel-board button:hover{outline:1px solid white;outline-offset:-2px}.outro{text-align:center;padding-top:120px;padding-bottom:140px}.outro img{width:80px;margin:0 auto 35px;image-rendering:pixelated}.outro h2{margin:17px 0 45px}.site-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;padding:28px clamp(24px,7vw,136px);font:8px var(--pixel)}.site-footer span:not(.identity span){color:var(--muted)}@keyframes marquee{to{transform:translateX(-50%)}}@keyframes flicker{0%,90%,100%{opacity:1}91%,96%{opacity:0}}
body.light{--ink:#fff;--paper:#050505;--muted:rgba(0,0,0,.58);--line:rgba(0,0,0,.28);--panel:#f2f2f2;color-scheme:light}body.light .identity img,body.light .wordmark,body.light .story-symbol img,body.light .outro img{filter:invert(1)}body.light .shadow-stage,body.light .story-symbol,body.light .gallery-card,body.light .pixel-board{background:#fff}body.light .shadow-stage svg,body.light .gallery-card img{filter:invert(1)}body.light .gallery-card{color:#050505}body.light .hero-display{background:#fff}body.light .pixel-board button{background:#fff;border-color:rgba(0,0,0,.16)}body.light .pixel-board button[aria-pressed=true]{background:#050505}body.light .pixel-board button:hover{outline-color:#050505}
@media(max-width:1100px){.hero{grid-template-columns:1fr .9fr;padding-left:5vw;padding-right:5vw}.shadow-gallery{grid-template-columns:repeat(6,1fr)}.arcade-shell{grid-template-columns:1fr 1fr}.arcade-inspector{padding:24px}.site-header nav{gap:16px}}@media(max-width:820px){.site-header{height:72px}.site-header nav{display:none}.hero{grid-template-columns:1fr;gap:45px;padding:72px 24px 86px;min-height:0}.hero-display{margin:0 auto;width:min(100%,600px)}.wordmark{max-width:520px}.hero-index{left:24px;bottom:28px}.section-shell{padding:84px 24px}.story-grid,.arcade-shell,.anatomy-layout,.lab-layout{grid-template-columns:1fr}.story-grid{gap:34px}.story-symbol{min-height:340px}.arcade-heading{display:block}.arcade-heading>p{margin-top:30px}.arcade-stage-wrap{border-right:0;border-bottom:1px solid var(--line)}.arcade-inspector{padding:32px}.shadow-gallery{grid-template-columns:repeat(6,1fr)}.lab-layout{gap:28px}.pixel-board{margin:auto}.site-footer{padding:28px 24px}}@media(max-width:560px){.site-header{padding:0 16px}.identity{font-size:8px;gap:8px}.identity img{width:27px;height:27px}.realm-switch{font-size:7px;padding:8px}.hero{padding:64px 18px 78px}.hero-line{font-size:22px}.hero-description{font-size:15px}.hero-actions{display:grid}.button{font-size:9px}.hero-display{box-shadow:8px 8px 0 -1px var(--ink),8px 8px 0 0 var(--line)}.display-topline,.display-bottomline{font-size:7px;padding:12px}.micro-note{font-size:7px}.section-shell{padding:70px 18px}.section-heading h2,.outro h2{font-size:27px}.story-grid{margin-top:40px}.story-symbol{min-height:280px}.story-steps{grid-template-columns:1fr;margin-top:50px}.story-steps>div,.story-steps>div+div{border:0;border-bottom:1px solid var(--line);padding:17px 0}.arcade-shell{margin-top:38px}.arcade-stage{min-height:0}.stage-controls button{font-size:8px;padding:15px 2px}.arcade-inspector{padding:20px}.trait-list>div{padding:10px;min-height:58px}.shadow-gallery{grid-template-columns:repeat(4,1fr);gap:5px}.gallery-card span{font-size:7px}.gallery-heading{font-size:8px}.anatomy-layout{margin-top:40px}.anatomy-stats strong{font-size:35px}.lab-layout{margin-top:40px}.site-footer{display:grid}.outro{padding-top:90px;padding-bottom:95px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.strip-track,.live-pixel,.blink-dot{animation:none}.solid-form,.button,.gallery-card{transition:none}}

/* Let the pixel font use its built-in one-pixel glyph spacing. */
.identity,.eyebrow,.hero-line,.display-topline,.display-bottomline,.section-heading h2,.outro h2{letter-spacing:normal}

.header-builder{display:none}
@media(max-width:820px){.header-builder{display:inline-flex;align-items:center;border:1px solid var(--line);padding:10px 12px;text-decoration:none;font:8px var(--pixel);white-space:nowrap}.header-builder:hover,.header-builder:focus-visible{background:var(--paper);color:var(--ink)}}
@media(max-width:560px){.header-builder{padding:8px;font-size:7px}.site-header .identity img{width:34px;height:34px}}

.site-header nav .nav-preview{display:inline-flex;align-items:center;gap:5px;font-family:var(--pixel);font-size:9px;white-space:nowrap;color:var(--muted);cursor:default}
.site-header nav .nav-preview .soon{background:var(--paper);color:var(--ink);padding:3px 4px;font-size:6px;line-height:1}
@media(max-width:1100px){.site-header nav{gap:12px}.site-header nav a,.site-header nav .nav-preview{font-size:8px}}

.header-actions{display:flex;align-items:center;gap:10px}
.realm-switch{width:38px;height:38px;padding:0;justify-content:center}
.switch-icon{font-size:22px}
.menu-toggle{display:none;width:38px;height:38px;padding:9px;border:1px solid var(--line);background:transparent;color:var(--paper);align-items:center;justify-content:center;flex-direction:column;gap:4px}
.menu-toggle span{display:block;width:18px;height:2px;background:var(--paper)}

.lab-layout{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:clamp(30px,5vw,80px)}
.wizard-editor{min-width:0}
.wizard-draw-area{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:start}
.wizard-tools{display:flex;flex-direction:column;width:48px;border:1px solid var(--line);background:var(--ink)}
.wizard-tools button{height:44px;min-height:44px;padding:4px;border:0;background:var(--ink);color:var(--paper);display:grid;place-items:center;cursor:pointer}
.wizard-tools svg{display:block;width:24px;height:24px;fill:currentColor;shape-rendering:crispEdges;pointer-events:none}
.wizard-tools button:hover,.wizard-tools button[aria-pressed=true]{background:var(--paper);color:var(--ink)}
.wizard-tools button:disabled{opacity:.35;cursor:default}
.pixel-board{width:100%;max-width:460px;margin:0;grid-template-columns:repeat(18,minmax(0,1fr));grid-template-rows:repeat(18,minmax(0,1fr));touch-action:none;user-select:none}
.pixel-board button{min-width:0;min-height:0;cursor:crosshair}
.wizard-downloads{display:flex;align-items:center;gap:8px;margin:14px 0 0 60px;max-width:460px}
.wizard-downloads span{margin-right:auto;font:8px var(--pixel);white-space:nowrap}
.wizard-downloads button{border:1px solid var(--line);background:transparent;color:var(--paper);padding:10px;font:8px var(--pixel);white-space:nowrap}
.wizard-downloads button:hover{background:var(--paper);color:var(--ink)}

@media(max-width:820px){
  .header-builder{display:none}
  .menu-toggle{display:flex}
  .site-header nav{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:stretch;gap:0;padding:14px 24px 20px;border-bottom:1px solid var(--line);background:var(--ink);box-shadow:0 16px 30px #0008}
  body.menu-open .site-header nav{display:flex}
  .site-header nav a,.site-header nav .nav-preview{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:13px 0;border-bottom:1px solid var(--line);font-size:10px}
  .site-header nav .nav-preview{justify-content:flex-start;gap:12px}
  .lab-layout{grid-template-columns:1fr}
  .wizard-editor{max-width:580px}
  .pixel-board{margin:0}
}
@media(max-width:560px){
  .header-actions{gap:8px}
  .realm-switch,.menu-toggle{width:36px;height:36px}
  .site-header nav{padding:10px 18px 16px}
  .wizard-draw-area{grid-template-columns:48px minmax(0,1fr);gap:8px}
  .wizard-tools button{height:42px;min-height:42px}
  .wizard-downloads{margin-left:56px;flex-wrap:wrap}
  .wizard-downloads span{width:100%;margin-bottom:2px}
  .wizard-downloads button{flex:1}
}

/* Center the title and put the drawing instructions beside the canvas. */
.lab-heading-row{display:block}
.lab-heading-row .section-heading h2{text-align:center;margin-bottom:0}
.lab-copy{max-width:420px}
.lab-copy>p:first-child{margin:0;font:clamp(10px,1.1vw,12px)/1.7 var(--pixel);letter-spacing:normal}
.hero-description,.arcade-heading>p{font:clamp(10px,1.1vw,12px)/1.7 var(--pixel);letter-spacing:normal}
#shadow-quip{font:clamp(10px,1.1vw,12px)/1.7 var(--pixel)}
.trait-list strong{font:11px/1.5 var(--pixel)}
.story-steps p{font:11px/1.7 var(--pixel)}
.story-copy .lead{font:clamp(14px,1.6vw,19px)/1.7 var(--pixel)}
.site-header .identity span{white-space:nowrap}
.site-header .identity,.site-footer .identity{font-size:14px}
@media(max-width:560px){.site-header .identity{font-size:11px}}
.site-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.site-footer>span:first-child{justify-self:start}
.site-footer .identity{justify-self:center}
.site-footer>span:last-child{justify-self:end}
@media(max-width:700px){.site-footer{grid-template-columns:1fr;text-align:center}.site-footer>span:first-child,.site-footer>span:last-child{justify-self:center}}
.summon-button{justify-content:center;position:relative}
.summon-button span{position:absolute;right:17px}
.gallery-heading{align-items:center}
.gallery-heading button{border:1px solid var(--paper);background:transparent;color:var(--paper);padding:13px;font:9px var(--pixel)}
.gallery-heading button:hover{background:var(--paper);color:var(--ink)}
.gallery-card svg{display:block;width:100%;aspect-ratio:1;image-rendering:pixelated;shape-rendering:crispEdges}
body.light .gallery-card svg{filter:invert(1)}
.lab-copy .lab-actions{margin:22px 0 12px}
.lab-copy .lab-status{margin:0;font:10px/1.7 var(--pixel)}
.lab-copy .lab-status:empty{display:none}
.lab-layout{display:grid;grid-template-columns:minmax(48px,1fr) minmax(0,460px) minmax(48px,1fr);align-items:center;column-gap:12px;row-gap:14px;margin-top:60px}
.wizard-editor,.wizard-draw-area{display:contents}
.wizard-tools{grid-column:1;grid-row:1;justify-self:end;align-self:start}
.pixel-board{grid-column:2;grid-row:1;align-self:start}
.wizard-downloads{grid-column:2;grid-row:2;margin:0;max-width:none}
.lab-copy{grid-column:3;grid-row:1;justify-self:start;margin-left:clamp(12px,3vw,60px)}
.outro-shadow{width:160px;height:160px;margin:0 auto 35px;display:grid;place-items:center;background:#000;overflow:hidden;pointer-events:none}

.site-header{position:sticky;top:0;z-index:50;border-bottom:0;background:transparent;transition:background-color .2s ease,backdrop-filter .2s ease}
.site-header.is-scrolled{background:rgba(0,0,0,.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#fff}
.site-header.is-scrolled .identity img{filter:none}
.site-header.is-scrolled .nav-preview{color:#aaa}
.site-header.is-scrolled .nav-preview .soon{background:#fff;color:#000}
.site-header.is-scrolled .realm-switch,.site-header.is-scrolled .menu-toggle{color:#fff;border-color:rgba(255,255,255,.28)}
.site-header.is-scrolled .realm-switch:hover{background:#fff;color:#000}
.site-header.is-scrolled .menu-toggle span{background:#fff}
body.light .site-header.is-scrolled{background:rgba(255,255,255,.85);color:#050505}
body.light .site-header.is-scrolled .identity img{filter:invert(1)}
body.light .site-header.is-scrolled .nav-preview{color:#666}
body.light .site-header.is-scrolled .nav-preview .soon{background:#050505;color:#fff}
body.light .site-header.is-scrolled .realm-switch,body.light .site-header.is-scrolled .menu-toggle{color:#050505;border-color:rgba(0,0,0,.28)}
body.light .site-header.is-scrolled .realm-switch:hover{background:#050505;color:#fff}
body.light .site-header.is-scrolled .menu-toggle span{background:#050505}
@media(max-width:820px){.site-header.is-scrolled nav{background:rgba(0,0,0,.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#fff}body.light .site-header.is-scrolled nav{background:rgba(255,255,255,.85);color:#050505}}
#lore,#shadows,#grid,.arcade-shell{scroll-margin-top:86px}
@media(max-width:820px){#lore,#shadows,#grid,.arcade-shell{scroll-margin-top:72px}}
.outro-shadow svg{display:block;width:100%;height:100%;image-rendering:pixelated;shape-rendering:crispEdges}
body.light .outro-shadow{background:#fff}
body.light .outro-shadow svg{filter:invert(1)}
@media(max-width:1100px){.lab-copy{grid-column:1/-1;grid-row:3;justify-self:center;margin-left:0;width:min(100%,460px)}}
@media(max-width:560px){.lab-layout{margin-top:40px}.outro-shadow{width:136px;height:136px}}

/* A small pixel becomes a crowd between the origin and the collection. */
.story-symbol{border:0;background:transparent}
.story-symbol:before,.story-symbol:after{content:none}
.story-symbol img{width:min(100%,400px)}
.story{border-bottom:0}
.riot-section{background:var(--ink)}
.riot-field{position:relative;height:max(820px,100svh);overflow:hidden;isolation:isolate;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:32px 32px;background-position:0 16px}
body.light .riot-field{background-image:linear-gradient(rgba(0,0,0,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.055) 1px,transparent 1px)}
.riot-spark{position:absolute;width:4px;height:4px;background:var(--paper);opacity:0;pointer-events:none;animation:riot-spark 1.9s steps(1) infinite}
.riot-field:not(.riot-started) .riot-spark{animation-play-state:paused}
.riot-field.riot-crowded .riot-spark{opacity:.2;animation-duration:3.6s}
.riot-shadow{position:absolute;top:0;left:0;z-index:1;aspect-ratio:1;border:0;padding:0;background:transparent;color:var(--paper);cursor:pointer;touch-action:manipulation;will-change:transform}
.riot-shadow svg{display:block;width:100%;height:100%;overflow:visible;image-rendering:pixelated;shape-rendering:crispEdges}
.riot-shadow:hover{z-index:2}
.riot-shadow:focus-visible{z-index:3;outline:1px solid var(--paper);outline-offset:3px}
.riot-shadow.is-forming rect{opacity:0;animation:riot-build .22s steps(1) forwards}
.riot-shadow.is-forming .riot-build-interior{display:none}
.riot-shadow.is-forming .riot-build-detail{display:none}
body.light .riot-shadow.is-forming .riot-build-outline{display:none}
body.light .riot-shadow.is-forming .riot-build-interior{display:block}
body.light .riot-shadow.is-forming .riot-build-detail{display:block}
.riot-shadow.was-turned{animation:riot-turn .3s steps(1)}
@keyframes riot-spark{0%,32%,55%,100%{opacity:0}18%,39%{opacity:1}}
@keyframes riot-build{0%,45%{opacity:0}22%,70%,100%{opacity:1}}
@keyframes riot-turn{0%,100%{outline:1px solid transparent;outline-offset:2px}50%{outline:1px solid var(--paper);outline-offset:5px}}
@media(max-width:700px){.riot-field{height:max(640px,85svh)}}
@media(prefers-reduced-motion:reduce){.riot-spark,.riot-shadow.is-forming rect,.riot-shadow.was-turned{animation:none}}

/* Center the ORIGINS narrative while keeping the three story steps in place. */
.story .section-heading h2{text-align:center}
.story-grid{display:flex;flex-direction:column;align-items:center;gap:clamp(32px,5vw,72px);margin-top:36px}
.story-symbol{width:100%;min-height:0}
.story-copy{width:min(100%,780px);max-width:none;text-align:center}
.story-copy .lead{margin:0 auto}
.story-signoff{width:min(100%,460px);margin:36px auto 0;padding-top:20px;text-align:center}

.footer-credit{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.footer-pixel{display:block;width:7px;height:7px;flex:none;background:var(--paper)}
.back-to-top{position:fixed;right:clamp(16px,2.5vw,36px);bottom:clamp(16px,2.5vw,36px);z-index:45;width:32px;height:32px;display:grid;place-items:center;background:var(--paper);color:var(--ink);border:1px solid var(--ink);font:14px/1 var(--pixel);text-decoration:none;transition:transform .18s ease}
.back-to-top:hover{transform:translateY(-3px)}

/* In the light realm the Shadow's enclosed space becomes its silhouette. */
body.light .shadow-stage svg,body.light .gallery-card svg,body.light .gallery-card img,body.light .outro-shadow svg,body.light .riot-shadow svg{filter:none}
body.light .shadow-stage svg>rect:first-child,body.light .gallery-card svg>rect:first-child,body.light .outro-shadow svg>rect:first-child{fill:#fff}
/* White outline pixels must be absent in light mode: they become visible when Shadows overlap. */
body.light .shadow-stage:not(.frame-dark) .motion-frame>:is(.light-outer-frame,.light-removed-head-pixel),.shadow-stage.frame-light .motion-frame>:is(.light-outer-frame,.light-removed-head-pixel),body.light .gallery-card .motion-frame>:is(.light-outer-frame,.light-removed-head-pixel),body.light .outro-shadow .motion-frame>:is(.light-outer-frame,.light-removed-head-pixel),body.light .riot-shadow .motion-frame>:is(.light-outer-frame,.light-removed-head-pixel){display:none}
body.light .shadow-stage:not(.frame-dark) .light-removed-expression-pixel,.shadow-stage.frame-light .light-removed-expression-pixel,body.light .gallery-card .light-removed-expression-pixel,body.light .outro-shadow .light-removed-expression-pixel,body.light .riot-shadow .light-removed-expression-pixel{display:none}
.light-shinobi-inset{display:none}
body.light .shadow-stage:not(.frame-dark) .motion-frame>.light-shinobi-inset,.shadow-stage.frame-light .motion-frame>.light-shinobi-inset,body.light .gallery-card .motion-frame>.light-shinobi-inset,body.light .outro-shadow .motion-frame>.light-shinobi-inset,body.light .riot-shadow .motion-frame>.light-shinobi-inset{display:block}
.light-laser-root{display:none}
body.light .shadow-stage:not(.frame-dark) .light-laser-root,.shadow-stage.frame-light .light-laser-root,body.light .gallery-card .light-laser-root,body.light .outro-shadow .light-laser-root,body.light .riot-shadow .light-laser-root{display:block}
body.light .shadow-stage:not(.frame-dark) .light-laser-outgoing,.shadow-stage.frame-light .light-laser-outgoing,body.light .gallery-card .light-laser-outgoing,body.light .outro-shadow .light-laser-outgoing,body.light .riot-shadow .light-laser-outgoing{fill:#000}
.light-double-beam{display:none}
body.light .shadow-stage:not(.frame-dark) .light-double-beam,.shadow-stage.frame-light .light-double-beam,body.light .gallery-card .light-double-beam,body.light .outro-shadow .light-double-beam,body.light .riot-shadow .light-double-beam{display:block}
body.light .shadow-stage:not(.frame-dark) .light-double-laser :is(.light-laser-outgoing,.light-double-source-pixel),.shadow-stage.frame-light .light-double-laser :is(.light-laser-outgoing,.light-double-source-pixel),body.light .gallery-card .light-double-laser :is(.light-laser-outgoing,.light-double-source-pixel),body.light .outro-shadow .light-double-laser :is(.light-laser-outgoing,.light-double-source-pixel),body.light .riot-shadow .light-double-laser :is(.light-laser-outgoing,.light-double-source-pixel){display:none}
body.light .spirit-only .expression rect,body.light .spirit-only .laser-static rect,body.light .spirit-only .laser-active rect{fill:#000}
.shadow-stage.frame-light{background:#fff}
.shadow-stage.frame-light svg>rect:first-child{fill:#fff}
.shadow-stage.frame-light .spirit-only .expression rect,.shadow-stage.frame-light .spirit-only .laser-static rect,.shadow-stage.frame-light .spirit-only .laser-active rect{fill:#000}
body.light .shadow-stage.frame-dark{background:#000}
body.light .shadow-stage.frame-dark svg>rect:first-child{fill:#000}
body.light .shadow-stage.frame-dark .spirit-only .expression rect,body.light .shadow-stage.frame-dark .spirit-only .laser-static rect,body.light .shadow-stage.frame-dark .spirit-only .laser-active rect{fill:#fff}

.faq-list{max-width:900px;margin:clamp(42px,6vw,90px) auto 0;border-top:1px solid var(--line)}
.faq .section-heading h2{text-align:center}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 0;cursor:pointer;font:clamp(12px,1.25vw,16px)/1.6 var(--pixel)}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary:hover{color:var(--muted)}
.faq-toggle{display:block;width:10px;height:10px;flex:none;background:var(--paper)}
.faq-list p{max-width:670px;margin:0;padding:0 42px 28px 0;color:var(--paper);font:11px/1.85 var(--pixel)}
@media(max-width:560px){.faq-list summary{padding:22px 0;font-size:11px}.faq-list p{font-size:9px;padding-right:0}}

body.light{--panel:#fff}
body.light .site-header .identity img,body.light .site-header.is-scrolled .identity img{filter:none}
.identity-mark-light{display:none}
body.light .identity-mark-dark{display:none}
body.light .identity-mark-light{display:block}
.story{padding-bottom:clamp(30px,4vw,64px)}
.riot-heading{padding:clamp(30px,4vw,64px) 24px 48px;text-align:center}
.riot-heading h2{margin:0}
@media(max-width:560px){.riot-heading{padding:36px 18px 30px}}

/* Collection links share the existing pixel-font FAQ layout and theme. */
.faq-collections{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 28px;margin:0;padding:0 0 28px;font:11px/1.85 var(--pixel)}
.faq-collections li{min-width:0}.faq-collections a{text-underline-offset:4px;overflow-wrap:anywhere}.faq-collections a:hover{color:var(--muted)}
.outro-shadow{position:relative}
@media(max-width:560px){.faq-collections{grid-template-columns:1fr;font-size:9px;gap:12px}}

/* Keep the FAQ label visible below the sticky navigation when linked. */
#faq{scroll-margin-top:110px}

.button-pixel{display:inline-block;width:6px;height:6px;flex:none;background:currentColor}

.outro [data-connect-wallet]{display:inline-flex;align-items:center;justify-content:center;gap:8px}

.faq-mint-link{text-underline-offset:4px;overflow-wrap:anywhere}.faq-mint-link:hover{color:var(--muted)}

#draw-mark{display:inline-flex;align-items:center;justify-content:center;gap:8px}

.gallery-heading button{display:inline-flex;align-items:center;justify-content:center;gap:8px}

.hero-actions .hero-primary{background:var(--paper);color:var(--ink)}.hero-actions .hero-primary:hover{background:var(--ink);color:var(--paper)}
#summon-button{gap:8px}
