:root{--ink:#10110f;--paper:#eeede5;--acid:#ffcd44;--muted:#a5a79c;--line:#34372e;--pad:clamp(22px,4vw,72px);--mono:'DM Mono',monospace;--sans:Manrope,Arial,sans-serif;--serif:'Instrument Serif',Georgia,serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--ink);color:var(--paper);font-family:var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button,a,input,textarea,select{outline-offset:5px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--acid)}button{border:0}p,h1,h2,h3{margin:0}[hidden]{display:none!important}img{display:block;max-width:100%}::selection{color:var(--ink);background:var(--acid)}.skip{position:fixed;top:10px;left:10px;z-index:200;transform:translateY(-200%);background:var(--acid);color:var(--ink);padding:15px}.skip:focus{transform:none}.site-header{height:92px;position:sticky;top:0;z-index:100;display:flex;justify-content:space-between;align-items:center;padding:0 var(--pad);background:#10110ff0;backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:20px}.brand img{width:95px;height:36px;object-fit:cover}.brand span{border-left:1px solid #666b59;padding-left:20px;font:10px var(--mono);letter-spacing:.12em}.back-link{font:10px var(--mono);color:var(--muted);padding:15px}.menu-toggle{display:flex;gap:12px;align-items:center;background:none;font:11px var(--mono);text-transform:uppercase;padding:15px 0 15px 15px}.menu-toggle i{width:25px;height:1px;background:currentColor;box-shadow:0 5px currentColor}.menu-toggle[aria-expanded=true] i{transform:rotate(45deg);box-shadow:none}.menu{position:fixed;inset:0;z-index:90;background:#10110ffa;padding:130px var(--pad) 35px;display:flex;flex-direction:column;justify-content:space-between;overflow:auto}.menu-status,.menu-foot{font:10px/1.7 var(--mono);color:var(--muted)}.menu-links{display:flex;flex-direction:column;padding-block:20px}.menu-links a{font-size:clamp(35px,7vh,86px);line-height:1.05;letter-spacing:-.065em;padding:8px 0;width:fit-content}.menu-links a span{display:inline-block;width:35px;font:10px var(--mono);vertical-align:middle;letter-spacing:0}.menu-links a:hover{color:var(--acid)}.menu-open{overflow:hidden}.shell{max-width:1700px;margin:auto;padding-inline:var(--pad)}.eyebrow{font:10px/1.6 var(--mono);letter-spacing:.07em;color:var(--muted)}.hero{padding-top:45px;position:relative;overflow:hidden}.hero-top{display:flex;justify-content:space-between;gap:20px}.hero-top .eyebrow:first-child{color:var(--acid)}.project-intro{display:flex;align-items:end;justify-content:space-between;gap:40px;padding:70px 0 60px}.project-intro h1{font-size:clamp(62px,8.5vw,140px);font-weight:500;line-height:.95;letter-spacing:-.075em}.project-intro h1 em{font:italic 400 1.08em/.9 var(--serif);letter-spacing:-.035em;color:var(--acid)}.project-intro>p{color:var(--muted);max-width:300px;font-size:14px;line-height:1.7;margin-bottom:8px}.project-tools{border-top:1px solid var(--line);padding:25px 0;display:flex;align-items:center;gap:10px}.filter{border:1px solid #494e3e;border-radius:30px;background:transparent;padding:10px 20px;font:10px var(--mono);min-height:42px}.filter[aria-pressed=true]{background:var(--paper);color:var(--ink);border-color:var(--paper)}.project-count{margin-left:auto;font:9px var(--mono);color:var(--muted)}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;padding-bottom:90px}.project-card{min-width:0}.project-card.featured{grid-column:1/-1}.project-art{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;background:#23251e;border:1px solid #44473b;border-radius:12px;padding:27px;min-height:330px;isolation:isolate}.project-art::before{content:'';position:absolute;inset:-80%;background:conic-gradient(from 120deg,transparent,#ffcd4414,transparent,#8487ff20,transparent);animation:orbit 30s linear infinite;z-index:-1}.project-art .art-top{display:flex;justify-content:space-between;font:9px var(--mono);color:#d5d4ca}.icon-composition{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;padding:35px 3vw 5px}.icon-intro>img{width:90px;border-radius:22px;box-shadow:0 10px 50px #0003;margin-bottom:25px}.icon-intro>h2{font-size:clamp(40px,4.2vw,68px);font-weight:500;line-height:1.03;letter-spacing:-.06em}.icon-intro>p{font-size:14px;line-height:1.7;color:#b7b8ae;max-width:310px;margin-top:20px}.app-shot{border:1px solid #65645d;border-radius:9px;box-shadow:0 30px 70px #0007;transform:perspective(1000px) rotateY(-6deg) rotateZ(3deg);transition:transform .7s}.project-card:hover .app-shot{transform:perspective(1000px) rotateY(0deg) rotateZ(0deg)}.art-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:30px;font:9px var(--mono);color:#b4b6a7}.art-bottom>b{font-size:35px;font-weight:400}.project-meta{display:flex;justify-content:space-between;gap:30px;padding:22px 0;border-bottom:1px solid var(--line);align-items:center}.project-meta h2{font-size:30px;letter-spacing:-.045em;font-weight:500}.project-meta p{font-size:12px;color:var(--muted);line-height:1.65;margin-top:10px;max-width:560px}.project-meta .eyebrow{margin-bottom:9px}.circle{border:1px solid #67705a;border-radius:50%;display:grid;place-items:center;width:42px;height:42px;flex:none}.project-card:hover .circle{background:var(--acid);color:var(--ink)}.generic-art{display:grid;place-items:center;min-height:370px}.generic-art>h2{font:italic 65px/1 var(--serif);max-width:90%;word-break:break-word}.generic-art>img{width:100%;height:300px;object-fit:contain}.empty{border:1px solid var(--line);border-radius:10px;padding:60px 25px;grid-column:1/-1;color:var(--muted)}.footer{padding:35px var(--pad);border-top:1px solid var(--line);display:flex;gap:30px;align-items:center;justify-content:space-between;font:10px var(--mono);color:var(--muted)}.footer>a:hover{color:var(--acid)}.footer small{font-size:8px}.project-back{display:inline-flex;padding-block:28px;font:10px var(--mono);color:var(--muted)}.detail-hero{padding:25px 0 60px;display:grid;grid-template-columns:1.12fr 1fr;gap:5vw;align-items:center}.detail-title{font-size:clamp(60px,7.8vw,125px);letter-spacing:-.075em;line-height:.95;font-weight:500;margin-top:25px}.detail-title em{font:italic 400 1.05em/.9 var(--serif);color:var(--acid)}.detail-lede{font-size:17px;line-height:1.7;color:var(--muted);max-width:520px;margin-top:25px}.detail-actions{display:flex;align-items:center;gap:25px;margin-top:35px;flex-wrap:wrap}.button{display:inline-flex;justify-content:space-between;align-items:center;gap:35px;min-height:48px;padding:15px 23px;background:var(--acid);color:var(--ink);font:11px var(--mono);border-radius:35px}.text-link{font:11px/1.7 var(--mono);border-bottom:1px solid #626953;padding-block:8px}.icon-lab{position:relative;background:radial-gradient(ellipse at 60% 25%,#727af444,transparent 68%),#202222;min-height:460px;border:1px solid #505448;border-radius:12px;display:grid;align-content:center;justify-items:center;padding:32px;overflow:hidden}.keeper-icon{width:150px;filter:drop-shadow(0 25px 40px #0007);animation:levitate 5s ease-in-out infinite}.icon-swatches{display:flex;gap:12px;margin-top:45px}.icon-swatches button{position:relative;width:47px;height:47px;border-radius:12px;background:var(--swatch);transition:transform .3s}.icon-swatches button[aria-pressed=true]{outline:1px solid var(--paper);outline-offset:5px;transform:translateY(-5px)}.icon-lab .eyebrow{position:absolute;top:25px;left:25px}.lab-feedback{font:10px var(--mono);margin-top:27px;color:#c4c8bd}.lab-ring{border:1px solid #869b4e22;position:absolute;width:370px;height:370px;border-radius:50%;pointer-events:none;animation:orbit 32s linear infinite}.lab-ring::before{content:'';position:absolute;top:40px;left:38px;width:10px;height:10px;background:var(--acid);border-radius:50%;box-shadow:0 0 25px #ffcd4477}.project-facts{display:flex;justify-content:space-between;gap:25px;border-block:1px solid var(--line);padding-block:25px;font:10px/1.7 var(--mono);color:var(--muted)}.project-facts b{display:block;font-weight:400;color:var(--paper);margin-top:6px}.project-body{max-width:900px;padding-block:75px;font-size:17px;line-height:1.8;color:#b4b7aa}.project-body h2{color:var(--paper);font-size:clamp(35px,4vw,56px);font-weight:500;line-height:1.05;letter-spacing:-.05em;margin:55px 0 20px}.project-body h2:first-child{margin-top:0}.project-body p,.project-body ul,.project-body ol{margin-bottom:24px}.project-body img{border:1px solid #4e5147;border-radius:10px;margin:35px 0}.project-body a{color:var(--paper);border-bottom:1px solid #8f9468}.project-body code{font:13px var(--mono);color:#d6dbbf}.project-body blockquote{border-left:2px solid var(--acid);padding-left:25px;margin:30px 0}.project-body figure{margin:30px 0}.project-body figcaption{font:9px/1.7 var(--mono);color:#9c9f91}.next-projects{border-top:1px solid var(--line);padding-block:50px;display:flex;justify-content:space-between;align-items:center;gap:30px}.next-projects h2{font-size:38px;font-weight:500;letter-spacing:-.05em}.manage-intro{padding:50px 0 35px;max-width:780px}.manage-intro h1{font-size:clamp(45px,6vw,80px);font-weight:500;letter-spacing:-.065em;margin:20px 0}.manage-intro p{color:var(--muted);line-height:1.7;font-size:14px}.gate{padding:35px;border:1px solid var(--line);border-radius:12px;margin-bottom:70px;max-width:700px}.gate p{margin-bottom:25px;line-height:1.7;color:var(--muted)}.manager{display:grid;grid-template-columns:270px minmax(0,1fr);gap:40px;padding-bottom:80px}.project-list{display:flex;flex-direction:column;gap:10px}.project-list>button{background:none;text-align:left;border:1px solid var(--line);padding:18px;border-radius:8px;line-height:1.6}.project-list>button[aria-current=true]{border-color:var(--acid)}.project-list small{display:block;font:9px var(--mono);color:var(--muted);margin-top:5px}.editor{max-width:850px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:block;margin-bottom:24px}.field>span{display:block;font:9px var(--mono);letter-spacing:.07em;color:var(--muted);margin-bottom:12px}.field input,.field textarea,.field select{width:100%;padding:15px;background:#1d2019;border:1px solid #434938;color:var(--paper);border-radius:6px;font-size:15px}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--acid)}.field textarea{resize:vertical;line-height:1.7}.field small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:8px}.editor-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:25px}.button-secondary{border:1px solid #666f51;background:transparent;color:var(--paper)}.editor-status{min-height:45px;font:11px/1.7 var(--mono);color:var(--acid);padding-block:15px}.cover-preview img{max-height:200px;width:auto;border-radius:8px;margin-block:15px}.danger{color:#e5a887;background:none;padding:14px;font-size:11px}.cursor-dot,.cursor-ring{pointer-events:none;position:fixed;top:0;left:0;z-index:300;opacity:0}.cursor-dot{width:5px;height:5px;background:var(--acid);border-radius:50%}.cursor-ring{border:1px solid #ffcd4480;will-change:transform,width,height;border-radius:50%}.has-custom-pointer .cursor-dot,.has-custom-pointer .cursor-ring{opacity:1}.has-custom-pointer,.has-custom-pointer a,.has-custom-pointer button{cursor:none!important}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes levitate{50%{transform:translateY(-12px) rotate(3deg)}}@media(max-width:780px){.site-header{height:80px}.brand img{width:76px}.brand span{font-size:8px;padding-left:12px}.brand{gap:12px}.back-link{display:none}.menu{padding-top:110px}.menu-links a{font-size:36px;padding:13px 0}.hero{padding-top:28px}.hero-top .eyebrow{font-size:8px}.hero-top .eyebrow:last-child{display:none}.project-intro{display:block;padding:40px 0}.project-intro h1{font-size:65px}.project-intro>p{font-size:13px;line-height:1.7;margin-top:25px}.project-tools{gap:7px;flex-wrap:wrap;padding-block:20px}.filter{padding:10px 15px;font-size:9px}.project-count{font-size:8px}.project-grid{grid-template-columns:1fr;gap:30px;padding-bottom:55px}.project-art{padding:20px}.icon-composition{grid-template-columns:1fr;padding:30px 0 5px;gap:30px}.icon-intro>img{width:65px;margin-bottom:20px}.icon-intro>h2{font-size:39px}.icon-intro>p{font-size:12px;max-width:250px}.app-shot{transform:rotate(2deg);margin-bottom:8px}.art-top,.project-art .art-top{font-size:7px;gap:10px}.art-bottom{font-size:7px;margin-top:22px}.project-meta h2{font-size:26px}.project-meta p{font-size:12px}.generic-art{min-height:270px}.generic-art>h2{font-size:45px}.footer{display:grid;grid-template-columns:1fr 1fr;gap:23px;padding-block:30px}.footer small{grid-column:1/-1}.detail-hero{grid-template-columns:1fr;gap:40px;padding-top:12px;padding-bottom:35px}.detail-title{font-size:67px}.detail-lede{font-size:14px}.detail-actions{gap:18px}.button{font-size:10px;gap:25px}.icon-lab{min-height:360px;padding:25px}.keeper-icon{width:120px}.icon-swatches{gap:10px;margin-top:30px}.icon-swatches button{width:40px;height:40px}.lab-ring{width:290px;height:290px}.project-facts{display:grid;grid-template-columns:1fr 1fr;font-size:8px;gap:20px}.project-body{padding-block:40px;font-size:14px;line-height:1.8}.project-body h2{font-size:37px;margin-top:40px}.next-projects{display:block;padding-block:35px}.next-projects h2{font-size:31px;margin-bottom:22px}.manager{display:block}.project-list{margin-bottom:30px}.fields{grid-template-columns:1fr;gap:0}.field input,.field textarea,.field select{font-size:16px}.manage-intro{padding-top:35px}.gate{padding:25px}.editor-actions{gap:12px}.menu-status{font-size:8px}}@media(max-width:360px){.brand span{display:none}.project-intro h1{font-size:57px}.project-count{width:100%;margin:10px 0 0}.detail-title{font-size:57px}.icon-swatches{gap:8px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.app-shot{transform:none}}

.story-tools{display:flex!important;gap:8px;flex-wrap:wrap;margin-bottom:10px!important}.story-tools button{background:#2b3023;border:1px solid #4a523b;border-radius:5px;padding:9px 13px;font:10px var(--mono);min-height:36px}#story-editor{min-height:300px;background:#1d2019;border:1px solid #434938;border-radius:6px;padding:20px;font:15px/1.8 var(--sans);outline-offset:4px}#story-editor h2{font-size:30px;line-height:1.1;margin:20px 0 12px}#story-editor p{margin-bottom:15px}#story-editor a{color:var(--acid);text-decoration:underline}#story-editor:focus{outline:2px solid var(--acid)}

/* ============================================================================
   WORLDS — every project page is a portal. The frame never changes (header,
   back link, layout, facts strip, footer); only the atmosphere does: colours,
   display type, texture and glow. One theme = one block of variables below.
   The list of names must match WORLDS in the router.
   ========================================================================== */
body[data-world]{--world-accent:#ffcd44;--display:var(--sans);--display-weight:500;--display-spacing:-.075em;--display-case:none;--world-air:none;--world-radius:35px;--body-ink:color-mix(in srgb,var(--paper) 72%,var(--ink))}
body[data-world=arcade]{--ink:#0b0716;--paper:#f3ecff;--muted:#a898cf;--line:#2f2452;--world-accent:#ff3df2;--display:var(--mono);--display-weight:500;--display-spacing:-.06em;--display-case:uppercase;--world-radius:0px;
  --world-air:linear-gradient(#ff3df210 1px,transparent 1px) 0 0/100% 46px,linear-gradient(90deg,#36e6ff0d 1px,transparent 1px) 0 0/46px 100%,radial-gradient(ellipse 70% 55% at 50% 0,#5a1fd640,transparent 70%)}
body[data-world=crt]{--ink:#030705;--paper:#d9ffe4;--muted:#6fa283;--line:#143524;--world-accent:#3dff7c;--display:'VT323',var(--mono);--display-weight:400;--display-spacing:.01em;--display-case:uppercase;--world-radius:0px;
  --world-air:repeating-linear-gradient(0deg,#0000004d 0 1px,transparent 1px 3px),radial-gradient(ellipse 75% 60% at 50% 45%,transparent 55%,#000000c0),radial-gradient(ellipse 80% 45% at 50% 0,#1eff6a1c,transparent 70%)}
body[data-world=lava]{--ink:#130705;--paper:#ffeedd;--muted:#c99c87;--line:#4a1f15;--world-accent:#ff5a1f;--display-weight:700;--display-spacing:-.08em;
  --world-air:radial-gradient(ellipse 90% 60% at 50% 115%,#ff3b0075,#ff7a0022 45%,transparent 72%),radial-gradient(ellipse 50% 35% at 85% 0,#7a120030,transparent 70%)}
body[data-world=paper]{--ink:#efe9da;--paper:#1c1a15;--muted:#6f6858;--line:#cdc4ae;--world-accent:#c0392b;--display:var(--serif);--display-weight:400;--display-spacing:-.03em;--world-radius:4px;
  --world-air:repeating-linear-gradient(0deg,#00000006 0 1px,transparent 1px 4px),radial-gradient(ellipse 80% 60% at 20% 0,#ffffff80,transparent 70%)}
body[data-world=forest]{--ink:#07130c;--paper:#e9f0e2;--muted:#94aa92;--line:#1f3626;--world-accent:#8fd694;--display:var(--serif);--display-weight:400;--display-spacing:-.035em;
  --world-air:radial-gradient(ellipse 70% 50% at 15% 10%,#2f7a4a38,transparent 70%),radial-gradient(ellipse 60% 50% at 95% 90%,#1d5a3a30,transparent 70%)}
body[data-world=ocean]{--ink:#04111c;--paper:#e2f1f8;--muted:#87a6b7;--line:#143247;--world-accent:#3fd0ff;--display-weight:400;--display-spacing:-.07em;
  --world-air:radial-gradient(ellipse 100% 55% at 50% 110%,#0a6a9a55,transparent 70%),linear-gradient(180deg,#0b2a4260,transparent 45%)}
body[data-world=midnight]{--ink:#070812;--paper:#e7e9f6;--muted:#8e93b4;--line:#23264b;--world-accent:#8f9bff;--display:var(--serif);--display-weight:400;--display-spacing:-.03em;
  --world-air:radial-gradient(1px 1px at 12% 22%,#fff9,transparent),radial-gradient(1px 1px at 68% 14%,#fff7,transparent),radial-gradient(1.5px 1.5px at 84% 46%,#fff8,transparent),radial-gradient(1px 1px at 34% 68%,#fff6,transparent),radial-gradient(ellipse 70% 50% at 70% 0,#3a3fa038,transparent 70%)}
body[data-world=mono]{--ink:#000;--paper:#fff;--muted:#9c9c9c;--line:#2c2c2c;--world-accent:#fff;--display:var(--mono);--display-weight:400;--display-spacing:-.07em;--display-case:uppercase;--world-radius:0px}
body[data-world]{--acid:var(--world-accent);background:var(--ink)}
body[data-world]::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--world-air)}
body[data-world] .site-header{background:color-mix(in srgb,var(--ink) 92%,transparent)}
body[data-world] .brand span{border-left-color:var(--line)}
body[data-world] .detail-title{font-family:var(--display);font-weight:var(--display-weight);letter-spacing:var(--display-spacing);text-transform:var(--display-case)}
body[data-world] .detail-title em{font-family:var(--serif);color:var(--acid)}
body[data-world] .project-body{color:var(--body-ink)}
body[data-world] .project-body h2,body[data-world] .project-body h3,body[data-world] .next-projects h2{font-family:var(--display);font-weight:var(--display-weight);text-transform:var(--display-case);color:var(--paper)}
body[data-world] .project-body a{color:var(--acid)}
body[data-world] .button{border-radius:var(--world-radius)}
body[data-world] .circle{border-color:var(--line)}
body[data-world] .project-art{border-radius:max(4px,calc(var(--world-radius) / 2));box-shadow:0 30px 90px color-mix(in srgb,var(--acid) 22%,transparent),0 0 0 1px var(--line)}
body[data-world=arcade] .detail-title,body[data-world=arcade] .play-start b{text-shadow:0 0 22px color-mix(in srgb,var(--acid) 70%,transparent),3px 3px 0 #36e6ff66}
body[data-world=arcade] .eyebrow,body[data-world=lava] .eyebrow,body[data-world=ocean] .eyebrow{color:var(--acid)}
body[data-world=paper] .brand img,body[data-world=paper] .footer img{filter:brightness(.35) saturate(1.4)}
body[data-world=paper] .menu{color:#efe9da}
body[data-world=lava] .detail-title{background:linear-gradient(180deg,#fff3e6 20%,#ff9a4a 70%,#ff4a12);-webkit-background-clip:text;background-clip:text;color:transparent}
body[data-world=mono] .project-art img{filter:grayscale(1) contrast(1.1)}
/* Stepping through: the page opens like an iris in the world's own colour.
   No fill mode: once it has opened the clip must go, or it cuts off the bottom of a long page. */
body[data-world]:not([data-world=studio]) main{animation:portal-open .95s cubic-bezier(.2,.8,.2,1)}
body[data-world]:not([data-world=studio])::after{content:'';position:fixed;left:50%;top:38%;width:12vmax;height:12vmax;margin:-6vmax 0 0 -6vmax;border-radius:50%;border:2px solid var(--acid);pointer-events:none;z-index:150;animation:portal-ring 1.1s cubic-bezier(.2,.8,.2,1) both}
@keyframes portal-open{from{clip-path:circle(0 at 50% 38vh);opacity:.4}to{clip-path:circle(160vmax at 50% 38vh);opacity:1}}
@keyframes portal-ring{from{transform:scale(.2);opacity:.9}to{transform:scale(22);opacity:0}}
@media (prefers-reduced-motion:reduce){body[data-world] main,body[data-world]::after{animation:none!important}body[data-world]::after{display:none}}

/* The game itself */
.project-play{padding-block:56px 20px;border-bottom:1px solid var(--line)}
.play-head{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:22px}
.play-stage{position:relative;aspect-ratio:16/9;max-height:78vh;width:100%;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:max(4px,calc(var(--world-radius,35px) / 2));background:radial-gradient(ellipse 60% 60% at 50% 55%,color-mix(in srgb,var(--acid) 22%,transparent),transparent 70%),color-mix(in srgb,var(--ink) 88%,#000)}
.play-start{display:grid;justify-items:center;gap:14px;padding:30px 40px;background:none;color:var(--paper)}
.play-start i{width:92px;height:92px;display:grid;place-items:center;border-radius:50%;background:var(--acid);color:var(--ink);font:normal 30px/1 var(--sans);padding-left:6px;box-shadow:0 0 0 0 color-mix(in srgb,var(--acid) 60%,transparent);animation:play-pulse 2.2s infinite;transition:transform .25s}
.play-start:hover i{transform:scale(1.08)}
.play-start b{font:var(--display-weight,500) clamp(26px,3.4vw,46px)/1 var(--display,var(--sans));letter-spacing:-.04em;text-transform:var(--display-case,none)}
.play-start small{font:10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.play-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.play-card{display:block;width:min(552px,100%);height:167px;border:0;margin-top:22px;border-radius:8px}
@keyframes play-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--acid) 55%,transparent)}70%,100%{box-shadow:0 0 0 26px transparent}}
@media (prefers-reduced-motion:reduce){.play-start i{animation:none}}
@media (max-width:700px){.project-play{padding-block:36px 10px}.play-start i{width:70px;height:70px;font-size:22px}}

/* On the shelf, each card carries its world's colour: a hint of where the door leads */
.project-card[data-world]{--card-accent:#ffcd44}
.project-card[data-world] .project-art{transition:box-shadow .4s,transform .4s cubic-bezier(.2,.8,.2,1)}
.project-card[data-world]:hover .project-art{box-shadow:0 0 0 1px var(--card-accent),0 26px 80px color-mix(in srgb,var(--card-accent) 30%,transparent);transform:translateY(-4px)}
.project-card[data-world]:hover .circle{background:var(--card-accent);border-color:transparent}
.project-card[data-world] .eyebrow::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--card-accent);margin-right:9px;box-shadow:0 0 10px var(--card-accent)}

/* Editor: choosing a world */
.world-picker{border:0;padding:0;margin:0 0 24px}
.world-picker legend,.world-picker>span{font:10px var(--mono);letter-spacing:.1em;color:var(--muted);margin-bottom:12px;display:block}
.world-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}
.world-option{position:relative;display:block;cursor:pointer}
.world-option input{position:absolute;opacity:0;inset:0}
.world-option span{display:grid;gap:8px;align-content:end;height:86px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--w-bg);color:var(--w-fg);font:600 13px/1 var(--sans);transition:transform .2s,box-shadow .2s}
.world-option span::before{content:'';width:22px;height:22px;border-radius:50%;background:var(--w-accent);box-shadow:0 0 14px var(--w-accent)}
.world-option input:checked+span{box-shadow:0 0 0 2px var(--w-accent),0 14px 30px #0006;transform:translateY(-2px)}
.world-option input:focus-visible+span{outline:2px solid var(--acid);outline-offset:3px}
.accent-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center}
.accent-row input[type=color]{width:52px;height:46px;padding:4px;border-radius:10px;border:1px solid var(--line);background:transparent;cursor:pointer}
.accent-row button{font:10px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:none;padding:10px 4px}
.accent-row button:hover{color:var(--acid)}
body[data-world]:not([data-world=studio]) .generic-art{background:radial-gradient(ellipse 80% 70% at 50% 60%,color-mix(in srgb,var(--acid) 16%,transparent),transparent 75%),color-mix(in srgb,var(--ink) 80%,var(--paper) 6%)}
body[data-world]:not([data-world=studio]) .generic-art h2{font-family:var(--display);font-weight:var(--display-weight);text-transform:var(--display-case);color:var(--paper)}
body[data-world=lava] .detail-title{padding-bottom:.14em;margin-bottom:-.14em}

/* CRT: a late-night signal. Phosphor type, scanlines, a tube that never quite holds still. */
body[data-world=crt] .detail-title{font-size:clamp(64px,10.5vw,176px);line-height:.82;text-shadow:0 0 18px color-mix(in srgb,var(--acid) 55%,transparent),0 0 2px var(--acid);color:var(--paper);animation:crt-flicker 7s 1.2s infinite}
body[data-world=crt] .eyebrow,body[data-world=crt] .project-facts b{color:var(--acid)}
body[data-world=crt] .detail-lede,body[data-world=crt] .project-body{font-family:var(--mono);letter-spacing:-.02em}
body[data-world=crt] .project-body h2,body[data-world=crt] .project-body h3,body[data-world=crt] .next-projects h2,body[data-world=crt] .play-start b,body[data-world=crt] .generic-art h2{letter-spacing:.01em;text-shadow:0 0 14px color-mix(in srgb,var(--acid) 45%,transparent)}
body[data-world=crt] .project-body h2::before{content:'> ';color:var(--acid)}
body[data-world=crt] .project-art,body[data-world=crt] .play-stage{position:relative;box-shadow:0 0 0 1px var(--line),0 0 70px color-mix(in srgb,var(--acid) 14%,transparent)}
body[data-world=crt] .project-art::after,body[data-world=crt] .play-stage:has(.play-start)::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#00000059 0 1px,transparent 1px 3px),radial-gradient(ellipse at center,transparent 50%,#000000a6)}
body[data-world=crt] .project-art img{filter:contrast(1.08) saturate(.85)}
body[data-world=crt] .play-start i{border-radius:0}
@keyframes crt-flicker{0%,91%,100%{opacity:1}92%{opacity:.72}93%{opacity:1}96%{opacity:.86}97%{opacity:1}}
@media (prefers-reduced-motion:reduce){body[data-world=crt] .detail-title{animation:none}}
/* In a world, the cover fills its frame like a window into the place */
body[data-world]:not([data-world=studio]) .generic-art:has(img){padding:0;overflow:hidden}
body[data-world]:not([data-world=studio]) .generic-art img{width:100%;height:100%;max-width:none;object-fit:cover;display:block}
/* The same on the shelf: a themed project's cover fills its card */
.project-card[data-world]:not([data-world=studio]) .generic-art:has(img){padding:0;overflow:hidden}
.project-card[data-world]:not([data-world=studio]) .generic-art img{width:100%;height:100%;max-width:none;object-fit:cover;display:block}
/* The back link used to sit underneath the fixed header (and behind the logo on phones) */
main:has(> .project-back){padding-top:58px}
.project-back{padding-block:22px 18px}
/* Themed covers keep a fixed frame whatever the picture's own shape */
body[data-world]:not([data-world=studio]) .generic-art:has(img),.project-card[data-world]:not([data-world=studio]) .generic-art:has(img){position:relative;min-height:0;aspect-ratio:1/1;max-height:74vh;width:100%}
.project-card[data-world]:not([data-world=studio]) .generic-art:has(img){aspect-ratio:4/3;max-height:none}
body[data-world]:not([data-world=studio]) .generic-art img,.project-card[data-world]:not([data-world=studio]) .generic-art img{position:absolute;inset:0}
@media (min-width:901px){.project-card.featured[data-world]:not([data-world=studio]) .generic-art:has(img){aspect-ratio:21/9}}

/* While the game downloads: a full cover until itch answers, then a small note at the top */
.play-loading{position:absolute;inset:0;z-index:2;display:grid;place-content:center;justify-items:center;gap:14px;padding:24px;text-align:center;pointer-events:none;background:color-mix(in srgb,var(--ink) 90%,#000);color:var(--paper)}
.play-loading i{width:54px;height:54px;border-radius:50%;border:2px solid color-mix(in srgb,var(--acid) 22%,transparent);border-top-color:var(--acid);animation:play-spin .9s linear infinite}
.play-loading b{font:var(--display-weight,500) clamp(24px,3vw,40px)/1 var(--display,var(--sans));letter-spacing:-.03em;text-transform:var(--display-case,none)}
.play-loading small{font:10px/1.7 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);max-width:44ch}
.play-stage[data-state=arriving] .play-loading{inset:14px auto auto 50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 28px);padding:8px 16px 8px 10px;text-align:left;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--ink) 88%,transparent);backdrop-filter:blur(8px);animation:play-note .4s both}
.play-stage[data-state=arriving] .play-loading i{flex:none;width:14px;height:14px;border-width:1.5px}
.play-stage[data-state=arriving] .play-loading b{font:500 10px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--acid);white-space:nowrap}
.play-stage[data-state=arriving] .play-loading small{max-width:none;line-height:1.4;color:var(--paper)}
.play-stage[data-state=loading],.play-stage[data-state=arriving]{box-shadow:0 0 0 1px color-mix(in srgb,var(--acid) 45%,transparent),0 0 60px color-mix(in srgb,var(--acid) 16%,transparent)}
@keyframes play-spin{to{transform:rotate(360deg)}}
@keyframes play-note{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@media (prefers-reduced-motion:reduce){.play-loading i{animation-duration:2.4s}}
@media (max-width:700px){.play-stage[data-state=arriving] .play-loading{border-radius:12px}.play-stage[data-state=arriving] .play-loading small{font-size:8.5px}}
/* Over an embedded frame the site's cursor hides: the frame draws its own */
body.pointer-in-frame .cursor-dot,body.pointer-in-frame .cursor-ring,body:has(iframe:hover) .cursor-dot,body:has(iframe:hover) .cursor-ring{opacity:0!important}

/* itch refused the game: say so, in the open, with a way forward */
.play-stage[data-state=failed] .play-loading{pointer-events:auto;gap:16px}
.play-stage[data-state=failed] .play-loading small{max-width:52ch}
.play-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px;margin-top:8px}
.play-stage[data-state=failed]{box-shadow:none}
/* Past the top of a project page the logo fades out so it never sits on the story text */
.public-brand{transition:opacity .3s,visibility .3s}
body.past-top:not(:has(.public-menu-trigger[aria-expanded=true])) .public-brand{opacity:0;visibility:hidden}

/* Phones: the fixed logo covers the top-left corner, so the page label starts below it */
@media(max-width:780px){.hero{padding-top:84px}}
/* Not-found page */
.lost-links{display:flex;flex-wrap:wrap;gap:12px;margin:44px 0 140px}
