@font-face {
  font-family: "Pixel Display";
  src: url("/static/pixel-display.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #11151b;
  --surface: #1b2029;
  --ink: #f5efe2;
  --muted: #b6bcc8;
  --line: #ffffff29;
  --studio: #9ae5ed;
  --accent: var(--studio);
  --accent-ink: #281a18;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --pixel: "Pixel Display", monospace;
  --jellyjaunt-display: var(--pixel);
  --gutter: clamp(24px, 4.2vw, 64px);
  --section-space: clamp(48px, 7vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; }
a, button, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; font-weight: 550; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(40px, 6.4vw, 88px); }
h2 { font-size: clamp(30px, 3.5vw, 48px); }
h3 { font-size: 22px; }
p { max-width: 62ch; }
.container { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.pixel { font-family: var(--pixel); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.eyebrow { font: 12px/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.quiet, figcaption { color: var(--muted); font-size: 12px; line-height: 1.65; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 12px 18px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { background: var(--canvas); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex-shrink: 0; }
.spark-nav-mark { display: inline-flex; align-items: center; gap: 12px; }
.spark-nav-mark img, .spark-hero-art img { image-rendering: pixelated; }
.spark-nav-symbol { width: 48px; height: 48px; }
.spark-nav-name { width: 128px; height: auto; }
.site-nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(8px, 2.2vw, 28px); }
.site-nav a, .footer-nav a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 10px 2px; font-size: 14px; }
.site-nav a:hover, .footer-nav a:hover { color: var(--studio); }
.site-nav span { color: var(--studio); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; min-width: 44px; padding: 13px 20px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; line-height: 1.6; transition: background .16s, color .16s; }
.button:hover { background: var(--ink); border-color: var(--ink); }
.button span { font-size: 20px; font-weight: 400; }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--surface); border-color: var(--muted); }
.text-link, .back-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; min-width: 44px; padding-block: 8px; font-size: 14px; }
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: #ffffff4d; text-underline-offset: 7px; }
.text-link span { color: var(--accent); }
.text-link:hover { color: var(--accent); }
.back-link { color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 3px; padding: 5px 9px; color: var(--ink); font-size: 12px; line-height: 1.6; white-space: nowrap; }
.status:before { content: ""; width: 5px; height: 5px; background: var(--accent); }
.theme-jellyloop, .theme-jellyjaunt { --accent: #e9b4f9; --accent-ink: #291331; }
.theme-starfall { --accent: #e9cc8e; --accent-ink: #272014; }
.theme-tumbletrek { --accent: #ffd58e; --accent-ink: #3a2024; }
.art-canyon img { width:100%; height:100%; object-fit:cover; image-rendering:pixelated; }
.theme-jellyjaunt .game-name, .theme-jellyjaunt .featured-title, .theme-jellyjaunt .card-title-row h2 { font-family: var(--jellyjaunt-display); }
.frame { background: var(--surface); overflow: hidden; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.art-link { display: block; border-radius: 1px; }
.art { width: 100%; aspect-ratio: 1; overflow: hidden; background: #07172e; }
.art-aquarium img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; image-rendering: pixelated; }
.art-sky { display: grid; grid-template-rows: 9fr 7fr; background: #0b1123; }
.scene-view, .puzzle-view { min-height: 0; overflow: hidden; }
.scene-view img, .puzzle-view img { width: 100%; height: 100%; object-fit: cover; }
.scene-view img { object-position: 60% 48%; }
.puzzle-view { border-top: 1px solid #e9cc8e40; }
.puzzle-view img { object-position: 50% 66%; image-rendering: pixelated; }
.spark-intro { display: grid; gap: 32px; padding-block: 32px; }
.spark-signature { min-width: 0; }
.spark-signature .eyebrow { color: var(--muted); margin-bottom: 24px; }
.spark-hero-art { display: flex; align-items: center; gap: 16px; width: min(100%, 336px); }
.spark-hero-symbol { flex: 0 0 64px; width: 64px; height: 64px; }
.spark-hero-name { display: block; min-width: 0; flex: 1; }
.spark-hero-name img { width: 100%; height: auto; }
.spark-signoff { color: var(--muted); font-size: 12px; margin-top: 16px; }
.spark-intro h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.13; }
.spark-intro h1 span { color: var(--ink); }
.spark-intro-copy > p { margin-top: 20px; max-width: 40ch; color: var(--muted); font-size: 16px; }
.studio-games { padding-bottom: var(--section-space); scroll-margin-top: 24px; }
.featured-game { display: grid; gap: 24px; max-width: 560px; margin-inline: auto; }
.featured-game > * { min-width: 0; }
.featured-game + .featured-game { margin-top: var(--section-space); }
.featured-heading .card-title-row { padding-bottom: 12px; }
.featured-heading .featured-title { font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.featured-title { min-width: 0; max-width: 100%; }
.game-title-art { display: block; max-width: 100%; height: auto; image-rendering: auto; }
.featured-title .game-title-art { width: clamp(240px, 32vw, 440px); }
.featured-platform { color: var(--muted); font-size: 14px; }
.featured-art { display: block; width: 100%; }
.featured-details { max-width: 42ch; }
.featured-premise { color: var(--muted); font-size: 18px; margin-bottom: 24px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 40px; }
.game-card { min-width: 0; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 20px; }
.card-title-row h2 { font-family: var(--pixel); font-size: clamp(32px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.025em; }
.game-card-link > p { color: var(--muted); font-size: 16px; margin-top: 16px; }
.game-card-link:hover h2 { color: var(--accent); }
.card-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.card-end > span { color: var(--muted); font-size: 12px; }
.studio-note { border-top: 1px solid var(--line); background: #161b23; }
.note-inner { display: grid; gap: 24px; padding-block: var(--section-space); }
.note-inner h2 { margin-bottom: 24px; }
.note-inner p:not(.eyebrow) { color: var(--muted); margin-bottom: 18px; max-width: 42ch; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.split-layout > * { min-width: 0; }
.game-hero { padding-top: 20px; padding-bottom: 32px; align-items: center; }
.game-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 20px; }
.game-labels .eyebrow { color: var(--muted); }
.game-name { font-size: clamp(52px, 6.7vw, 92px); color: var(--accent); margin-bottom: 18px; }
.game-line { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.17; letter-spacing: -.035em; font-weight: 500; margin-bottom: 18px; }
.game-premise { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 41ch; margin-bottom: 24px; }
.hero-media { min-width: 0; }
figcaption { padding-top: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 24px; }
.facts > div { min-width: 0; max-width: 100%; flex: 1 1 160px; }
.facts dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.play-section { padding-block: var(--section-space); align-items: center; }
.play-copy .eyebrow { margin-bottom: 20px; }
.play-copy h2 { margin-bottom: 32px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 20px; border-top: 1px solid var(--line); padding-block: 24px; }
.feature-number { color: var(--accent); font: 12px/1.8 var(--mono); flex: 0 0 24px; }
.feature-list h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.feature-list p { color: var(--muted); font-size: 16px; }
.capture { min-width: 0; }
.capture-mat { display: flex; justify-content: center; background: var(--surface); padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); }
.capture-mat img { width: auto; height: auto; max-height: 560px; max-width: 100%; object-fit: contain; }
.help-band { background: #171c24; border-block: 1px solid var(--line); }
.help-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; padding-block: 40px; }
.help-inner .eyebrow { margin-bottom: 12px; }
.help-inner h2 { font-size: 30px; margin-bottom: 12px; }
.game-privacy { max-width: 36ch; }
.next-game { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-block: clamp(40px, 5vw, 72px); }
.next-game .eyebrow { margin-bottom: 12px; }
.next-game h2 { margin-bottom: 12px; }
.next-game p:not(.eyebrow) { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-top: 40px; }
.site-footer .spark-nav-symbol { width: 32px; height: 32px; }
.site-footer .spark-nav-name { width: 112px; }
.footer-main { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; align-items: start; }
.footer-main p { color: var(--muted); margin-top: 14px; font-size: 12px; }
.footer-nav { gap: 4px 24px; }
.footer-nav a { font-size: 12px; }
.footer-end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; padding-block: 20px; font-size: 12px; color: var(--muted); }
.text-page { max-width: 800px; padding-block: var(--section-space); }
.text-page > .eyebrow { margin-bottom: 24px; }
.text-page h1 { font-size: clamp(40px, 5.8vw, 72px); }
.page-lede { color: var(--muted); margin-block: 24px 28px; font-size: 18px; }
.prose { margin-top: 40px; }
.prose h2 { font-size: 28px; margin-block: 36px 18px; }
.prose h3 { font-size: 22px; margin-block: 28px 16px; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; }
.prose p { margin-bottom: 18px; }
.prose li { margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }
.policy-list { display: grid; gap: 32px; margin-top: 40px; }
.policy-list article { border-top: 1px solid var(--line); padding-top: 28px; }
.policy-list h2 { font-size: 30px; margin-bottom: 18px; }
.policy-list p { color: var(--muted); margin-bottom: 14px; }
.legal-page > .quiet { margin-top: 24px; }

@media (max-width: 29.99rem) {
  .header-inner { gap: 12px; min-height: 80px; }
  .site-header .spark-nav-mark { gap: 8px; }
  .site-header .spark-nav-symbol { width: 32px; height: 32px; }
  .site-header .spark-nav-name { width: 96px; }
  .site-nav { gap: 8px; }
  .site-nav a { gap: 4px; }
  .site-nav a span { display: none; }
  .spark-intro { padding-block: 36px 40px; gap: 28px; }
}

@media (min-width: 37.5rem) {
  .spark-hero-art { width: min(100%, 496px); }
  .spark-hero-symbol { display: none; }
}

/* A shared stacked-to-split transition keeps the site responsive. */
@media (min-width: 60rem) {
  .spark-intro { grid-template-columns: 1.08fr 1fr; align-items: center; gap: 80px; padding-block: 64px; }
  .spark-intro-copy > p { max-width: 36ch; }
  .featured-game { max-width: 1120px; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 24px clamp(40px, 5vw, 80px); }
  .featured-art { grid-column: 1; grid-row: 1 / 3; }
  .featured-heading { grid-column: 2; grid-row: 1; align-self: end; }
  .featured-details { grid-column: 2; grid-row: 2; align-self: start; }
  .note-inner { grid-template-columns: 1fr 1.5fr; gap: 64px; }
  .split-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 80px); }
  .game-hero { padding-top: 40px; padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

.support-email { display: block; width: fit-content; max-width: 100%; min-height: 44px; padding-block: 10px; margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }

/* Studio: a welcoming doorway into the individual game worlds. */
.studio-hero { overflow: hidden; background: radial-gradient(ellipse at 78% 45%, #252044 0, #151a2a 32%, var(--canvas) 70%); border-bottom: 1px solid var(--line); }
.studio-hero-inner { min-height: 480px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); align-items: center; gap: 40px; padding-block: clamp(64px, 8vw, 112px); }
.studio-hero-copy { position: relative; z-index: 1; }
.studio-hero-copy .eyebrow { margin-bottom: 22px; }
.studio-hero h1 { max-width: 11ch; font-size: clamp(48px, 6.4vw, 86px); line-height: 1.02; }
.studio-hero h1 em { color: #b7edeb; font-family: Georgia, serif; font-weight: 400; }
.studio-hero-copy > p:not(.eyebrow) { color: #c5c9d5; max-width: 38ch; margin-top: 24px; font-size: 18px; }
.studio-hero-button { margin-top: 30px; }
.studio-hero-illustration { position: relative; width: min(100%, 390px); aspect-ratio: 1; justify-self: center; }
.hero-orbit { position: absolute; inset: 11%; border: 1px solid #9ae5ed40; border-radius: 50%; }
.hero-orbit-one { transform: rotate(-30deg) scaleY(.67); }
.hero-orbit-two { transform: rotate(35deg) scaleY(.67); border-color: #e9b4f940; }
.hero-sigil { position: absolute; width: 34%; height: auto; left: 33%; top: 33%; image-rendering: pixelated; filter: drop-shadow(0 0 24px #6edce253); }
.hero-jelly, .hero-tumble { position: absolute; image-rendering: pixelated; width: 27%; height: auto; }
.hero-jelly { top: 7%; left: 10%; }
.hero-tumble { right: 4%; bottom: 8%; }
.hero-spark { position: absolute; color: #f9d69b; font-size: 20px; }
.hero-spark-one { right: 17%; top: 16%; } .hero-spark-two { left: 13%; bottom: 18%; color: #c8aaf4; font-size: 13px; }
.studio-games { padding-block: var(--section-space); }
.studio-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 32px; }
.studio-section-heading .eyebrow { margin-bottom: 12px; }
.studio-section-heading h2 { font-size: clamp(36px, 4vw, 54px); }
.studio-section-heading > p { color: var(--muted); max-width: 31ch; }
.studio-game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.studio-game-grid .featured-game { display: flex; flex-direction: column; gap: 0; margin: 0; max-width: none; background: #1a202b; border: 1px solid #ffffff20; }
.studio-world { display: block; position: relative; overflow: hidden; aspect-ratio: 1.25; background: #07172e; }
.studio-world-tumbletrek { background: #552548; }
.world-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.world-background { object-position: center 22%; }
.world-scenery { object-position: center 65%; }
.world-character, .world-detail { position: absolute; image-rendering: pixelated; height: auto; }
.jelly-character { width: 32%; left: 34%; top: 31%; filter: drop-shadow(0 0 16px #b490ed88); }
.jelly-food { width: 13%; left: 65%; top: 24%; }
.tumble-character { width: 31%; left: 35%; top: 35%; filter: drop-shadow(0 8px 8px #3b182080); }
.world-invitation { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 22px; align-items: center; padding: 8px 12px; color: #fff; background: #11151bd9; border: 1px solid #ffffff50; font-size: 12px; font-weight: 600; }
.studio-world:hover .world-invitation { background: #fff; color: #11151b; }
.studio-game-grid .featured-heading { align-self: stretch; }
.featured-content { display: flex; flex: 1; flex-direction: column; padding: clamp(24px, 3vw, 36px); }
.featured-platform { color: var(--accent); font: 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.featured-title .game-title-art { width: min(100%, 340px); max-height: 58px; object-fit: contain; object-position: left center; }
.studio-game-grid .featured-premise { margin: 20px 0 24px; color: #c8cbd4; font-size: 16px; }
.featured-end { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.featured-end .text-link { text-decoration-color: var(--accent); }
.studio-note { background: radial-gradient(ellipse at 90% 70%, #242646, #171b27 55%); }
.note-inner { position: relative; }
.note-inner h2 { font-size: clamp(36px, 4vw, 56px); }
.note-sigil { position: absolute; right: 0; bottom: 18%; width: 96px; opacity: .28; image-rendering: pixelated; }
@media (max-width: 59.99rem) {
  .studio-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr); }
  .note-sigil { width: 72px; }
}
@media (max-width: 42rem) {
  .studio-hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 0; padding-block: 60px 28px; }
  .studio-hero-illustration { width: min(70%, 260px); margin-top: -10px; justify-self: end; }
  .studio-game-grid { grid-template-columns: 1fr; }
  .studio-section-heading { align-items: start; }
  .note-sigil { position: static; width: 64px; margin-top: 8px; }
}
