(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62271,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(36476);let s="npixel_intro_seen";function n({intro:e}){let[l,i]=(0,a.useState)(!0),[o,c]=(0,a.useState)(!1),[d,m]=(0,a.useState)(!1),x=(0,a.useRef)(null),u=(0,a.useRef)(null),h=(0,a.useRef)(!1),p=(0,a.useRef)(null),f=(0,a.useCallback)(()=>{if(h.current)return;h.current=!0,null!==p.current&&(window.clearTimeout(p.current),p.current=null);let e=x.current;if(e){try{e.currentTime=0}catch{}e.play().catch(()=>{})}m(!0)},[]);(0,a.useEffect)(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),window.scrollTo(0,0),sessionStorage.getItem(s)?(document.documentElement.removeAttribute("data-intro-active"),i(!1)):document.documentElement.setAttribute("data-intro-active","")},[]),(0,a.useEffect)(()=>{if(!l)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[l]),(0,a.useEffect)(()=>{if(!l)return;let e=x.current;e&&e.readyState>=2&&f()},[l,f]),(0,a.useEffect)(()=>{if(l)return p.current=window.setTimeout(f,8e3),()=>{null!==p.current&&(window.clearTimeout(p.current),p.current=null)}},[l,f]);let b=e=>{o||(c(!0),document.documentElement.removeAttribute("data-intro-active"),window.dispatchEvent(new Event("intro:done")),sessionStorage.setItem(s,"1"),(0,r.trackEvent)("intro_dismiss",{reason:e}),window.setTimeout(()=>i(!1),1600))};return((0,a.useEffect)(()=>{if(!l)return;let e=()=>{let e=u.current;if(!e||!document.documentElement.hasAttribute("data-intro-active"))return;let t=getComputedStyle(e);("none"===t.display||"hidden"===t.visibility||0===e.getBoundingClientRect().height)&&b("hidden")},t=requestAnimationFrame(e),a=window.setTimeout(e,600);return()=>{cancelAnimationFrame(t),window.clearTimeout(a)}},[l]),l)?(0,t.jsxs)("div",{ref:u,className:`intro-splash fixed inset-0 z-[200] flex items-center justify-center bg-black transition-opacity duration-[1500ms] ease-in-out ${o?"opacity-0":"opacity-100"}`,role:"dialog","aria-label":"인트로 영상",children:[(0,t.jsxs)("video",{ref:x,className:`h-full w-full object-cover transition-opacity duration-300 ${d?"opacity-100":"opacity-0"}`,muted:!0,playsInline:!0,preload:"auto",onLoadedData:f,onCanPlay:f,onError:()=>b("error"),onEnded:()=>b("end"),children:[e.videoWebm&&(0,t.jsx)("source",{src:e.videoWebm,type:"video/webm"}),e.videoMp4&&(0,t.jsx)("source",{src:e.videoMp4,type:"video/mp4"})]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/45 via-transparent to-transparent"}),(0,t.jsxs)("div",{className:`pointer-events-none absolute inset-0 z-[1] flex flex-col items-center justify-center gap-4 transition-opacity duration-300 ${d?"opacity-0":"opacity-100"}`,"aria-hidden":d,children:[(0,t.jsx)("span",{className:"h-10 w-10 animate-spin rounded-full border-2 border-white/15 border-t-brand motion-reduce:animate-none"}),(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.4em] text-white/55",children:"Loading"})]}),(0,t.jsxs)("button",{onClick:()=>b("skip"),className:"absolute bottom-8 right-6 inline-flex items-center gap-2 rounded-full border border-white/40 bg-black/40 px-6 py-2.5 text-sm font-semibold uppercase tracking-wider text-white backdrop-blur transition-colors hover:border-brand hover:text-brand sm:bottom-10 sm:right-10",children:["SKIP ",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})]}):null}function l(e){if("u"{let e=0,t=()=>{e=0;let t=window.scrollY+window.innerHeight/2,a=null;for(let e of i){let r=document.getElementById(e.id);r&&r.getBoundingClientRect().top+window.scrollY<=t+1&&(a=e.id)}o(a)},a=()=>{e||(e=requestAnimationFrame(t))};return t(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),e&&cancelAnimationFrame(e)}},[]);let c=(e,t)=>{(0,r.trackEvent)("nav_click",{menu:t}),s(!1),l(`#${e}`)};return(0,t.jsxs)("header",{className:"fixed inset-x-0 top-0 z-50 bg-gradient-to-b from-black/70 to-transparent",style:{height:"var(--gnb-h)"},children:[(0,t.jsxs)("div",{className:"mx-auto flex h-full max-w-[1300px] items-center justify-between px-5 sm:px-8",children:[(0,t.jsx)("a",{href:"#top",onClick:e=>{e.preventDefault(),c("top","Logo")},className:"flex items-center","aria-label":"NPIXEL",children:(0,t.jsx)("img",{src:"/assets/img/npixel_logo.png",alt:"NPIXEL",className:"brand-logo h-12 w-auto sm:h-14"})}),(0,t.jsx)("nav",{className:"hidden items-center gap-10 md:flex",children:i.map(e=>{let a=n===e.id;return(0,t.jsxs)("a",{href:`#${e.id}`,onClick:t=>{t.preventDefault(),c(e.id,e.label)},"aria-current":a?"true":void 0,className:`group relative text-base font-semibold uppercase tracking-wide transition-colors ${a?"text-brand":"text-white/80 hover:text-white"}`,children:[e.label,(0,t.jsx)("span",{className:`absolute -bottom-1.5 left-0 h-0.5 bg-brand transition-all duration-300 ${a?"w-full":"w-0 group-hover:w-full"}`})]},e.id)})}),(0,t.jsxs)("button",{"aria-label":"menu",onClick:()=>s(e=>!e),className:"flex h-9 w-9 flex-col items-center justify-center gap-1.5 md:hidden",children:[(0,t.jsx)("span",{className:`h-0.5 w-6 bg-white transition-transform ${e?"translate-y-2 rotate-45":""}`}),(0,t.jsx)("span",{className:`h-0.5 w-6 bg-white transition-opacity ${e?"opacity-0":""}`}),(0,t.jsx)("span",{className:`h-0.5 w-6 bg-white transition-transform ${e?"-translate-y-2 -rotate-45":""}`})]})]}),e&&(0,t.jsx)("nav",{className:"flex flex-col gap-1 border-t border-white/10 bg-black/95 px-5 py-4 md:hidden",children:i.map(e=>(0,t.jsx)("a",{href:`#${e.id}`,onClick:t=>{t.preventDefault(),c(e.id,e.label)},"aria-current":n===e.id?"true":void 0,className:`border-l-2 py-2.5 pl-3 text-base font-semibold uppercase transition-colors ${n===e.id?"border-brand text-brand":"border-transparent text-white/80"}`,children:e.label},e.id))})]})}function c({hero:e}){let s=function(e){try{let t=new URL(e);if(!/(^|\.)(youtube\.com|youtu\.be)$/.test(t.hostname))return null;let a="";if(!(a=t.hostname.endsWith("youtu.be")?t.pathname.slice(1):t.pathname.startsWith("/embed/")?t.pathname.split("/embed/")[1]??"":t.searchParams.get("v")??""))return null;let r=new URLSearchParams({autoplay:"1",rel:"0",modestbranding:"1",playsinline:"1"});return`https://www.youtube-nocookie.com/embed/${a}?${r.toString()}`}catch{return null}}(e.playHref),n=(0,a.useRef)(null),i=(0,a.useRef)(null),o=(0,a.useRef)(!1),d=(0,a.useRef)(!1),u=(0,a.useRef)("classic"),h=(0,a.useRef)(!1),p=(0,a.useRef)(null),[f,b]=(0,a.useState)(!1),[v,w]=(0,a.useState)(!1),[g,j]=(0,a.useState)("classic"),[y,N]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!document.documentElement.hasAttribute("data-intro-active"))return void N(!0);let e=()=>N(!0);return window.addEventListener("intro:done",e),()=>window.removeEventListener("intro:done",e)},[]),(0,a.useEffect)(()=>{let e=()=>{let e=document.documentElement.dataset.heroLayout;("classic"===e||"cinema"===e)&&j(e)};return e(),window.addEventListener("devprefs:herolayout",e),()=>window.removeEventListener("devprefs:herolayout",e)},[]),(0,a.useEffect)(()=>{let e=n.current;if(!e)return;let t=new IntersectionObserver(([e])=>w(e.isIntersecting),{threshold:.25});return t.observe(e),()=>t.disconnect()},[]),(0,a.useEffect)(()=>{let e=i.current;e&&(v&&y?e.play().catch(()=>{}):e.pause())},[v,y]),(0,a.useEffect)(()=>{let t=n.current;if(!t)return;let a=t.querySelectorAll(".reveal");if(u.current!==g&&(u.current=g,d.current=!1),d.current){t.removeAttribute("data-intro"),h.current=!1,p.current=null,a.forEach(e=>e.classList.add("in"));return}if(a.forEach(e=>e.classList.remove("in")),t.removeAttribute("data-intro"),h.current=!1,p.current=null,!v||!y)return;let r="cinema"===g&&!o.current;"cinema"===g&&(o.current=!0);let s=r?1500:Math.round(1e3*e.revealDelay),l=r?700:e.revealStagger,i=r?2.6*e.revealDuration:e.revealDuration;a.forEach(e=>{e.style.animationDuration=`${i}s`});let c=[];if(r&&(t.setAttribute("data-intro",""),h.current=!0,p.current=()=>{p.current=null,c.forEach(clearTimeout),c.length=0,a.forEach((e,t)=>{c.push(window.setTimeout(()=>e.classList.add("in"),t*l))}),c.push(window.setTimeout(()=>t.removeAttribute("data-intro"),(a.length-1)*l+3600)),c.push(window.setTimeout(()=>{h.current=!1},700))}),a.forEach((e,t)=>{c.push(window.setTimeout(()=>e.classList.add("in"),s+t*l))}),r){let e=s+(a.length-1)*l+3600;c.push(window.setTimeout(()=>{t.removeAttribute("data-intro"),h.current=!1,p.current=null},e))}return d.current=!0,()=>c.forEach(clearTimeout)},[v,g,y]),(0,a.useEffect)(()=>{let e=e=>{h.current&&!(e.deltaY<=0)&&(e.preventDefault(),e.stopImmediatePropagation(),p.current?.())},t=0,a=e=>{t=e.touches[0]?.clientY??0},r=e=>{if(!h.current)return;let a=e.touches[0]?.clientY??0;t-a<=0||(e.preventDefault(),e.stopImmediatePropagation(),p.current?.())},s={passive:!1,capture:!0};return window.addEventListener("wheel",e,s),window.addEventListener("touchstart",a,{passive:!0,capture:!0}),window.addEventListener("touchmove",r,s),()=>{window.removeEventListener("wheel",e,{capture:!0}),window.removeEventListener("touchstart",a,{capture:!0}),window.removeEventListener("touchmove",r,{capture:!0})}},[]),(0,a.useEffect)(()=>{if(!f)return;let e=e=>{"Escape"===e.key&&b(!1)};document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[f]);let k=()=>{(0,r.trackEvent)("cta_click",{cta:"video_button",location:"hero"}),s?b(!0):window.open(e.playHref,"_blank","noopener")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{id:"top",ref:n,"data-variant":g,"data-reveal":e.revealEffect,className:"snap-section relative flex h-[100svh] min-h-[560px] items-center justify-center overflow-hidden sm:min-h-[640px]",children:[(0,t.jsxs)("div",{className:`${"curtain"===e.introReveal?"cinema-open":"cinema-fade"} absolute inset-0 z-0`,children:[(0,t.jsxs)("video",{ref:i,className:"absolute inset-0 z-0 h-full w-full object-cover brightness-110",muted:!0,loop:!0,playsInline:!0,preload:"metadata",children:[e.videoWebm&&(0,t.jsx)("source",{src:e.videoWebm,type:"video/webm"}),e.videoMp4&&(0,t.jsx)("source",{src:e.videoMp4,type:"video/mp4"})]}),"classic"===g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 z-[1] bg-gradient-to-b from-black/60 via-black/20 to-black"}),(0,t.jsx)("div",{className:"absolute inset-0 z-[2] bg-[radial-gradient(ellipse_at_center,transparent_30%,rgba(0,0,0,var(--hero-vignette))_100%)]"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 z-[1] bg-gradient-to-t from-black via-black/40 to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 z-[1] bg-gradient-to-r from-black/70 via-black/10 to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 z-[2] bg-[radial-gradient(120%_120%_at_15%_100%,transparent_35%,rgba(0,0,0,var(--hero-vignette))_100%)]"})]}),(0,t.jsx)("div",{className:"dot-overlay"})]}),"classic"===g?(0,t.jsx)(m,{hero:e,onPlay:k}):(0,t.jsx)(x,{hero:e,onPlay:k}),(0,t.jsx)("a",{href:"#game",onClick:e=>{e.preventDefault(),l("#game")},className:"absolute bottom-6 left-1/2 z-10 -translate-x-1/2 animate-bounce text-white/70 transition-colors hover:text-brand","aria-label":"아래로",children:(0,t.jsx)("svg",{width:"40",height:"22",viewBox:"0 0 40 22",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M4 4 L20 18 L36 4",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f&&s&&(0,t.jsxs)("div",{className:"modal-fade fixed inset-0 z-[100] flex items-center justify-center bg-black/90 px-4 py-14 backdrop-blur-sm sm:px-6",onClick:()=>b(!1),role:"dialog","aria-modal":"true","aria-label":"ECLIPSE 트레일러 영상",children:[(0,t.jsx)("button",{type:"button",onClick:()=>b(!1),"aria-label":"닫기",className:"absolute right-4 top-4 z-10 flex h-11 w-11 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/20 sm:right-6 sm:top-6",children:(0,t.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M6 6 L18 18 M18 6 L6 18",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"})})}),(0,t.jsx)("div",{className:"modal-pop relative aspect-video w-full max-w-5xl overflow-hidden rounded-xl bg-black shadow-2xl",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("iframe",{src:s,title:"ECLIPSE 트레일러",className:"absolute inset-0 h-full w-full",allow:"autoplay; encrypted-media; fullscreen; picture-in-picture",allowFullScreen:!0})})]})]})}function d(e){return e.contentX||e.contentY?{transform:`translate(${e.contentX}vw, ${e.contentY}vh)`}:{}}function m({hero:e,onPlay:a}){return e.logoImage&&e.logoOnly?(0,t.jsx)("div",{className:"relative z-10 flex flex-col items-center px-6 text-center",style:d(e),children:(0,t.jsx)("img",{src:e.logoImage,alt:`${e.titleAccent}${e.titleRest}`,className:"reveal w-[min(88vw,620px)] max-w-full"})}):(0,t.jsxs)("div",{className:"relative z-10 flex flex-col items-center px-6 text-center",style:d(e),children:[e.logoImage?(0,t.jsx)("img",{src:e.logoImage,alt:`${e.titleAccent}${e.titleRest}`,className:"reveal w-[min(88vw,620px)] max-w-full"}):(0,t.jsxs)("h1",{className:"reveal font-display text-4xl font-bold leading-[1.1] sm:text-6xl md:text-7xl",children:[(0,t.jsx)("span",{className:"text-brand",children:e.titleAccent}),e.titleRest]}),(0,t.jsx)("p",{className:"reveal mt-4 font-display text-lg tracking-[0.3em] text-white/85 sm:text-2xl",children:e.subtitle}),(0,t.jsx)("p",{className:"reveal mt-4 max-w-xl text-lg text-white/70 sm:text-2xl",children:e.description}),(0,t.jsx)("button",{type:"button",onClick:a,"aria-label":"ECLIPSE 트레일러 영상 보기",className:"img-btn reveal mt-10 inline-block h-[88px] w-[88px] cursor-pointer",style:{backgroundImage:"url(/assets/btn/play_default.png)"},children:(0,t.jsx)("span",{className:"pointer-events-none absolute inset-0 bg-cover bg-center opacity-0 transition-opacity duration-300 hover:opacity-100",style:{backgroundImage:"url(/assets/btn/play_hover.png)"}})}),(0,t.jsx)("p",{className:"reveal mt-8 font-display text-lg tracking-[0.3em] text-white/80 sm:text-2xl",children:e.comingSoon}),(0,t.jsx)("a",{href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"official_site",location:"hero"}),className:"reveal mt-6 inline-flex items-center gap-2 rounded-full border border-white/70 bg-transparent px-8 py-3 text-base font-bold text-white transition-all hover:scale-105 hover:border-brand hover:text-brand sm:text-2xl",children:e.ctaLabel})]})}function x({hero:e,onPlay:a}){return e.logoImage&&e.logoOnly?(0,t.jsx)("div",{className:"relative z-10 flex h-full w-full flex-col justify-end",style:d(e),children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-[1300px] px-6 pb-24 sm:px-10 sm:pb-28",children:(0,t.jsx)("img",{src:e.logoImage,alt:`${e.titleAccent}${e.titleRest}`,className:"reveal w-[min(82vw,560px)] max-w-full"})})}):(0,t.jsx)("div",{className:"relative z-10 flex h-full w-full flex-col justify-end",style:d(e),children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-[1300px] px-6 pb-24 sm:px-10 sm:pb-28",children:(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsxs)("div",{className:"reveal flex items-center gap-3",children:[(0,t.jsx)("span",{className:"h-px w-10 bg-brand"}),(0,t.jsx)("span",{className:"font-display text-sm font-semibold uppercase tracking-[0.4em] text-brand sm:text-base",children:e.subtitle})]}),e.logoImage?(0,t.jsx)("img",{src:e.logoImage,alt:`${e.titleAccent}${e.titleRest}`,className:"reveal mt-5 w-[min(82vw,560px)] max-w-full"}):(0,t.jsxs)("h1",{className:"reveal mt-5 whitespace-nowrap font-display text-[clamp(1.4rem,6vw,4rem)] font-bold leading-[1.06]",children:[(0,t.jsx)("span",{className:"text-brand",children:e.titleAccent}),e.titleRest]}),(0,t.jsx)("p",{className:"reveal mt-5 max-w-xl break-keep text-base text-white/75 sm:text-xl",children:e.description}),(0,t.jsxs)("div",{className:"reveal mt-9 flex flex-wrap items-center gap-4",children:[(0,t.jsxs)("button",{type:"button",onClick:a,"aria-label":"ECLIPSE 트레일러 영상 보기",className:"group inline-flex items-center gap-2.5 rounded-full border border-white/20 bg-white/10 py-2 pl-2 pr-5 backdrop-blur-md transition-all hover:border-brand/70 hover:bg-white/15",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-brand text-black transition-transform group-hover:scale-105",children:(0,t.jsx)("svg",{width:"13",height:"15",viewBox:"0 0 16 18",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M2 1.8 L14 9 L2 16.2 Z"})})}),(0,t.jsx)("span",{className:"text-sm font-bold text-white sm:text-base",children:"트레일러 재생"})]}),(0,t.jsx)("a",{href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"official_site",location:"hero"}),className:"inline-flex items-center gap-2 rounded-full border border-white/40 bg-transparent px-6 py-2.5 text-sm font-bold text-white/90 backdrop-blur-md transition-all hover:border-brand hover:text-brand sm:text-base",children:e.ctaLabel})]}),(0,t.jsx)("p",{className:"reveal mt-6 font-display text-sm tracking-[0.3em] text-white/70 sm:text-base",children:e.comingSoon})]})})})}function u({hero:e}){let s=(0,a.useRef)(null),n=(0,a.useRef)(null),i=function(e){try{let t=new URL(e);if(!/(^|\.)(youtube\.com|youtu\.be)$/.test(t.hostname))return null;let a="";if(!(a=t.hostname.endsWith("youtu.be")?t.pathname.slice(1):t.pathname.startsWith("/embed/")?t.pathname.split("/embed/")[1]??"":t.searchParams.get("v")??""))return null;let r=new URLSearchParams({autoplay:"1",rel:"0",modestbranding:"1",playsinline:"1"});return`https://www.youtube-nocookie.com/embed/${a}?${r.toString()}`}catch{return null}}(e.playHref),[o,c]=(0,a.useState)(!1),[d,m]=(0,a.useState)(!1),[x,h]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{if(!document.documentElement.hasAttribute("data-intro-active"))return void m(!0);let e=()=>m(!0);return window.addEventListener("intro:done",e),()=>window.removeEventListener("intro:done",e)},[]),(0,a.useEffect)(()=>{let e=s.current;if(!e)return;let t=new IntersectionObserver(([e])=>h(e.isIntersecting),{threshold:.2});return t.observe(e),()=>t.disconnect()},[]),(0,a.useEffect)(()=>{let e=n.current;e&&(x&&d?e.play().catch(()=>{}):e.pause())},[x,d]),(0,a.useEffect)(()=>{if(!d)return;let t=s.current;if(!t)return;let a=t.querySelectorAll(".reveal"),r=Math.round(1e3*e.revealDelay),n=e.revealStagger;a.forEach(t=>{t.style.animationDuration=`${e.revealDuration}s`});let l=[];return a.forEach((e,t)=>{l.push(window.setTimeout(()=>e.classList.add("in"),r+t*n))}),()=>l.forEach(clearTimeout)},[d,e.revealDelay,e.revealStagger,e.revealDuration]),(0,a.useEffect)(()=>{if(!o)return;let e=e=>{"Escape"===e.key&&c(!1)};document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[o]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{id:"top",ref:s,"data-reveal":e.revealEffect,className:"snap-section relative flex h-[100svh] min-h-[560px] flex-col items-center justify-center overflow-hidden bg-black",children:[(0,t.jsxs)("video",{ref:n,className:"absolute inset-0 z-0 h-full w-full object-cover object-center brightness-[0.8]",muted:!0,loop:!0,playsInline:!0,preload:"metadata",children:[e.videoWebm&&(0,t.jsx)("source",{src:e.videoWebm,type:"video/webm"}),e.videoMp4&&(0,t.jsx)("source",{src:e.videoMp4,type:"video/mp4"})]}),(0,t.jsx)("div",{className:"absolute inset-0 z-[1] bg-gradient-to-b from-black/70 via-black/35 to-black"}),(0,t.jsx)("div",{className:"absolute inset-0 z-[2] bg-[radial-gradient(ellipse_at_center,transparent_35%,rgba(0,0,0,var(--hero-vignette))_100%)]"}),(0,t.jsx)("div",{className:"dot-overlay"}),(0,t.jsxs)("div",{className:"relative z-10 flex w-full flex-col items-center px-7 text-center",children:[e.logoImage?(0,t.jsx)("img",{src:e.logoImage,alt:`${e.titleAccent}${e.titleRest}`,className:"reveal w-[74vw] max-w-[420px]"}):(0,t.jsxs)("h1",{className:"reveal font-display text-4xl font-bold leading-[1.1]",children:[(0,t.jsx)("span",{className:"text-brand",children:e.titleAccent}),e.titleRest]}),e.mobileButtons&&(0,t.jsxs)(t.Fragment,{children:[e.comingSoon&&(0,t.jsx)("p",{className:"reveal mt-6 font-display text-sm tracking-[0.3em] text-white/80",children:e.comingSoon}),(0,t.jsxs)("div",{className:"reveal mt-8 flex flex-col items-center gap-4",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{(0,r.trackEvent)("cta_click",{cta:"video_button",location:"hero_mobile"}),i?c(!0):window.open(e.playHref,"_blank","noopener")},"aria-label":"ECLIPSE 트레일러 영상 보기",className:"group inline-flex items-center gap-2.5 rounded-full border border-white/20 bg-white/10 py-2 pl-2 pr-5 backdrop-blur-md transition-colors active:bg-white/20",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-brand text-black",children:(0,t.jsx)("svg",{width:"13",height:"15",viewBox:"0 0 16 18",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M2 1.8 L14 9 L2 16.2 Z"})})}),(0,t.jsx)("span",{className:"text-sm font-bold text-white",children:"트레일러 재생"})]}),(0,t.jsx)("a",{href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"official_site",location:"hero_mobile"}),className:"inline-flex items-center gap-2 rounded-full border border-white/45 bg-transparent px-6 py-2.5 text-sm font-bold text-white/90 backdrop-blur-md transition-colors active:border-brand active:text-brand",children:e.ctaLabel})]})]})]}),(0,t.jsx)("a",{href:"#game",onClick:e=>{e.preventDefault(),l("#game")},className:"absolute bottom-5 left-1/2 z-10 -translate-x-1/2 animate-bounce text-white/70","aria-label":"아래로",children:(0,t.jsx)("svg",{width:"34",height:"20",viewBox:"0 0 40 22",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M4 4 L20 18 L36 4",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),o&&i&&(0,t.jsxs)("div",{className:"modal-fade fixed inset-0 z-[100] flex items-center justify-center bg-black/90 px-4 py-14 backdrop-blur-sm",onClick:()=>c(!1),role:"dialog","aria-modal":"true","aria-label":"ECLIPSE 트레일러 영상",children:[(0,t.jsx)("button",{type:"button",onClick:()=>c(!1),"aria-label":"닫기",className:"absolute right-4 top-4 z-10 flex h-11 w-11 items-center justify-center rounded-full bg-white/10 text-white active:bg-white/20",children:(0,t.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M6 6 L18 18 M18 6 L6 18",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"})})}),(0,t.jsx)("div",{className:"modal-pop relative aspect-video w-full max-w-5xl overflow-hidden rounded-xl bg-black shadow-2xl",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("iframe",{src:i,title:"ECLIPSE 트레일러",className:"absolute inset-0 h-full w-full",allow:"autoplay; encrypted-media; fullscreen; picture-in-picture",allowFullScreen:!0})})]})]})}var h=e.i(57688);function p({id:e,name:s,className:n,children:l}){let i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let t=i.current;if(!t)return;let a=!1,n=[],l=()=>{n.forEach(clearTimeout),n=[]},o=new IntersectionObserver(([i])=>{let o=t.querySelectorAll(".reveal");l(),i.isIntersecting?(a||((0,r.trackEvent)("section_view",{section:s??e}),a=!0),o.forEach((e,t)=>{n.push(window.setTimeout(()=>e.classList.add("in"),90*t))})):o.forEach(e=>e.classList.remove("in"))},{threshold:.25});return o.observe(t),()=>{l(),o.disconnect()}},[e,s]),(0,t.jsx)("section",{id:e,ref:i,className:n,children:l})}function f({href:e,label:a="다음 섹션으로"}){return(0,t.jsx)("a",{href:e,"aria-label":a,onClick:t=>{t.preventDefault(),l(e)},className:"absolute bottom-6 left-1/2 z-20 -translate-x-1/2 animate-bounce text-white/70 transition-colors hover:text-brand",children:(0,t.jsx)("svg",{width:"40",height:"22",viewBox:"0 0 40 22",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M4 4 L20 18 L36 4",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function b({game:e,sizes:r,priority:s}){let n,l,[i,o]=(0,a.useState)("cover");if(!e.image)return(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#0b2a36] via-black to-black"});let c=e.imageCrop,d=!!(c&&(c.top||c.right||c.bottom||c.left));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black"}),(0,t.jsx)(h.default,{src:e.image,alt:e.title,fill:!0,priority:s,sizes:r,quality:90,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&o(t.naturalHeight>t.naturalWidth?"contain":"cover")},style:(n=e.imageCrop,l={objectPosition:e.imagePos||"50% 50%"},n&&(n.top||n.right||n.bottom||n.left)&&(l.objectViewBox=`inset(${n.top}% ${n.right}% ${n.bottom}% ${n.left}%)`),l),className:"contain"===i?"object-contain":"object-cover"}),d&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-2/5 bg-gradient-to-t from-black via-black/70 to-transparent"})]})}function v({games:e}){let[s,n]=(0,a.useState)(0),[l,i]=(0,a.useState)(!1),[o,c]=(0,a.useState)("full"),d=e.length;(0,a.useEffect)(()=>{let e=()=>{let e=document.documentElement.dataset.gameLayout;("cards"===e||"full"===e)&&c(e)};return e(),window.addEventListener("devprefs:gamelayout",e),()=>window.removeEventListener("devprefs:gamelayout",e)},[]);let m=e[Math.min(s,Math.max(d-1,0))];return((0,a.useEffect)(()=>{if("cards"!==o||l||d<2)return;let e=setInterval(()=>n(e=>(e+1)%d),5e3);return()=>clearInterval(e)},[s,l,d,o]),(0,a.useEffect)(()=>{document.querySelectorAll('[id^="game"] .reveal').forEach(e=>e.classList.add("in"))},[o]),0!==d&&m)?"cards"===o?(0,t.jsx)(w,{games:e,game:m,i:s,count:d,move:t=>{if(0===d)return;let a=(t+d)%d;n(a),(0,r.trackEvent)("game_slide",{title:e[a].title,index:a})},onEnter:()=>i(!0),onLeave:()=>i(!1)}):(0,t.jsx)(g,{games:e}):null}function w({games:e,game:a,i:s,count:n,move:l,onEnter:i,onLeave:o}){return(0,t.jsxs)(p,{id:"game",name:"Game",className:"snap-section relative flex min-h-[100svh] flex-col justify-center overflow-hidden bg-black py-24",children:[(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[1300px] px-5 sm:px-8",children:[(0,t.jsx)("header",{className:"reveal mb-10 flex items-end justify-end",children:(0,t.jsxs)("div",{className:"hidden gap-3 sm:flex",children:[(0,t.jsx)(y,{dir:"prev",onClick:()=>l(s-1)}),(0,t.jsx)(y,{dir:"next",onClick:()=>l(s+1)})]})}),(0,t.jsxs)("div",{className:"reveal group relative aspect-[16/11] w-full overflow-hidden rounded-3xl border border-white/10 sm:aspect-[21/9]",onMouseEnter:i,onMouseLeave:o,children:[(0,t.jsx)(b,{game:a,sizes:"(max-width: 1300px) 100vw, 1300px"}),(0,t.jsxs)("div",{className:`absolute bottom-0 max-w-2xl p-7 sm:p-14 ${/gran\s*saga/i.test(a.title)?"right-0 text-right":"left-0"} ${/eclipse/i.test(a.title)?"font-hangulsesang":""}`,style:{textShadow:"0 2px 12px rgba(0,0,0,0.75)"},children:[a.status&&(0,t.jsx)("span",{className:"inline-block rounded-full border border-brand/50 bg-brand/10 px-3.5 py-1 text-xs font-semibold uppercase tracking-wider text-brand",children:a.status}),(0,t.jsx)("h3",{className:"mt-4 whitespace-nowrap font-display text-[clamp(1.3rem,5vw,3.75rem)] font-bold leading-[1.05]",children:a.title}),(0,t.jsx)("p",{className:"mt-2 text-sm font-medium tracking-wide text-brand sm:text-base",children:a.genre}),(0,t.jsx)("div",{className:"mt-4 space-y-1 break-keep text-sm leading-relaxed text-white/75 sm:text-lg",children:a.desc.map(e=>(0,t.jsx)("p",{children:e},e))}),a.href&&(0,t.jsx)("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"game_detail",title:a.title}),className:"mt-7 inline-flex items-center gap-2 rounded-full border border-white/70 bg-transparent px-7 py-3 text-sm font-bold text-white transition-all hover:scale-105 hover:border-brand hover:text-brand sm:text-base",children:"자세히 보기 →"})]}),n>1&&(0,t.jsxs)("div",{className:"absolute bottom-5 right-5 flex gap-2 sm:hidden",children:[(0,t.jsx)(y,{dir:"prev",onClick:()=>l(s-1)}),(0,t.jsx)(y,{dir:"next",onClick:()=>l(s+1)})]})]}),n>1&&(0,t.jsx)("div",{className:"mt-7 flex justify-center gap-2.5",children:e.map((e,a)=>(0,t.jsx)("button",{"aria-label":e.title,onClick:()=>l(a),className:`h-2 rounded-full transition-all ${a===s?"w-10 bg-brand":"w-2.5 bg-white/25 hover:bg-white/55"}`},e.title))})]}),(0,t.jsx)(f,{href:"#about"})]})}function g({games:e}){let s=e.length,n=(0,a.useRef)(null),l=(0,a.useRef)([]);return(0,a.useEffect)(()=>{let e=n.current;if(!e)return;let t=Math.max(s-1,1),a=0,i=()=>{a=0;let r=window.innerHeight,s=e.getBoundingClientRect().top+window.scrollY,n=(window.scrollY-s)/r,i=Math.round(n=Math.min(Math.max(n,0),t));l.current.forEach((e,t)=>{e&&(e.style.opacity=t===i?"1":"0",e.style.pointerEvents=t===i?"auto":"none")})},o=()=>{a||(a=requestAnimationFrame(i))};i(),window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o);let c=!1,d=new IntersectionObserver(([e])=>{e.isIntersecting&&!c&&((0,r.trackEvent)("section_view",{section:"Game"}),c=!0)},{threshold:.25});return d.observe(e),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o),a&&cancelAnimationFrame(a),d.disconnect()}},[s]),(0,t.jsxs)("section",{id:"game",ref:n,className:"snap-section relative w-full bg-black",style:{height:`${100*s}svh`},children:[e.map((e,a)=>(0,t.jsx)("div",{"aria-hidden":!0,className:"game-snap pointer-events-none absolute left-0 w-px",style:{top:`${100*a}svh`,height:"100svh"}},`snap-${e.title}`)),(0,t.jsxs)("div",{className:"sticky top-0 h-[100svh] w-full overflow-hidden",children:[e.map((e,a)=>(0,t.jsxs)("div",{ref:e=>{l.current[a]=e},className:"absolute inset-0 transition-opacity duration-500 ease-out",style:{opacity:+(0===a)},children:[(0,t.jsx)(b,{game:e,sizes:"100vw",priority:0===a}),(0,t.jsx)("div",{className:"absolute inset-x-0 top-[calc(var(--gnb-h)+20px)] z-10",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-[1300px] items-center justify-end px-5 sm:px-8",children:s>1&&(0,t.jsxs)("p",{className:"font-display text-sm tracking-[0.25em] text-white/50",children:[(0,t.jsx)("span",{className:"text-white",children:String(a+1).padStart(2,"0")}),(0,t.jsx)("span",{className:"mx-1",children:"/"}),String(s).padStart(2,"0")]})})}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-10",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-[1300px] px-5 pb-24 sm:px-8 sm:pb-[20vh]",children:(0,t.jsxs)("div",{className:`max-w-2xl ${/gran\s*saga/i.test(e.title)?"ml-auto text-right":""} ${/eclipse/i.test(e.title)?"font-hangulsesang":""}`,style:{textShadow:"0 2px 12px rgba(0,0,0,0.75)"},children:[e.status&&(0,t.jsx)("span",{className:"inline-block rounded-full border border-brand/50 bg-brand/10 px-3.5 py-1 text-xs font-semibold uppercase tracking-wider text-brand",children:e.status}),(0,t.jsx)("h3",{className:"mt-4 whitespace-nowrap font-display text-[clamp(1.3rem,5vw,3.75rem)] font-bold leading-[1.05]",children:e.title}),(0,t.jsx)("p",{className:"mt-3 text-sm font-medium tracking-wide text-brand sm:text-lg",children:e.genre}),(0,t.jsx)("div",{className:"mt-4 space-y-1 break-keep text-sm leading-relaxed text-white/80 sm:text-lg",children:e.desc.map(e=>(0,t.jsx)("p",{children:e},e))}),e.href&&(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"game_detail",title:e.title}),className:"mt-7 inline-flex items-center gap-2 rounded-full border border-white/70 bg-transparent px-7 py-3 text-sm font-bold text-white transition-all hover:scale-105 hover:border-brand hover:text-brand sm:text-base",children:"자세히 보기 →"})]})})})]},e.title)),(0,t.jsx)(j,{})]})]})}function j(){return(0,t.jsx)("button",{onClick:()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollBy({top:window.innerHeight,behavior:e?"auto":"smooth"})},"aria-label":"다음으로",className:"absolute bottom-6 left-1/2 z-20 -translate-x-1/2 animate-bounce text-white/70 transition-colors hover:text-brand",children:(0,t.jsx)("svg",{width:"40",height:"22",viewBox:"0 0 40 22",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M4 4 L20 18 L36 4",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function y({dir:e,onClick:a}){let r="prev"===e?{transform:"scaleX(-1)"}:void 0;return(0,t.jsxs)("button",{onClick:a,"aria-label":"prev"===e?"이전 게임":"다음 게임",className:"group relative h-16 w-16 cursor-pointer transition-transform duration-300 hover:scale-105 active:scale-95",children:[(0,t.jsx)("span",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url(/assets/btn/play_default.png)",...r}}),(0,t.jsx)("span",{className:"pointer-events-none absolute inset-0 bg-cover bg-center opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{backgroundImage:"url(/assets/btn/play_hover.png)",...r}})]})}function N({games:e}){let s=(0,a.useRef)(null);return((0,a.useEffect)(()=>{let e=s.current;if(!e)return;let t=!1,a=new IntersectionObserver(([e])=>{e.isIntersecting&&!t&&((0,r.trackEvent)("section_view",{section:"Game"}),t=!0)},{threshold:.25});return a.observe(e),()=>a.disconnect()},[]),0===e.length)?null:(0,t.jsx)("section",{id:"game",ref:s,className:"relative w-full bg-black",children:e.map((a,r)=>(0,t.jsx)(k,{game:a,idx:r,count:e.length},a.title))})}function k({game:e,idx:s,count:n}){let l=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=l.current;if(!e)return;let t=new IntersectionObserver(([t])=>{e.querySelectorAll(".reveal").forEach(e=>e.classList.toggle("in",t.isIntersecting))},{threshold:.35});return t.observe(e),()=>t.disconnect()},[]);let i=/eclipse/i.test(e.title),o=e.imagePosMobile||e.imagePos||"50% 50%";return(0,t.jsxs)("div",{ref:l,className:"snap-section relative flex h-[100svh] min-h-[560px] w-full items-end overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black"}),e.image&&(0,t.jsx)(h.default,{src:e.image,alt:e.title,fill:!0,priority:0===s,sizes:"100vw",quality:90,style:{objectPosition:o},className:"object-cover"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/45 to-transparent"}),n>1&&(0,t.jsx)("div",{className:"absolute inset-x-0 top-[calc(var(--gnb-h)+16px)] px-6",children:(0,t.jsxs)("p",{className:"text-right font-display text-xs tracking-[0.25em] text-white/55",children:[(0,t.jsx)("span",{className:"text-white",children:String(s+1).padStart(2,"0")}),(0,t.jsx)("span",{className:"mx-1",children:"/"}),String(n).padStart(2,"0")]})}),(0,t.jsx)("div",{className:"relative z-10 w-full px-6 pb-24",children:(0,t.jsxs)("div",{className:i?"font-hangulsesang":"",style:{textShadow:"0 2px 12px rgba(0,0,0,0.75)"},children:[e.status&&(0,t.jsx)("span",{className:"inline-block rounded-full border border-brand/50 bg-brand/10 px-3.5 py-1 text-xs font-semibold uppercase tracking-wider text-brand",children:e.status}),(0,t.jsx)("h3",{className:"reveal mt-4 font-display text-3xl font-bold leading-[1.1]",children:e.title}),(0,t.jsx)("p",{className:"reveal mt-2 text-sm font-medium tracking-wide text-brand",children:e.genre}),(0,t.jsx)("div",{className:"reveal mt-3 space-y-1 break-keep text-sm leading-relaxed text-white/80",children:e.desc.map(e=>(0,t.jsx)("p",{children:e},e))}),e.href&&(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"game_detail",title:e.title}),className:"reveal mt-6 inline-flex items-center gap-2 rounded-full border border-white/70 bg-transparent px-6 py-2.5 text-sm font-bold text-white transition-colors active:border-brand active:text-brand",children:"자세히 보기 →"})]})})]})}function E({heading:e,history:r}){let s=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=s.current;if(!e)return;let t=e.querySelectorAll(".year-fig"),a=new IntersectionObserver(e=>{e.forEach(e=>e.target.classList.toggle("shown",e.isIntersecting))},{root:e,threshold:.55});return t.forEach(e=>a.observe(e)),()=>a.disconnect()},[]);let n=[...r].reverse();return(0,t.jsxs)("div",{ref:s,className:"no-scrollbar h-full snap-y snap-mandatory overflow-y-auto",children:[n.map(e=>(0,t.jsx)("div",{className:"flex h-full snap-center flex-col items-center justify-center px-5 text-center",children:(0,t.jsxs)("div",{className:"year-fig",children:[(0,t.jsx)("span",{className:"block whitespace-nowrap font-display text-[clamp(4.5rem,20vw,15rem)] font-bold leading-[0.9] text-brand",children:e.year}),(0,t.jsx)("ul",{className:"mx-auto mt-6 max-w-3xl space-y-2 break-keep text-lg text-white/80 sm:mt-8 sm:text-2xl md:text-3xl",children:e.events.map(e=>(0,t.jsx)("li",{children:e},e))})]})},e.year)),(0,t.jsx)("div",{className:"flex h-full snap-center flex-col items-center justify-center px-5 sm:px-8",children:(0,t.jsxs)("div",{className:"year-fig w-full max-w-3xl",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("h3",{className:"shrink-0 font-display text-base font-bold tracking-[0.2em] text-brand sm:text-lg",children:e}),(0,t.jsx)("span",{className:"h-px flex-1 bg-white/15"})]}),(0,t.jsx)("div",{className:"space-y-3",children:r.map(e=>(0,t.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-x-4 border-t border-white/10 pt-3 first:border-0 first:pt-0 sm:gap-x-6",children:[(0,t.jsx)("span",{className:"font-display text-lg font-bold text-brand sm:w-16 sm:text-xl",children:e.year}),(0,t.jsx)("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5 text-xs text-white/70 sm:text-sm",children:e.events.map(e=>{let r,{month:s,text:n}=(r=e.match(/^\s*(\d{1,2}\s*월)\s*[::]?\s*(.*)$/))?{month:r[1].replace(/\s+/g,""),text:r[2]}:{month:null,text:e.trim()};return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)("span",{className:"whitespace-nowrap text-white/45",children:s}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:n})]},e)})})]},e.year))})]})})]})}function L({about:e}){let[r,s]=(0,a.useState)("classic");return(0,a.useEffect)(()=>{let e=()=>{s("typo"===document.documentElement.dataset.historyLayout?"typo":"classic")};return e(),window.addEventListener("devprefs:historylayout",e),()=>window.removeEventListener("devprefs:historylayout",e)},[]),"typo"===r?(0,t.jsx)(S,{about:e}):(0,t.jsx)(_,{about:e})}function C(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"glow-a pointer-events-none absolute -right-32 -top-10 h-[460px] w-[460px] rounded-full opacity-50 blur-[110px]",style:{background:"radial-gradient(circle,var(--color-brand),transparent 70%)"}}),(0,t.jsx)("div",{className:"glow-b pointer-events-none absolute -left-28 bottom-0 h-[360px] w-[360px] rounded-full opacity-40 blur-[120px]",style:{background:"radial-gradient(circle,var(--color-brand),transparent 72%)"}})]})}function _({about:e}){return(0,t.jsxs)(p,{id:"about",name:"About",className:"snap-section relative flex min-h-[100svh] flex-col justify-center overflow-hidden bg-black py-20",children:[(0,t.jsx)(C,{}),(0,t.jsxs)("div",{className:"relative mx-auto w-full max-w-[1300px] px-5 sm:px-8",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("h2",{className:"reveal font-display text-[1.6rem] font-bold leading-[1.3] sm:text-[2.55rem] md:text-[2.9rem]",children:[e.titlePre,(0,t.jsx)("span",{className:"text-brand",children:e.titleAccent}),e.titlePost,(0,t.jsx)("br",{}),e.titleLine2]}),(0,t.jsx)("p",{className:"reveal mx-auto mt-5 max-w-2xl break-keep text-base text-white/70 sm:text-xl",children:e.subtitle})]}),(0,t.jsxs)("div",{className:"reveal mx-auto mt-14 max-w-3xl",children:[(0,t.jsxs)("div",{className:"mb-7 flex items-center gap-3",children:[(0,t.jsx)("h3",{className:"font-display text-lg font-bold tracking-wide text-white/90 sm:text-xl",children:e.historyHeading}),(0,t.jsx)("span",{className:"h-px flex-1 bg-white/10"})]}),(0,t.jsx)("div",{className:"no-scrollbar max-h-[44vh] space-y-4 overflow-y-auto pr-2",children:e.history.map(e=>(0,t.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 border-t border-white/10 pt-4 first:border-0 first:pt-0 sm:gap-x-8",children:[(0,t.jsx)("span",{className:"font-display text-xl font-bold text-brand sm:w-20 sm:text-2xl",children:e.year}),(0,t.jsx)("div",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-sm text-white/75 sm:text-base",children:e.events.map(e=>{let r,{month:s,text:n}=(r=e.match(/^\s*(\d{1,2}\s*월)\s*[::]?\s*(.*)$/))?{month:r[1].replace(/\s+/g,""),text:r[2]}:{month:null,text:e.trim()};return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)("span",{className:"whitespace-nowrap text-white/45",children:s}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:n})]},e)})})]},e.year))})]})]}),(0,t.jsx)(f,{href:"#careers"})]})}function S({about:e}){return(0,t.jsxs)(p,{id:"about",name:"About",className:"snap-section relative flex h-[100svh] min-h-[600px] flex-col overflow-hidden bg-black",children:[(0,t.jsx)(C,{}),(0,t.jsxs)("div",{className:"reveal relative z-10 shrink-0 px-5 pb-2 pt-[calc(var(--gnb-h)+10px)] sm:px-8",children:[(0,t.jsxs)("h2",{className:"font-display text-base font-bold leading-snug text-white/90 sm:text-xl",children:[e.titlePre,(0,t.jsx)("span",{className:"text-brand",children:e.titleAccent}),e.titlePost," ",e.titleLine2]}),(0,t.jsx)("p",{className:"mt-0.5 break-keep text-xs text-white/45 sm:text-sm",children:e.subtitle})]}),(0,t.jsx)("div",{className:"relative z-10 min-h-0 flex-1 pb-6",children:(0,t.jsx)(E,{heading:e.historyHeading,history:e.history})}),(0,t.jsx)(f,{href:"#careers"})]})}function I({about:e}){return(0,t.jsxs)(p,{id:"about",name:"About",className:"snap-section relative overflow-hidden bg-black px-6 pb-16 pt-[calc(var(--gnb-h)+40px)]",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -right-24 top-10 h-[300px] w-[300px] rounded-full opacity-40 blur-[100px]",style:{background:"radial-gradient(circle,var(--color-brand),transparent 70%)"}}),(0,t.jsxs)("div",{className:"relative mx-auto w-full max-w-xl",children:[(0,t.jsxs)("h2",{className:"reveal break-keep font-display text-2xl font-bold leading-[1.35]",children:[e.titlePre,(0,t.jsx)("span",{className:"text-brand",children:e.titleAccent}),e.titlePost,(0,t.jsx)("br",{}),e.titleLine2]}),(0,t.jsx)("p",{className:"reveal mt-4 break-keep text-sm leading-relaxed text-white/70",children:e.subtitle}),(0,t.jsxs)("div",{className:"reveal mt-12",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("h3",{className:"font-display text-base font-bold tracking-wide text-white/90",children:e.historyHeading}),(0,t.jsx)("span",{className:"h-px flex-1 bg-white/10"})]}),(0,t.jsx)("div",{className:"space-y-6",children:e.history.map(e=>(0,t.jsxs)("div",{className:"grid grid-cols-[3.2rem_1fr] gap-x-4 border-t border-white/10 pt-5 first:border-0 first:pt-0",children:[(0,t.jsx)("span",{className:"font-display text-lg font-bold text-brand",children:e.year}),(0,t.jsx)("div",{className:"space-y-2.5 text-sm leading-relaxed text-white/75",children:e.events.map(e=>{let a,{month:r,text:s}=(a=e.match(/^\s*(\d{1,2}\s*월)\s*[::]?\s*(.*)$/))?{month:a[1].replace(/\s+/g,""),text:a[2]}:{month:null,text:e.trim()};return(0,t.jsxs)("p",{className:"break-keep",children:[r&&(0,t.jsx)("span",{className:"mr-2 font-medium text-white/45",children:r}),s]},e)})})]},e.year))})]})]})]})}function $({careers:e}){return(0,t.jsxs)(p,{id:"careers",name:"Careers",className:"snap-section relative overflow-hidden",children:[(0,t.jsx)(P,{careers:e}),(0,t.jsx)(f,{href:"#news"})]})}function A({careers:e}){return(0,t.jsx)("a",{href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"careers",location:"careers"}),className:"reveal inline-flex items-center gap-2 rounded-full border border-white/70 bg-transparent px-9 py-4 text-base font-bold text-white transition-all hover:scale-105 hover:border-brand hover:text-brand sm:text-2xl",children:e.ctaLabel})}function M({careers:e}){return(0,t.jsx)(t.Fragment,{children:e.descLines.map((e,r)=>(0,t.jsxs)(a.Fragment,{children:[r>0&&(0,t.jsx)("br",{className:"hidden sm:block"}),e]},r))})}function P({careers:e}){return(0,t.jsxs)("div",{className:"relative flex min-h-[100svh] items-center",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black"}),e.image&&(0,t.jsx)(h.default,{src:e.image,alt:"NPIXEL Careers",fill:!0,sizes:"100vw",quality:90,style:{"--fx":e.imagePos,"--fxm":e.imagePosMobile||e.imagePos},className:"object-cover opacity-70 object-[var(--fxm)] md:object-[var(--fx)]"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/65 via-black/25 to-black/50"}),(0,t.jsx)("div",{className:"relative mx-auto w-full max-w-[1300px] px-5 py-16 sm:px-8 sm:py-24",children:(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsxs)("h2",{className:"reveal font-display text-6xl font-bold leading-tight sm:text-8xl",children:[e.titlePre,(0,t.jsx)("span",{className:"text-brand",children:e.titleAccent})]}),(0,t.jsx)("p",{className:"reveal mt-6 break-keep text-lg text-white/75 sm:text-xl",children:(0,t.jsx)(M,{careers:e})}),(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(A,{careers:e})})]})})]})}var z=e.i(22016),R=e.i(72643),T=e.i(98426);function H({latest:e}){let s=e.eclipse.length>0?"eclipse":"gransaga",[n,l]=(0,a.useState)(s),i=e[n];return(0,t.jsxs)(p,{id:"news",name:"News",className:"news-scope snap-section relative flex h-[100svh] flex-col overflow-y-auto bg-black",children:[(0,t.jsxs)("div",{className:"mx-auto my-auto w-full max-w-[1300px] px-5 py-[clamp(1.5rem,5vh,4rem)] sm:px-8",children:[(0,t.jsxs)("header",{className:"reveal mb-8 flex flex-wrap items-end justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-sm font-bold uppercase tracking-wider text-white/85",children:"NEWS"}),(0,t.jsx)(z.default,{href:"/news",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"news_more"}),className:"text-sm text-white/60 transition-colors hover:text-brand",children:"전체보기 +"})]}),(0,t.jsx)("div",{className:"reveal mb-8 flex gap-2",children:T.NEWS_GAMES.map(e=>{let a=n===e.id;return(0,t.jsx)("button",{onClick:()=>{var t;l(t=e.id),(0,r.trackEvent)("news_tab",{game:t})},className:`rounded-full border px-5 py-2 text-sm font-bold uppercase tracking-wider transition-all ${a?"border-brand bg-brand text-black":"border-white/15 text-white/65 hover:border-white/45 hover:text-white"}`,children:e.label},e.id)})}),i.length>0?(0,t.jsx)("div",{className:"fade-up grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:i.map((e,a)=>(0,t.jsx)(R.default,{post:e,className:a>=2?"hidden sm:block":""},e.id))},n):(0,t.jsx)("div",{className:"fade-up flex min-h-[240px] items-center justify-center rounded-2xl border border-dashed border-white/15 text-white/40",children:"새로운 소식을 준비 중입니다."},`empty-${n}`)]}),(0,t.jsx)(f,{href:"#contact"})]})}function W(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"glow-b pointer-events-none absolute -left-36 bottom-0 h-[480px] w-[480px] rounded-full opacity-45 blur-[110px]",style:{background:"radial-gradient(circle,var(--color-brand),transparent 70%)"}}),(0,t.jsx)("div",{className:"glow-a pointer-events-none absolute -right-28 -top-12 h-[380px] w-[380px] rounded-full opacity-40 blur-[120px]",style:{background:"radial-gradient(circle,var(--color-brand),transparent 72%)"}})]})}function B({className:e}){return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:e,"aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.8"}),(0,t.jsx)("path",{d:"M5 15V5a2 2 0 0 1 2-2h10",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function F({className:e}){return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:e,"aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M12 21s7-5.686 7-11a7 7 0 1 0-14 0c0 5.314 7 11 7 11Z",stroke:"currentColor",strokeWidth:"1.8",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"12",cy:"10",r:"2.5",stroke:"currentColor",strokeWidth:"1.8"})]})}function D({contact:e}){let[s,n]=(0,a.useState)("classic"),[l,i]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=()=>{n("refined"===document.documentElement.dataset.contactLayout?"refined":"classic")};return e(),window.addEventListener("devprefs:contactlayout",e),()=>window.removeEventListener("devprefs:contactlayout",e)},[]);let o=async(e,t)=>{try{await navigator.clipboard.writeText(e)}catch{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch{}document.body.removeChild(t)}i(!0),(0,r.trackEvent)("contact_copy",{category:t}),window.setTimeout(()=>i(!1),1800)};return(0,t.jsxs)(t.Fragment,{children:["refined"===s?(0,t.jsx)(Y,{contact:e,copy:o}):(0,t.jsx)(q,{contact:e,copy:o}),l&&(0,t.jsx)("div",{role:"status","aria-live":"polite",className:"modal-fade pointer-events-none fixed bottom-8 left-1/2 z-[120] -translate-x-1/2 rounded-full bg-white px-5 py-2.5 text-sm font-semibold text-black shadow-[0_8px_30px_rgba(0,0,0,0.5)]",children:"복사되었습니다"})]})}function q({contact:e,copy:a}){let s=e.mapQuery;return(0,t.jsxs)(p,{id:"contact",name:"Contact",className:"relative flex flex-1 flex-col justify-center overflow-hidden bg-black py-10",children:[(0,t.jsx)(W,{}),(0,t.jsxs)("div",{className:"relative mx-auto w-full max-w-[1300px] px-5 sm:px-8",children:[(0,t.jsxs)("header",{className:"reveal mb-7",children:[(0,t.jsx)("span",{className:"font-display text-xs font-bold uppercase tracking-[0.3em] text-brand",children:e.eyebrow}),(0,t.jsx)("p",{className:"mt-3 max-w-2xl break-keep text-sm text-white/70 sm:text-base",children:e.description})]}),(0,t.jsx)("div",{className:"reveal grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.contacts.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>a(e.email,e.label),"aria-label":`${e.label} 이메일 복사`,className:"group flex w-full items-center justify-between gap-3 rounded-xl border border-white/10 bg-white/[0.02] px-5 py-4 text-left transition-all hover:-translate-y-0.5 hover:border-brand/60 hover:bg-white/[0.05]",children:[(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-sm font-semibold text-white/90",children:e.label}),(0,t.jsx)("span",{className:"mt-0.5 block truncate text-sm text-brand sm:text-base",children:e.email})]}),(0,t.jsx)(B,{className:"shrink-0 text-white/30 transition-colors group-hover:text-brand"})]},e.email))}),(0,t.jsxs)("div",{className:"reveal mt-6",children:[(0,t.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,t.jsx)(F,{className:"shrink-0 text-brand"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-white/90",children:e.companyName}),(0,t.jsx)("p",{className:"break-keep text-xs leading-relaxed text-white/60",children:e.address}),(0,t.jsx)("a",{href:`https://map.naver.com/v5/search/${encodeURIComponent(s)}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"map",location:"contact"}),className:"inline-flex items-center gap-1 text-xs text-brand transition-colors hover:underline",children:"지도에서 보기 →"})]}),(0,t.jsx)("div",{className:"overflow-hidden rounded-xl border border-white/10",children:(0,t.jsx)("iframe",{title:"NPIXEL 오시는 길",src:`https://maps.google.com/maps?q=${encodeURIComponent(s)}&z=16&output=embed`,className:"h-[200px] w-full grayscale-[0.3] sm:h-[340px] lg:h-[380px]",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})]})]})]})}function Y({contact:e,copy:a}){let s=e.mapQuery;return(0,t.jsxs)(p,{id:"contact",name:"Contact",className:"relative flex flex-1 flex-col justify-center overflow-hidden bg-black py-10",children:[(0,t.jsx)(W,{}),(0,t.jsxs)("div",{className:"relative mx-auto w-full max-w-[1300px] px-5 sm:px-8",children:[(0,t.jsxs)("header",{className:"reveal mb-7",children:[(0,t.jsx)("span",{className:"font-display text-xs font-bold uppercase tracking-[0.35em] text-brand",children:e.eyebrow}),(0,t.jsx)("p",{className:"mt-3 max-w-2xl break-keep text-xl font-semibold leading-snug text-white sm:text-3xl",children:e.description})]}),(0,t.jsxs)("div",{className:"reveal grid overflow-hidden rounded-2xl border border-white/10 bg-white/[0.02] shadow-[0_20px_60px_-30px_rgba(0,0,0,0.9)] lg:grid-cols-[1.05fr_0.95fr]",children:[(0,t.jsx)("div",{className:"flex flex-col p-2 sm:p-3",children:e.contacts.map((e,r)=>(0,t.jsxs)("button",{type:"button",onClick:()=>a(e.email,e.label),"aria-label":`${e.label} 이메일 복사`,className:`group flex items-center justify-between gap-4 rounded-xl px-4 py-4 text-left transition-colors hover:bg-white/[0.05] ${r>0?"border-t border-white/[0.06]":""}`,children:[(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-[11px] font-semibold uppercase tracking-wide text-white/45",children:e.label}),(0,t.jsx)("span",{className:"mt-1 block truncate text-base font-medium text-white transition-colors group-hover:text-brand sm:text-lg",children:e.email})]}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5 text-xs text-white/25 transition-colors group-hover:text-brand",children:[(0,t.jsx)(B,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"복사"})]})]},e.email))}),(0,t.jsxs)("div",{className:"flex flex-col border-t border-white/10 lg:border-l lg:border-t-0",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5 p-5",children:[(0,t.jsx)(F,{className:"mt-0.5 shrink-0 text-brand"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-white/90",children:e.companyName}),(0,t.jsx)("p",{className:"mt-1 break-keep text-xs leading-relaxed text-white/60",children:e.address}),(0,t.jsx)("a",{href:`https://map.naver.com/v5/search/${encodeURIComponent(s)}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("cta_click",{cta:"map",location:"contact"}),className:"mt-2 inline-flex items-center gap-1 text-xs text-brand transition-colors hover:underline",children:"지도에서 보기 →"})]})]}),(0,t.jsx)("div",{className:"mt-auto border-t border-white/10",children:(0,t.jsx)("iframe",{title:"NPIXEL 오시는 길",src:`https://maps.google.com/maps?q=${encodeURIComponent(s)}&z=16&output=embed`,className:"h-[190px] w-full grayscale-[0.3] sm:h-[210px]",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})]})]})]})]})}let O=[{key:"youtube",label:"YouTube",Icon:function(){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-6 w-6","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M23.5 6.2a3 3 0 0 0-2.11-2.12C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.39.58A3 3 0 0 0 .5 6.2 31.3 31.3 0 0 0 0 12a31.3 31.3 0 0 0 .5 5.8 3 3 0 0 0 2.11 2.12C4.5 20.5 12 20.5 12 20.5s7.5 0 9.39-.58A3 3 0 0 0 23.5 17.8 31.3 31.3 0 0 0 24 12a31.3 31.3 0 0 0-.5-5.8ZM9.55 15.57V8.43L15.82 12l-6.27 3.57Z"})})}},{key:"instagram",label:"Instagram",Icon:function(){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:"h-6 w-6","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"2.5",y:"2.5",width:"19",height:"19",rx:"5.2",stroke:"currentColor",strokeWidth:"1.9"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4.2",stroke:"currentColor",strokeWidth:"1.9"}),(0,t.jsx)("circle",{cx:"17.4",cy:"6.6",r:"1.2",fill:"currentColor"})]})}},{key:"x",label:"X",Icon:function(){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-[21px] w-[21px]","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24h-6.66l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231Zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77Z"})})}},{key:"facebook",label:"Facebook",Icon:function(){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-6 w-6","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M24 12.07C24 5.4 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.05V9.41c0-3.02 1.79-4.69 4.53-4.69 1.31 0 2.69.24 2.69.24v2.97h-1.52c-1.49 0-1.96.93-1.96 1.89v2.25h3.33l-.53 3.49h-2.8V24C19.61 23.1 24 18.1 24 12.07Z"})})}}];function U({sites:e}){let[s,n]=(0,a.useState)(!1),l=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(!s)return;let e=e=>{l.current&&!l.current.contains(e.target)&&n(!1)},t=e=>{"Escape"===e.key&&n(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[s]),0===e.length)?null:(0,t.jsxs)("div",{ref:l,className:"relative w-56",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>n(e=>!e),"aria-expanded":s,"aria-haspopup":"true",className:"flex w-full items-center justify-between gap-3 border border-white/20 px-4 py-2.5 text-xs font-semibold tracking-[0.15em] text-white/80 transition-colors hover:border-brand hover:text-brand",children:["FAMILY SITE",(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",className:`transition-transform ${s?"rotate-180":""}`,"aria-hidden":!0,children:(0,t.jsx)("path",{d:"M6 15l6-6 6 6",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),s&&(0,t.jsx)("div",{className:"modal-fade absolute bottom-full left-0 mb-2 w-full overflow-hidden border border-white/15 bg-black/95 shadow-[0_-8px_30px_rgba(0,0,0,0.5)] backdrop-blur",children:e.map(e=>e.href.trim()?(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,r.trackEvent)("footer_link",{menu:e.label}),n(!1)},className:"block px-4 py-2.5 text-xs uppercase text-white/70 transition-colors hover:bg-white/5 hover:text-brand",children:e.label},e.label):(0,t.jsx)("span",{className:"block cursor-default px-4 py-2.5 text-xs uppercase text-white/40",children:e.label},e.label))})]})}function X({footer:e}){let a=O.filter(t=>e.social[t.key].trim()),s=e.familySites.filter(e=>e.label.trim());return(0,t.jsxs)("footer",{id:"footer",className:"border-t border-white/10 bg-black px-5 py-8 sm:px-8",children:[(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1300px] flex-col gap-8 sm:flex-row sm:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("img",{src:"/assets/img/npixel_logo.png",alt:"NPIXEL",className:"brand-logo h-11 w-auto"}),(0,t.jsxs)("div",{className:"mt-3 space-y-0.5 text-xs leading-relaxed text-white/55",children:[(0,t.jsx)("p",{children:"(주)엔픽셀 · NPIXEL Corp. · 공동대표이사 배봉건, 정현호"}),(0,t.jsx)("p",{children:"서울특별시 강남구 테헤란로 231 (역삼동) 센터필드 WEST TOWER 12층"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:items-end",children:[(0,t.jsx)(U,{sites:s}),a.length>0&&(0,t.jsx)("div",{className:"flex items-center gap-4",children:a.map(({key:a,label:s,Icon:n})=>(0,t.jsx)("a",{href:e.social[a],target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,r.trackEvent)("footer_link",{menu:`sns_${a}`}),"aria-label":s,className:"text-white/55 transition-all hover:scale-110 hover:text-white",children:(0,t.jsx)(n,{})},a))})]})]}),(0,t.jsxs)("div",{className:"mx-auto mt-6 flex w-full max-w-[1300px] flex-col gap-2 border-t border-white/10 pt-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-5 gap-y-1.5 text-xs",children:[(0,t.jsx)(z.default,{href:"/privacy",onClick:()=>(0,r.trackEvent)("footer_link",{menu:"privacy"}),className:"font-semibold text-white/70 transition-colors hover:text-brand",children:"개인정보처리방침"}),(0,t.jsx)(z.default,{href:"/terms",onClick:()=>(0,r.trackEvent)("footer_link",{menu:"terms"}),className:"text-white/60 transition-colors hover:text-brand",children:"이용약관"})]}),(0,t.jsxs)("p",{className:"text-xs text-white/30",children:["© ",2026," NPIXEL Corp. All rights reserved."]})]})]})}function K(){return(0,a.useEffect)(()=>{let e=[25,50,75,100],t=new Set,a=()=>{let s=document.documentElement,n=s.scrollHeight-s.clientHeight;if(n<=0)return;let l=s.scrollTop/n*100;for(let a of e)l>=a&&!t.has(a)&&(t.add(a),(0,r.trackEvent)("scroll_depth",{percent:a}));t.size===e.length&&window.removeEventListener("scroll",a)};return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[]),null}function Z(){return(0,a.useEffect)(()=>{if(!document.querySelector(".snap-home")||window.matchMedia("(pointer: coarse)").matches||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=document.documentElement,t=e.style.scrollSnapType;e.style.scrollSnapType="none";let a=!1,r=0,s=0,n=[],l=document.createElement("div");l.setAttribute("aria-hidden","true"),Object.assign(l.style,{position:"fixed",inset:"0",zIndex:"58",background:"var(--color-ink, #000)",opacity:"0",pointerEvents:"none"}),document.body.appendChild(l);let i=(t,a)=>{let r=t instanceof HTMLElement?t:null;for(;r&&r!==document.body&&r!==e;){let e=getComputedStyle(r).overflowY;if(("auto"===e||"scroll"===e)&&(a>0?r.scrollHeight-r.clientHeight-r.scrollTop:r.scrollTop)>1)return!0;r=r.parentElement}return!1},o=()=>{e.style.scrollBehavior="auto"},c=()=>{e.style.scrollBehavior=""},d=(e,t=1e3)=>{let n=window.scrollY,l=e-n;if(2>Math.abs(l))return;a=!0,o();let i=0,d=e=>{i||(i=e);let o=Math.min((e-i)/t,1);window.scrollTo(0,n+l*(o<.5?8*o*o*o*o:1-Math.pow(-2*o+2,4)/2)),o<1?s=requestAnimationFrame(d):(c(),a=!1,r=performance.now()+140)};s=requestAnimationFrame(d)},m=(e,t=200)=>{2>Math.abs(e-window.scrollY)||(a=!0,l.style.transition=`opacity ${t}ms ease`,l.style.opacity="1",n.push(window.setTimeout(()=>{o(),window.scrollTo(0,e),s=requestAnimationFrame(()=>{l.style.opacity="0",n.push(window.setTimeout(()=>{c(),l.style.transition="",a=!1,r=performance.now()+120},t+20))})},t+10)))},x=t=>{let a=(t=>{let a,r=Array.from(document.querySelectorAll(".snap-section, .game-snap"));if(!r.length)return null;let s=Array.from(new Set(r.map(e=>Math.round(e.getBoundingClientRect().top+window.scrollY)))).sort((e,t)=>e-t);if(!s.length)return null;let n=window.innerHeight,l=window.scrollY,i=Math.max(0,e.scrollHeight-n);if(t>0){let e=s.find(e=>e>l+4),t=Math.min(l+n,i);a=void 0!==e?Math.min(e,t):t}else{let e;for(let t of s)tMath.abs(a-l)?null:a})(t);null!==a&&("fade"===e.dataset.scrollMode?m(a):d(a))},u=t=>{if(t.ctrlKey)return;if(e.hasAttribute("data-intro-active"))return void t.preventDefault();let s=performance.now();if(a||s0?1:-1;i(t.target,n)||(t.preventDefault(),x(n))},h=t=>{if(t.ctrlKey||t.metaKey||t.altKey||e.hasAttribute("data-intro-active"))return;let s=t.target;if(s&&s.closest('input, textarea, select, button, a, [role="button"], [contenteditable=""], [contenteditable="true"]'))return;let n=0,l=null;switch(t.key){case"PageDown":case"ArrowDown":n=1;break;case"PageUp":case"ArrowUp":n=-1;break;case" ":case"Spacebar":n=t.shiftKey?-1:1;break;case"Home":l="top";break;case"End":l="bottom";break;default:return}let o=performance.now();if(a||o{window.removeEventListener("wheel",u),window.removeEventListener("keydown",h),s&&cancelAnimationFrame(s),n.forEach(e=>clearTimeout(e)),c(),e.style.scrollSnapType=t,a=!1,l.remove()}},[]),null}e.s(["default",0,function({content:e,latestNews:r}){let[s,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.matchMedia("(max-width: 767px)"),t=()=>l(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{intro:e.intro}),(0,t.jsx)(o,{}),(0,t.jsx)(K,{}),!s&&(0,t.jsx)(Z,{}),s?(0,t.jsxs)("main",{className:"snap-home",children:[(0,t.jsx)(u,{hero:e.hero}),(0,t.jsx)(N,{games:e.games}),(0,t.jsx)(I,{about:e.about}),(0,t.jsx)($,{careers:e.careers}),(0,t.jsx)(H,{latest:r}),(0,t.jsx)("section",{className:"snap-section flex h-[100svh] flex-col overflow-y-auto",children:(0,t.jsx)("div",{className:"my-auto w-full",children:(0,t.jsx)(D,{contact:e.contact})})}),(0,t.jsx)("div",{className:"snap-section snap-at-end",children:(0,t.jsx)(X,{footer:e.footer})})]}):(0,t.jsxs)("main",{className:"snap-home",children:[(0,t.jsx)(c,{hero:e.hero}),(0,t.jsx)(v,{games:e.games}),(0,t.jsx)(L,{about:e.about}),(0,t.jsx)($,{careers:e.careers}),(0,t.jsx)(H,{latest:r}),(0,t.jsxs)("div",{className:"snap-section flex min-h-[100svh] flex-col",children:[(0,t.jsx)(D,{contact:e.contact}),(0,t.jsx)(X,{footer:e.footer})]})]})]})}],62271)}]);