
:root { --bg: #0a0a14; --bg2: #120f2b; --panel: #15122e; --line: rgba(255,255,255,.08); --text: #f2f0ff; --dim: #a7a3c4; --faint: #6f6a92;
  --teal: #3fe3cf; --violet: #7c3aed; --violet2: #8b5cf6; --wc: #7EE787; --radius: 22px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; letter-spacing: -.01em; }
.eyebrow { font: 600 12px/1 "Inter", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }

/* header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(10,10,20,.72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1 "Sora", sans-serif; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--dim); }
.nav a { text-decoration: none; } .nav a:hover { color: var(--text); }

/* studio hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, #1d1747 0%, #120f2b 45%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(139,92,246,.5) 1px, transparent 1.5px), radial-gradient(rgba(63,227,207,.4) 1px, transparent 1.5px);
  background-size: 140px 140px, 210px 210px; background-position: 0 0, 70px 90px; opacity: .35; animation: drift 40s linear infinite; }
@keyframes drift { to { background-position: 0 -140px, 70px -120px; } }
.badge { position: relative; display: flex; flex-direction: column; align-items: center; }
.mark { width: 170px; aspect-ratio: 1; }
.mark svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 22px rgba(124,58,237,.5)); }
.sb-word { display: flex; font-size: clamp(26px, 7.4vw, 44px); line-height: 1; height: 1em; margin-top: 22px; }
.sb-sub { display: flex; font-size: clamp(13px, 3.7vw, 22px); line-height: 1; height: 1em; margin-top: .75em; }
.sb-word svg, .sb-sub svg { height: 1em; display: block; }
.hero p.lead { position: relative; margin: 30px auto 0; max-width: 32em; color: var(--dim); font-size: 17px; }
.hero .cta { position: relative; margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; text-decoration: none; font: 600 15px/1 "Inter", sans-serif; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.btn.primary { background: linear-gradient(135deg, var(--teal), var(--violet2)); color: #0a0a14; border: 0; }
.btn:hover { filter: brightness(1.08); }
/* logo animation: same sequence as the in-game splash, quicker */
.badge .ae-hex { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1s cubic-bezier(.6,.05,.3,1) forwards .1s; }
.badge .ae-hex-solid, .badge .ae-teal, .badge .ae-slot { opacity: 0; }
.badge .ae-hex-solid { animation: fade .01s linear forwards 1.1s; }
.badge .ae-blk { opacity: 0; transform: translateY(-30px); animation: drop .5s cubic-bezier(.25,1.4,.5,1) forwards; animation-delay: calc(.8s + var(--i) * .15s); }
.badge .ae-teal { animation: fade .45s ease forwards 2.1s; }
.badge .ae-hero-lift { animation: lift .55s cubic-bezier(.3,1.5,.5,1) forwards 2.2s, hover 2.6s ease-in-out infinite 2.75s; }
.badge .ae-slot { animation: fade .5s ease forwards 2.25s, pulse 2.6s ease-in-out infinite 2.8s; }
.badge .sb-word svg, .badge .sb-sub svg { opacity: 0; transform: translateY(.35em); animation: rise .45s cubic-bezier(.2,.9,.3,1) forwards; }
.badge .sb-word svg { animation-delay: calc(2.5s + var(--k) * .07s); }
.badge .sb-sub svg { animation-delay: calc(3.3s + var(--k) * .06s); }
@keyframes trace { to { stroke-dashoffset: 0; } } @keyframes fade { to { opacity: 1; } } @keyframes drop { to { opacity: 1; transform: none; } }
@keyframes lift { to { transform: translateY(-14px); } } @keyframes hover { 0%,100% { transform: translateY(-14px); } 50% { transform: translateY(-19px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .65; } } @keyframes rise { to { opacity: 1; transform: none; } }
.fade-in { opacity: 0; animation: fade .8s ease forwards 3.4s; }

/* sections */
section.block { padding: 76px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 5vw, 40px); margin-top: 10px; }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.game { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.game:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.45); }
.game .cover { aspect-ratio: 2 / 1; overflow: hidden; background: #000; }
.game .cover img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { font-size: 24px; }
.game p { color: var(--dim); font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.chip.on { color: var(--teal); border-color: rgba(63,227,207,.35); }
.links { margin-top: auto; padding-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.links a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.links a:hover { border-color: var(--teal); }
.contact { text-align: center; padding: 64px 22px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.22), transparent 70%), var(--panel); }
.contact h2 { font-size: clamp(26px, 5vw, 36px); margin: 10px 0 12px; }
.contact p { color: var(--dim); margin-bottom: 22px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--dim); text-decoration: none; margin-left: 16px; } footer a:first-child { margin-left: 0; }

/* game page */
.wc { --text: #F5F7FA; background: #0F1115; }
.wc-hero { padding: 56px 0 30px; background: radial-gradient(900px 500px at 50% -10%, rgba(126,231,135,.14), transparent 70%); }
.wc-hero .cover { border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.wc-hero h1 { font-family: "Comfortaa", "Sora", sans-serif; font-size: clamp(34px, 7vw, 56px); margin: 30px 0 8px; }
.wc-hero h1 b { color: var(--wc); text-shadow: 0 0 24px rgba(126,231,135,.6); }
.wc-hero .lead { color: #a9b0bc; font-size: 18px; max-width: 36em; }
.wc .eyebrow { color: var(--wc); }
.wc .btn.primary { background: var(--wc); color: #0F1115; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: #a9b0bc; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 10px var(--wc); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: 18px; background: #171A20; border: 1px solid rgba(255,255,255,.05); }
.feature h3 { font-size: 17px; margin-bottom: 6px; font-family: "Comfortaa", "Sora", sans-serif; }
.feature p { color: #8D95A3; font-size: 14.5px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shots img { border-radius: 18px; border: 1px solid rgba(255,255,255,.06); }

/* policy pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); margin: 12px 0 6px; }
.doc .meta { color: var(--faint); font-size: 14px; margin-bottom: 26px; }
.doc h2, .doc h4 { font-family: "Sora", sans-serif; font-size: 18px; margin: 30px 0 8px; text-transform: none; letter-spacing: 0; }
.doc p, .doc li { color: #c9c6e0; margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .box { margin: 22px 0; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(63,227,207,.3); background: rgba(63,227,207,.06); }
.doc .box p:last-child { margin-bottom: 0; }
.doc code { font-size: 14px; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; }
.doc a { color: var(--teal); }
.doc .muted { color: var(--faint); font-size: 14px; }

@media (max-width: 760px) {
  .games, .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .shots img { scroll-snap-align: center; }
  .nav { gap: 14px; }
  .hero { padding: 54px 0 64px; }
  .mark { width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge *, .hero::before, .fade-in { animation: none !important; }
  .badge .ae-hex { stroke-dashoffset: 0; }
  .badge .ae-hex-solid, .badge .ae-blk, .badge .ae-teal, .badge .ae-slot, .badge svg, .fade-in { opacity: 1 !important; transform: none !important; }
  .badge .ae-hero-lift { transform: translateY(-14px) !important; }
}
