@font-face{font-family:Raleway;src:url('assets/raleway.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#1d1e24;--text:#c9cad2;--heading:#f4f2fa;--muted:#9c9dab;--accent:#aaa4ff;--discord:#5865f2;--line:#ffffff15}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--bg);color:var(--text);font-family:Raleway,Arial,sans-serif;font-size:17px;line-height:1.8}body.modal-open{overflow:hidden}a{color:inherit;text-underline-offset:5px}button{font:inherit}img{display:block;max-width:100%;height:auto}h1,h2,p{margin:0}h2{color:var(--heading);font-size:clamp(29px,3.4vw,43px);line-height:1.25;font-weight:600;letter-spacing:-1.1px}a,button{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid #bcb7ff;outline-offset:6px}.wrap{width:min(1100px,calc(100% - 64px));margin-inline:auto}.section{padding-block:25px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2.4px;text-transform:uppercase;color:var(--accent);margin-bottom:18px}.skip-link{position:absolute;left:20px;top:-100px;z-index:10;background:white;color:black;padding:10px 20px}.skip-link:focus{top:20px}
.hero{position:relative;background:#151520 url('assets/castle.webp') center top/cover no-repeat;padding:64px 0 28px;isolation:isolate}.hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#10101d08 0%,#14142040 40%,var(--bg) 100%)}.hero-content{text-align:center}.hero h1{margin:0 auto 30px;max-width:720px}.game-logo{width:100%;height:auto}.hero .eyebrow{color:#c3bfff}.hero-intro{font-size:19px;line-height:1.7;color:#e2dfeb;text-shadow:0 2px 14px #000}.actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:28px}.button{min-height:54px;display:inline-flex;align-items:center;justify-content:center;gap:13px;padding:13px 24px;text-decoration:none;border-radius:6px;border:1px solid transparent;font-weight:700;font-size:14px;line-height:1.5;transition:transform .18s,background .18s,box-shadow .18s}.button:hover{transform:translateY(-2px)}.button-discord{background:var(--discord);color:white;box-shadow:0 6px 25px #4147ae25}.button-discord:hover{background:#6975ff;box-shadow:0 8px 30px #4147ae40}.button svg{width:22px;height:22px;fill:currentColor}.button-outline{background:#191a2d9c;border-color:#ffffff45;color:#fff;backdrop-filter:blur(8px)}.button-outline:hover{background:#34334e}.trailer{display:block;position:relative;width:min(720px,100%);margin:44px auto 0;aspect-ratio:16/9;border:1px solid #ffffff24;border-radius:8px;overflow:hidden;box-shadow:0 20px 60px #0006}.trailer>img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.trailer:hover>img{transform:scale(1.025)}.trailer-overlay{position:absolute;inset:0;background:linear-gradient(#10121b20,#10121b80);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:white;font-size:13px;font-weight:700;letter-spacing:.4px}.play-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#ffffffeb;color:#25233d;padding-left:4px;font-size:22px;box-shadow:0 5px 30px #0004}.intro{text-align:center;max-width:810px}.intro>p:not(.eyebrow){max-width:690px;margin:25px auto}.text-link{color:var(--accent);font-size:14px;font-weight:600;text-decoration:none;border-bottom:1px solid #aaa4ff50;padding-bottom:7px}.text-link:hover{color:#d3cfff}.feature-section{background:#22232a;border-block:1px solid var(--line);padding:84px 0}.feature{display:grid;grid-template-columns:1.15fr 1fr;gap:70px;align-items:center}.feature+.feature{margin-top:86px}.feature-reverse .feature-image{order:2}.feature-reverse .feature-copy{order:1}.feature-image{display:block;overflow:hidden;border-radius:7px;border:1px solid #ffffff18;box-shadow:0 16px 40px #0003}.feature-image img{width:100%;transition:transform .35s}.feature-image:hover img{transform:scale(1.025)}.feature-copy .eyebrow{font-size:10px;letter-spacing:1.8px}.feature-copy p:last-child{margin-top:22px;font-size:16px}.section-heading{display:flex;justify-content:space-between;gap:32px;align-items:end;margin-bottom:34px}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.gallery>a{position:relative;display:block;overflow:hidden;border-radius:6px;border:1px solid #ffffff18;background:#111}.gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .3s,opacity .3s}.gallery>a:hover img{transform:scale(1.04);opacity:.8}.gallery>a>span{position:absolute;bottom:9px;right:12px;background:#15151caa;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:15px;color:#fff}.community{position:relative;text-align:center;overflow:hidden;background:radial-gradient(ellipse at 50% 110%,#48437a70,transparent 65%),#242331;border-block:1px solid #aaa4ff24}.community-inner{max-width:720px}.community p:not(.eyebrow){max-width:590px;margin:24px auto 28px}.community .button{padding-inline:30px}.footer{background:#17181d;padding:30px 0}.footer-inner{display:flex;align-items:center;gap:28px}.footer img{width:150px;height:auto;filter:invert(1);opacity:.7}.footer p{font-size:11px;color:var(--muted)}.footer nav{display:flex;gap:23px;margin-left:auto}.footer a{font-size:12px;text-decoration:none;color:#c7c5d2}.footer a:hover{color:white}
dialog{width:min(1100px,calc(100% - 40px));max-height:94dvh;padding:18px;border:1px solid #ffffff30;background:#18191f;color:var(--text);border-radius:10px;box-shadow:0 20px 90px #0008}dialog::backdrop{background:#080910ed;backdrop-filter:blur(8px)}.dialog-toolbar{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:14px}.dialog-toolbar>span{font-size:12px}.close-button,.gallery-controls button{background:transparent;border:1px solid #ffffff30;border-radius:4px;color:white;cursor:pointer;padding:7px 13px;font-size:13px}.close-button:hover,.gallery-controls button:hover{background:#ffffff15}#media-content img{max-height:73dvh;width:100%;object-fit:contain}#media-content iframe{display:block;width:100%;aspect-ratio:16/9;border:0}.gallery-controls{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:12px}.gallery-controls[hidden]{display:none}
@media(min-width:1600px){.hero{background-size:100% auto}}@media(max-width:800px){.wrap{width:calc(100% - 40px)}.hero{padding-top:48px}.hero h1{max-width:600px}.feature{gap:32px}.feature-copy p:last-child{font-size:14px}.feature-copy .eyebrow{letter-spacing:1px}.gallery{gap:12px}.section{padding-block:25px}.footer-inner{flex-wrap:wrap;gap:15px 24px}.footer nav{margin-left:0;width:100%}.feature-section{padding-block:64px}}
@media(max-width:560px){body{font-size:16px}.hero{padding-top:40px;background-size:auto 740px;background-position:50% 0}.hero h1{margin-bottom:28px}.hero-intro{font-size:16px}.hero .eyebrow{font-size:9px;letter-spacing:1.9px}.actions{flex-direction:column;align-items:stretch;gap:11px;margin-inline:auto;max-width:330px}.button{font-size:13px}.trailer{margin-top:32px}.play-icon{width:50px;height:50px;font-size:17px}.trailer-overlay{font-size:11px;gap:7px}.desktop-break{display:none}.section{padding-block:25px}.intro h2{font-size:30px}.intro>p:not(.eyebrow){margin:22px auto}.feature{grid-template-columns:1fr;gap:25px}.feature+.feature{margin-top:52px}.feature-reverse .feature-image,.feature-reverse .feature-copy{order:initial}.feature-copy h2 br{display:none}.feature-copy h2{font-size:29px}.feature-copy p:last-child{font-size:15px;margin-top:15px}.feature-copy .eyebrow{margin-bottom:12px}.section-heading{display:block}.gallery{grid-template-columns:repeat(2,1fr);gap:12px}.gallery img{aspect-ratio:4/3}.community h2{font-size:31px}.footer-inner{justify-content:center;text-align:center}.footer img{width:130px}.footer p{width:100%}.footer nav{justify-content:center;gap:24px}.dialog-toolbar>span{max-width:65%;line-height:1.4}dialog{padding:12px;width:calc(100% - 20px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

.footer nav a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:6px}.footer nav a:hover{background:#ffffff0c}.footer nav svg{width:22px;height:22px;fill:currentColor}


/* A little dream-world atmosphere, without changing the page composition. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 35% 25%, #8b7dff22, transparent 55%);
  animation: dream-glow 9s ease-in-out infinite alternate;
}
@keyframes dream-glow { from { opacity: .35; } to { opacity: 1; } }
.button { position: relative; overflow: hidden; }
.button > span, .text-link > span {
  display: inline-block;
  transition: transform .25s ease;
}
.button:hover > span, .text-link:hover > span { transform: translate(2px, -2px); }
.button:active { transform: translateY(0) scale(.98); }
.button-discord::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, #ffffff1f 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .65s ease;
}
.button-discord:hover::after { transform: translateX(120%); }
.play-icon { transition: transform .3s ease, box-shadow .3s ease; }
.trailer:hover .play-icon { transform: scale(1.08); box-shadow: 0 0 0 10px #ffffff12, 0 5px 30px #0004; }
.feature-image, .gallery > a { transition: border-color .3s ease, box-shadow .3s ease; }
.feature-image:hover, .gallery > a:hover { border-color: #aaa4ff70; box-shadow: 0 12px 36px #08081155; }
.gallery > a > span { transition: transform .25s ease, background .25s ease; }
.gallery > a:hover > span { transform: translate(2px, -2px); background: #5865f2; }
.footer nav a { transition: transform .2s ease, color .2s ease, background .2s ease; }
.footer nav a:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

.newgrounds-link { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; color: #fda238; border-bottom-color: #fda23866; }
.newgrounds-link:hover { color: #ffc46b; border-bottom-color: currentColor; }
.newgrounds-link svg { width: 22px; height: 22px; flex: 0 0 22px; fill: currentColor; }

/* Applied only by JS to offscreen groups; prevents a visible flash before reveal. */
.reveal-pending { opacity: 0; transform: translate3d(0, 12px, 0); }
.reveal-pending:focus-within { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-pending { opacity: 1; transform: none; }
}
