/* Full-width worlds. Native scrolling and real project sprites, without wheel interception. */
:root { --header-height:76px; --nav-height:70px; --vombie-light:sepia(.16) saturate(1.12) brightness(1.04) contrast(1.06); }
html { scroll-padding-top:var(--header-height); }
body { background:#080b10; }
.scene-header.site-header { position:fixed; inset:0 0 auto; height:var(--header-height); z-index:30; display:flex; gap:28px; padding:10px 4vw; background:#080b10d9; border-bottom:1px solid #ffffff18; backdrop-filter:blur(16px); }
.scene-header .brand { width:160px; flex-shrink:0; }
.scene-header .brand img { width:160px; height:54px; object-fit:contain; }
.scene-header nav { display:flex; gap:24px; margin-left:auto; }
.scene-header nav a { font-size:11px; }
.scene-motion { min-height:40px; padding:0 12px; border:1px solid #ffffff30; border-radius:30px; background:transparent; font-size:10px; white-space:nowrap; }
#games { padding-top:var(--header-height); }
.game-chapter { --accent:#62edff; --scroll-x:0px; --scroll-y:0px; --scroll-scale:1; position:relative; height:auto; scroll-margin-top:0; }
.chapter-meatworm { --accent:#c6f467; }
.chapter-vombies { --accent:#ffb44d; --vombie-light:sepia(.16) saturate(1.12) brightness(1.04) contrast(1.06); }
.chapter-laboratory { --accent:#83ffe1; }
.chapter-jasmine { --accent:#ffd5ee; }
.chapter-stage { position:relative; height:calc(100svh - var(--header-height)); min-height:620px; width:100%; overflow:hidden; isolation:isolate; background:#070a10; }
.chapter-world { position:absolute; inset:0; z-index:0; isolation:isolate; display:block; width:100%; height:100%; min-height:0; padding:0; border:0; container-type:size; background:#070a10; overflow:hidden; }
.chapter-world::before,.chapter-world::after { content:none; }
.chapter-world .world-plate,.chapter-world:hover .world-plate { position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; transform:none; filter:none; }
.chapter-world img { transition:none; }
.chapter-shade { position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(90deg,#060914ed 0%,#060914a8 26%,#06091430 52%,transparent 72%),linear-gradient(0deg,#070a10 0%,#070a1070 14%,transparent 38%); }
.chapter-copy { position:relative; z-index:4; width:43%; max-width:650px; margin-left:7vw; padding-top:clamp(42px,7svh,100px); pointer-events:none; }
.chapter-copy a,.chapter-copy button { pointer-events:auto; }
.chapter-status { display:flex; align-items:center; gap:10px; margin-bottom:18px; font-size:9px; letter-spacing:.18em; color:#fff; }
.chapter-status>span { width:5px; height:5px; flex:none; border-radius:50%; background:var(--accent); box-shadow:0 0 12px var(--accent); }
.chapter-logo { width:clamp(340px,45vw,650px); height:clamp(160px,27svh,255px); max-width:none; object-fit:contain; object-position:left center; margin:0 0 10px -5px; filter:drop-shadow(0 4px 20px #0008); }
.chapter-meatworm .chapter-logo { width:min(40vw,600px); }
.title-reveal { width:fit-content; max-width:none; transform-origin:30% 60%; }
.is-entered .title-reveal { animation:title-arrive .85s cubic-bezier(.2,.8,.2,1) both; }
.is-entered .chapter-copy h2 { animation:title-arrive .7s .12s ease both; }
.chapter-logo { animation:title-float 7s ease-in-out infinite; animation-play-state:paused; transform-origin:35% 60%; }
.is-visible .chapter-logo { animation-play-state:running; }
.chapter-turbo-9 .chapter-logo { animation-name:title-neon; }
.chapter-vombies .chapter-logo { animation-name:title-tilt; animation-duration:8s; }
.chapter-laboratory .chapter-logo { animation-duration:6.5s; }
.chapter-jasmine .chapter-logo { animation-duration:5.5s; }
.chapter-genre { font-size:9px; letter-spacing:.16em; color:var(--accent); margin:18px 0 12px; }
.chapter-copy h2 { font-family:var(--heading); font-weight:800; font-size:clamp(30px,3.35vw,48px); line-height:.99; letter-spacing:-.015em; margin:0 0 19px; }
.chapter-description { max-width:390px; color:#d4d9df; font-size:13px; line-height:1.8; margin-bottom:24px; }
.chapter-actions { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.scene-button { display:inline-flex; align-items:center; justify-content:space-between; gap:28px; min-height:48px; padding:12px 22px; background:var(--accent,#d6f66c); color:#071013; border:1px solid transparent; font-size:12px; font-weight:700; border-radius:3px; transition:background .2s,box-shadow .2s; }
.scene-button:hover { background:white; box-shadow:0 0 24px #ffffff20; }
.scene-button span { font-size:19px; }
.scene-link { display:inline-flex; align-items:center; gap:10px; min-height:44px; background:transparent; padding:0; font-size:11px; color:#fff; border-bottom:1px solid #ffffff50; }
.scene-link:hover { color:var(--accent,#d6f66c); }
.chapter-foot { position:absolute; z-index:5; bottom:calc(var(--nav-height) + 30px); left:7vw; right:7vw; display:flex; justify-content:space-between; align-items:center; gap:20px; color:#fff; font-size:10px; letter-spacing:.12em; }
.chapter-foot>span { font-weight:700; }
.chapter-foot>span,.next-world { text-shadow:0 2px 5px #000,0 0 10px #0008; }
.chapter-foot i { color:var(--accent); margin:0 8px; font-style:normal; }
.chapter-foot b { margin-left:22px; font-weight:400; letter-spacing:0; color:#b4bdc7; }
.next-world { display:flex; align-items:center; gap:25px; font-size:10px; letter-spacing:0; padding:8px 0; }
.next-world>span { color:var(--accent); font-size:20px; }
.world-nav { position:fixed; z-index:25; bottom:18px; left:50%; transform:translateX(-50%); display:flex; max-width:calc(100% - 36px); background:#080b10ed; border:1px solid #ffffff26; border-radius:6px; backdrop-filter:blur(18px); padding:5px; box-shadow:0 6px 30px #0005; }
.world-nav a { position:relative; display:flex; align-items:center; gap:9px; padding:12px 18px; white-space:nowrap; color:#aeb6c0; font-size:10px; min-height:40px; border-radius:3px; }
.world-nav a span { font-size:8px; opacity:.55; }
.world-nav a b { font-weight:500; }
.world-nav a[aria-current] { background:#ffffff12; color:#fff; }
.world-nav a[aria-current]::after { content:''; position:absolute; left:18px; right:18px; bottom:3px; height:2px; background:var(--nav-accent,#62edff); transform-origin:left; transform:scaleX(var(--nav-progress,.05)); }
.world-nav a:hover { background:#ffffff0c; color:white; }
.scene-actor { position:absolute; z-index:1; transform:translate3d(var(--scroll-x),var(--scroll-y),0) scale(var(--scroll-scale)); will-change:transform; }
.scene-actor .actor-idle,.scene-actor>img { display:block; width:100%; max-width:none; height:auto; }
.scene-actor .sprite { width:100%; height:auto; }
.actor-entry { width:100%; }
.is-entered .actor-entry { animation:actor-arrive 1.2s cubic-bezier(.16,1,.3,1) both; }
.actor-idle { animation:actor-hover 5s ease-in-out infinite; animation-play-state:paused; }
.is-visible .actor-idle { animation-play-state:running; }
.actor-car { width:47%; left:46%; top:38%; transform-origin:80% 20%; filter:brightness(.96) contrast(1.04) saturate(1.05) drop-shadow(0 9px 5px #0103199c); }
.car-light-source { visibility:hidden; }
.actor-car .car-lit-canvas { position:absolute; inset:0; width:100%; height:100%; }
.actor-car::before,.actor-car::after,.actor-worm::after,.actor-spud::after,.actor-jasmine::before { content:''; position:absolute; pointer-events:none; z-index:-1; border-radius:50%; }
.actor-car::before { left:12%; top:84%; width:76%; height:15%; background:#020616a8; filter:blur(6px); transform:rotate(-9deg) skewX(-22deg); }
.actor-car::after { left:20%; top:92%; width:72%; height:17%; background:linear-gradient(90deg,#fa35ba55,transparent 45%,#4adcff45); filter:blur(8px); transform:rotate(-15deg) skewX(-30deg); }
.actor-car .actor-idle { animation-name:car-engine; animation-duration:.55s; }
.chapter-turbo-9 .is-entered .actor-entry { animation-name:car-arrive; animation-duration:1.65s; }
.car-wake { position:absolute; z-index:-1; left:-32%; top:88%; width:78%; height:26%; transform:rotate(-26deg); transform-origin:100% 50%; opacity:.55; pointer-events:none; }
.car-wake::before,.car-wake::after { content:''; position:absolute; left:0; right:0; height:3px; border-radius:100%; background:linear-gradient(90deg,transparent,#ff3bd5); box-shadow:0 0 10px #ff3bd580; }
.car-wake::before { top:15%; } .car-wake::after { top:75%; background:linear-gradient(90deg,transparent,#70eaff); box-shadow:0 0 9px #70eaff80; }
.speed-lines { position:absolute; left:38%; top:60%; width:55%; height:26%; opacity:.4; background:linear-gradient(162deg,transparent 40%,#ff2ac680 41%,transparent 42%,transparent 55%,#53e6ff80 56%,transparent 57%); filter:blur(5px); pointer-events:none; }
.actor-worm { width:48%; left:49%; top:26%; filter:brightness(.93) saturate(.94) contrast(1.025) drop-shadow(0 8px 8px #060a0470); }
.actor-worm::after { left:8%; top:105%; width:86%; height:9%; background:#040b08a8; filter:blur(15px); transform:skewX(-20deg); }
.worm-surface { position:relative; width:100%; }
.worm-surface img { width:100%; max-width:none; }
.worm-surface canvas { position:absolute; inset:-3% 0; width:100%; height:106%; opacity:0; }
.worm-surface.is-ready canvas { opacity:1; }
.worm-surface.is-ready img { visibility:hidden; }
.actor-clyde { width:29%; left:49%; top:33%; z-index:3; filter:var(--vombie-light) drop-shadow(-4px -2px 6px #ff68314d) drop-shadow(0 16px 16px #22050090); }
.actor-clyde .actor-idle { animation-name:clyde-dodge; animation-duration:7.4s; }
.chapter-world .sprite-clyde { background-image:url('/assets/kumancraft/scenes/clyde-lit-frames.webp'); }
.chapter-world .sprite-greenie { background-image:url('/assets/kumancraft/scenes/greenie-lit-frames.webp'); aspect-ratio:900/924; }
.actor-greenie { width:26%; left:69%; top:10%; z-index:2; filter:var(--vombie-light) brightness(.94) blur(.65px) drop-shadow(-4px -2px 6px #ff68314d) drop-shadow(0 13px 16px #24060080); }
.actor-greenie .actor-idle { animation-delay:-1.7s; animation-duration:6s; }
.actor-red { width:16%; left:82%; top:44%; filter:var(--vombie-light) brightness(.9) blur(1.3px) drop-shadow(-3px -2px 5px #ff68314d) drop-shadow(0 12px 16px #20000080); }
.actor-red .actor-idle { animation-delay:-2.8s; animation-duration:4.7s; }
.actor-spud { width:50%; left:47%; top:42%; filter:drop-shadow(0 5px 4px #00101870); }
.actor-spud::after { left:17%; top:94%; width:73%; height:8%; background:#001019c4; filter:blur(5px); }
.chapter-laboratory .chapter-world .world-plate { filter:blur(.4px); }
.chapter-world .sprite-homunculus { background-image:url('/assets/kumancraft/scenes/flesh-spud-steady-still.webp?eye-outline=2'); background-size:100% 100%; }
.chapter-laboratory .sprite-homunculus { filter:none; }
.chapter-world .sprite-homunculus.sprite-canvas-ready { background-image:none; }
.actor-spud .actor-idle { animation:none; }
.actor-spud .actor-entry { animation:none; }
.actor-jasmine { width:19%; left:75%; bottom:12%; z-index:16; filter:drop-shadow(0 3px 2px #65295050); }
.actor-jasmine::before { left:25%; top:95%; width:56%; height:4%; background:#6d305c78; filter:blur(3px); }
.actor-jasmine .actor-idle { animation:none; }
.actor-luxardo { width:13%; left:46%; top:35%; z-index:17; filter:blur(.4px) drop-shadow(0 5px 4px #6d376344); }
.actor-luxardo .actor-idle { animation:none; transform-origin:0 0; }
.sprite-jasmine-current { aspect-ratio:256/341; background-image:url('/assets/kumancraft/scenes/jasmine-greeting-lit-still.webp'); background-size:100% 100%; image-rendering:auto; }
.sprite-luxardo-current { aspect-ratio:256/192; background-image:url('/assets/kumancraft/scenes/luxardo-still.webp'); background-size:100% 100%; image-rendering:auto; }
.sprite-fiend { aspect-ratio:var(--fiend-ratio); background-size:100% 100%; image-rendering:pixelated; }
.sprite-flame-runner { background-image:url('/assets/kumancraft/scenes/flame-runner-v2-still.webp'); }
.sprite-fire-ember { background-image:url('/assets/kumancraft/scenes/fire-ember-v2-still.webp'); }
.sprite-fire-scorch { background-image:url('/assets/kumancraft/scenes/fire-scorch-v2-still.webp'); }
.sprite-fire-spark { background-image:url('/assets/kumancraft/scenes/fire-spark-v2-still.webp'); }
.sprite-fire-flare { background-image:url('/assets/kumancraft/scenes/fire-flare-v2-still.webp'); }
.sprite-fire-bomb { background-image:url('/assets/kumancraft/scenes/fire-bomb-v2-still.webp'); }
.actor-fiend { left:50%; top:60%; width:var(--fiend-size); translate:-50% -100%; z-index:2; transform-origin:50% 100%; opacity:1; filter:drop-shadow(0 0 2px #ff94352b) drop-shadow(0 3px 1px #6b172d66); }
.actor-fiend .actor-idle { animation:none; }
.fiend-path { width:100%; transform-origin:50% 100%; will-change:transform; }
.chapter-jasmine .actor-fiend .actor-entry { animation:none; }
.chapter-world .sprite.sprite-canvas-ready { background-image:none; }
.chapter-jasmine .chapter-shade { background:linear-gradient(90deg,#20182bed,#20182bac 25%,#20182b30 52%,transparent 75%),linear-gradient(0deg,#20182b,transparent 35%); }
.chapter-jasmine .chapter-stage { background:#20182b; }
.chapter-jasmine .chapter-copy h2 { color:#fff5fb; }
.chapter-vombies .chapter-stage { background:#130704; }
.chapter-vombies .chapter-shade { background:linear-gradient(90deg,#160806f2 0%,#160806ac 26%,#16080630 52%,transparent 72%),linear-gradient(0deg,#130704 0%,#13070470 14%,transparent 38%); }
.world-light { position:absolute; inset:0; z-index:20; pointer-events:none; opacity:.09; background:radial-gradient(ellipse at 75% 35%,var(--accent),transparent 60%); mix-blend-mode:screen; animation:world-breathe 9s ease-in-out infinite; animation-play-state:paused; }
.is-visible .world-light { animation-play-state:running; }
.chapter-laboratory .world-light,.chapter-jasmine .world-light { z-index:0; }
.maker-section { padding-top:110px; padding-bottom:70px; }
.maker-section h2 { font-size:clamp(42px,5vw,72px); line-height:.98; }
.maker-columns { display:grid; grid-template-columns:1fr 1fr; gap:70px; max-width:950px; color:#b8c0ca; }
.maker-columns p { font-size:14px; line-height:1.9; }
.contact-section { border-top:1px solid #ffffff18; }
.site-footer { padding-bottom:120px; }
/* Briefings reuse the same layers at their natural wide ratio. */
#game-dialog .chapter-world { position:relative; inset:auto; height:auto; width:100%; aspect-ratio:1672/941; }
#game-dialog .chapter-world .world-plate { transform:none; }
#game-dialog .actor-entry { animation:none; }
#game-dialog .worm-surface canvas { inset:0; height:100%; }
#game-dialog .actor-idle { animation-play-state:running; }
#game-dialog .actor-clyde { top:26%; }
#game-dialog .actor-jasmine { bottom:6%; }
.motion-paused .actor-idle,.motion-paused .world-light,.motion-paused .chapter-logo { animation-play-state:paused!important; }
/* A paused visitor must still see actors in a world they have not entered yet. */
.motion-paused .actor-entry { animation:none!important; opacity:1; transform:none; }
.motion-paused .title-reveal { animation:none; opacity:1; transform:none; }
.motion-paused .chapter-copy h2 { animation:none; opacity:1; transform:none; }
html:has(body.motion-paused) { scroll-behavior:auto; }
.tab-hidden .actor-entry,.tab-hidden .actor-idle,.tab-hidden .world-light,
 .tab-hidden .chapter-logo,.tab-hidden .title-reveal,
body:has(#game-dialog[open]) .game-chapter .chapter-logo,
body:has(#studio-intro:not([hidden])) .game-chapter .chapter-logo,
body:has(#game-dialog[open]) .game-chapter .actor-idle,body:has(#game-dialog[open]) .game-chapter .world-light,
body:has(#studio-intro:not([hidden])) .game-chapter .actor-idle,body:has(#studio-intro:not([hidden])) .game-chapter .world-light { animation-play-state:paused!important; }
@keyframes actor-arrive { from { opacity:0; transform:translate3d(35px,35px,0) scale(.95); } to { opacity:1; transform:none; } }
@keyframes car-arrive { from { opacity:0; transform:translate3d(-18%,19%,0) scale(1.26); } to { opacity:1; transform:none; } }
@keyframes actor-hover { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-12px) rotate(1deg); } }
@keyframes clyde-dodge { 0%,100% { transform:translate3d(0,0,0) rotate(-1deg); } 28% { transform:translate3d(-2%,2%,0) rotate(1.5deg); } 57% { transform:translate3d(1.3%,-2%,0) rotate(-1.5deg); } 78% { transform:translate3d(-.8%,-.4%,0) rotate(.5deg); } }
@keyframes world-breathe { 0%,100% { opacity:.065; } 50% { opacity:.11; } }
@keyframes title-arrive { from { opacity:0; transform:translateY(16px) rotate(-.5deg); } to { opacity:1; transform:none; } }
@keyframes title-float { 0%,100% { transform:translateY(0) rotate(-.15deg); } 50% { transform:translateY(-4px) rotate(.15deg); } }
@keyframes title-tilt { 0%,100% { transform:rotate(-.3deg); } 50% { transform:translateY(-3px) rotate(.3deg); } }
@keyframes title-neon { 0%,100% { transform:translateY(0); filter:drop-shadow(0 4px 20px #0008); } 50% { transform:translateY(-3px); filter:drop-shadow(0 4px 20px #0008) drop-shadow(0 0 7px #ee38ae45); } }
@keyframes car-engine { 0%,100% { transform:translateY(0); } 50% { transform:translateY(1.2px); } }
@media(min-width:761px) and (max-height:780px) {
 .chapter-copy { padding-top:24px; } .chapter-logo { height:156px; }
 .chapter-genre { margin-top:8px; } .chapter-description { margin-bottom:16px; }
 .chapter-copy h2 { font-size:38px; margin-bottom:14px; }
 .chapter-status { margin-bottom:8px; }
}
@media(max-width:1000px) {
 .world-nav a { padding:12px 12px; }
 .chapter-copy { margin-left:5vw; width:45%; } .chapter-foot { left:5vw; right:5vw; }
 .chapter-copy h2 { font-size:40px; } .chapter-description { font-size:12px; }
}
@media(max-width:760px) {
 :root { --header-height:62px; --nav-height:68px; }
 .scene-header.site-header { padding:6px 18px; gap:14px; }
 .scene-header .brand,.scene-header .brand img { width:125px; height:44px; }
 .scene-header nav { display:none; } .scene-motion { margin-left:auto; padding:0 10px; min-height:34px; font-size:9px; }
 .game-chapter { height:auto; min-height:0; }
 .chapter-stage { position:relative; top:auto; height:auto; min-height:calc(100svh - var(--header-height)); padding-bottom:130px; }
 .chapter-world { height:49svh; min-height:285px; max-height:480px; top:0; bottom:auto; }
 .chapter-world .world-plate { object-position:64% center; }
 .chapter-shade { background:linear-gradient(0deg,#070a10 0%,#070a10 30%,#070a10e6 48%,transparent 72%); }
 .chapter-copy { margin:0; padding:calc(40svh - 30px) 24px 0; width:100%; max-width:none; }
 .chapter-status { position:absolute; top:18px; left:24px; font-size:8px; text-shadow:0 2px 8px #000; }
 .chapter-logo,.chapter-meatworm .chapter-logo { width:min(82vw,360px); height:145px; margin:0 0 6px -4px; object-position:left center; }
 .chapter-genre { margin:7px 0 12px; font-size:8px; letter-spacing:.13em; }
 .chapter-copy h2 { font-size:31px; margin-bottom:14px; }
 .chapter-description { font-size:12px; line-height:1.8; max-width:470px; margin-bottom:20px; }
 .chapter-actions { gap:24px; } .scene-button { font-size:11px; min-height:46px; padding:10px 18px; } .scene-link { font-size:10px; }
 .chapter-foot { left:24px; right:24px; bottom:84px; font-size:8px; }
 .chapter-foot b { display:none; } .next-world { font-size:9px; gap:12px; }
 .world-nav { width:calc(100% - 20px); max-width:480px; bottom:10px; padding:4px; justify-content:space-between; }
 .world-nav a { flex:1; min-width:0; white-space:normal; text-align:center; line-height:1.2; justify-content:center; flex-direction:column; gap:3px; padding:8px 3px; font-size:8px; }
 .world-nav a span { font-size:7px; } .world-nav a[aria-current]::after { left:5px; right:5px; bottom:0; }
 .actor-car { width:76%; left:15%; top:29%; }
 .actor-worm { width:92%; left:3%; top:14%; }
 .actor-clyde { width:39%; left:25%; top:28%; }
 .actor-greenie { width:37%; left:57%; top:13%; }
 .actor-red { width:22%; left:75%; top:48%; }
 .actor-spud { width:88%; left:10%; top:44%; }
 .chapter-laboratory .world-plate { object-position:80% center; }
 .actor-jasmine { width:32%; left:64%; bottom:25%; }
 .actor-luxardo { width:25%; left:22%; top:28%; }
 .actor-fiend { width:var(--fiend-mobile-size); }
 .fiend-desktop-only { display:none; }
 .chapter-vombies .chapter-shade { background:linear-gradient(0deg,#130704 0%,#130704 30%,#130704e6 48%,transparent 72%); }
 .chapter-jasmine .chapter-shade { background:linear-gradient(0deg,#20182b 0%,#20182b 30%,#20182be6 48%,transparent 72%); }
 .maker-section { padding:80px 24px 50px; } .maker-columns { display:block; } .maker-columns p { font-size:13px; }
 #game-dialog .actor-car { width:55%; left:46%; top:34%; } #game-dialog .actor-worm { width:66%; left:34%; top:15%; }
 #game-dialog .actor-spud { width:75%; left:25%; top:14%; }
 #game-dialog .actor-jasmine { width:19%; left:61%; } #game-dialog .actor-luxardo { width:13%; left:79%; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; } .actor-entry,.actor-idle,.world-light,.chapter-logo,.title-reveal,.chapter-copy h2 { animation:none!important; }
 .scene-actor,.chapter-world .world-plate { transform:none!important; }
 .game-chapter { height:auto; min-height:0; } .chapter-stage { position:relative; top:auto; }
}
