:root { --night:#17123a; --violet:#3a2a78; --twilight:#6a3f9e; --horizon:#f2994a; --gold:#f6c453; --cream:#fff3d6; --muted:#c3baea; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background: var(--night); color: var(--cream);
       font: 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--gold); }
a:focus-visible, .btn:focus-visible, .soon:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", system-ui, sans-serif; line-height: 1.15; }
h2 { font-size: 28px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 20px; font-weight: 500; color: var(--gold); margin: 18px 0 6px; }
p { margin: 0 0 14px; }
ul { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 4px; }

/* site header + nav */
.site-nav { position: sticky; top: 0; z-index: 10; background: rgba(23,18,58,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,243,214,.12); }
.site-nav .in { max-width: 960px; margin: 0 auto; padding: 10px 20px; display:flex; flex-wrap:wrap; gap:6px 22px; align-items:center; justify-content:space-between; }
.site-nav .brand { display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--cream); font: 600 19px/1 "Fredoka", "Nunito", system-ui, sans-serif; }
.site-nav .brand svg { width: 34px; height: 34px; }
.site-nav nav a { margin-left: 18px; text-decoration:none; font-weight: 700; color: var(--cream); padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav nav a:first-child { margin-left: 0; }
.site-nav nav a:hover { border-bottom-color: var(--gold); }
.site-nav nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* page hero (inner pages) */
.page-hero { text-align:center; padding: 52px 20px 70px; background: linear-gradient(180deg, #241a58 0%, #4b2f85 70%, #6a3f9e 100%); }
.page-hero h1 { margin: 0; font-size: clamp(34px, 8vw, 52px); font-weight: 600; }
.page-hero p { max-width: 34em; margin: 12px auto 0; color: var(--cream); font-size: 19px; }

/* layout */
main.wrap { max-width: 960px; margin: 0 auto; padding: 28px 20px 24px; }
.card { background: rgba(255,243,214,.05); border: 1px solid rgba(255,243,214,.14); border-radius: 22px; padding: 26px 26px 20px; margin: 0 0 22px; }
.card.narrow, main .narrow { max-width: 760px; margin-left:auto; margin-right:auto; }
.tag { margin: 4px 0 0; color: var(--muted); }
.btn, .soon { display:inline-block; padding:10px 18px; border-radius:12px; background: var(--gold); color: var(--night); font-weight:800; text-decoration:none; margin: 4px 8px 8px 0; }
.btn.ghost { background: transparent; color: var(--gold); border: 2px solid var(--gold); padding: 8px 16px; }
.more { margin-right:16px; display:inline-block; }
.game { display:flex; gap:20px; align-items:center; margin-bottom:16px; }
.game svg, .game img { flex:none; border-radius:22px; box-shadow:0 8px 30px rgba(0,0,0,.4); }

/* screenshot placeholders: swap the .shot div for <img class="shot" src="..."> later */
.shots { display:flex; gap:14px; overflow-x:auto; padding: 4px 2px 14px; margin: 6px 0 14px; scroll-snap-type: x proximity; }
.shot { flex: 0 0 auto; width: 140px; aspect-ratio: 9 / 19.5; border-radius: 18px; scroll-snap-align: start;
        border: 1px solid rgba(255,243,214,.2); box-shadow: 0 8px 24px rgba(0,0,0,.35);
        background: linear-gradient(180deg, #2b1d66, #4b2f85 60%, #c96a5a);
        display:flex; align-items:flex-end; justify-content:center; padding: 12px; text-align:center;
        font-size: 13px; font-weight: 700; color: var(--cream); opacity: .9; }
.shots a { flex: 0 0 auto; display: block; line-height: 0; border-radius: 18px; scroll-snap-align: start; cursor: zoom-in; }
.shots a:hover .shot { opacity: 1; filter: brightness(1.06); }
.shots a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
img.shot { object-fit: cover; padding: 0; display:block; height:auto; }
.shot.ff { background: linear-gradient(180deg, #bfe3f2, #e9f4f7 60%, #f2d7a0); color: #3b3b4f; }
img.shot.ff { width: 300px; aspect-ratio: 13 / 6; }

/* grids */
.grid2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.grid3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.swatch { border-radius: 14px; padding: 16px 14px; min-height: 88px; display:flex; flex-direction:column; justify-content:flex-end; font-weight:700; }
.swatch small { font: 500 13px/1.3 ui-monospace, Menlo, Consolas, monospace; opacity:.85; }
.logo-tile { border-radius: 18px; padding: 26px; display:flex; align-items:center; justify-content:center; min-height: 170px; }
.logo-tile svg { width: 120px; max-width: 100%; height: auto; aspect-ratio: 1; }

/* FAQ */
details { border-top: 1px solid rgba(255,243,214,.14); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid rgba(255,243,214,.14); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; }

footer { max-width: 960px; margin: 12px auto 0; padding: 18px 20px 40px; font-size: 14px; color: var(--muted); border-top: 1px solid rgba(255,243,214,.14); }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) { .star { animation: tw 3.5s ease-in-out infinite; } .star:nth-child(2n){ animation-delay:1.2s } .star:nth-child(3n){ animation-delay:2.2s } }
@keyframes tw { 50% { opacity:.25; } }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .logo-tile { padding: 16px; min-height: 0; } .game { flex-direction: column; align-items: flex-start; } .card { padding: 22px 18px 16px; } .site-nav nav a { margin-left: 12px; } .shot { width: 128px; } img.shot.ff { width: 250px; } }

/* arcade entry cards (home, games) */
.arcade-card { background: linear-gradient(135deg, #0a0d26, #17093a); border: 1px solid rgba(25,230,255,.45); box-shadow: 0 0 28px rgba(25,230,255,.12); }
.arcade-card h2 { color: #19e6ff; }
.arcade-card .tag { color: #9aa6ee; }
.arcade-card .soon { background: transparent; color: #ffe933; border: 2px solid #ffe933; padding: 8px 14px; }
.btn.arc { background: #19e6ff; color: #04101a; }
.arcade-card a { color: #19e6ff; }
img.shot.vb { width: 300px; aspect-ratio: 2 / 1; object-fit: cover; }
@media (max-width: 520px) { img.shot.vb { width: 250px; } }

/* studio story timeline (story page) */
.tline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.tline:before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 3px; transform: translateX(-50%); border-radius: 3px; background: linear-gradient(var(--gold), var(--horizon), var(--twilight)); }
.tline li { position: relative; width: 50%; margin: 0; padding: 0 34px 22px 0; }
.tline li:nth-child(even) { margin-left: 50%; padding: 0 0 22px 34px; }
.tline li:before { content: ""; position: absolute; top: 16px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 3px solid var(--gold); box-shadow: 0 0 10px rgba(246,196,83,.5); }
.tline li:nth-child(even):before { right: auto; left: -8px; }
.tline li.now:before { background: var(--gold); }
.tline .box { background: var(--violet); border-radius: 16px; padding: 12px 16px; }
.tline .when { display: block; font: 600 13px/1.3 "Fredoka", "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.tline h3 { margin: 2px 0 4px; font-size: 19px; color: var(--cream); }
.tline p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tline .btn { margin-top: 10px; }
@media (max-width: 640px) {
  .tline:before { left: 8px; transform: none; }
  .tline li, .tline li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 18px 34px; }
  .tline li:before, .tline li:nth-child(even):before { left: 0; right: auto; }
}
