@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --canvas: #f0f1fa;
  --ink: #201931;
  --muted: #4e4c63;
  --accent: #513983;
  --edge: #aaa9c447;
  --glass-surface: radial-gradient(ellipse at left top, #ffffffb8, #fff0 64%), linear-gradient(145deg, #ffffffa8, #f4f1fcbe);
  --glass-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #60558212, 0 1px 3px #29223d10, 0 16px 36px -15px #50456b37;
  --focus: #6945a8;
  --radius: 32px;
  --nav-height: 84px;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

* { box-sizing: border-box; }
body { position: relative; isolation: isolate; margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus, section[tabindex]:focus { outline: none; }
[id] { scroll-margin-top: 12px; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }

.wallpaper {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 1130px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 30%, #adbdf4 0%, #c6d4ff00 56%),
    radial-gradient(ellipse at 100% 20%, #e0cdf7 0%, #e4caff00 56%),
    radial-gradient(ellipse at 66% 44%, #f7e3ed 0%, #f9e2f000 49%),
    linear-gradient(180deg, #dce3fa 0%, #eeeaf9 53%, var(--canvas) 100%);
  mask-image: linear-gradient(#000 60%, transparent 100%);
}

.wallpaper::before, .wallpaper::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.wallpaper::before {
  width: 150%;
  height: 820px;
  top: -704px;
  left: -24%;
  border-radius: 0 0 49% 51%;
  transform: translate3d(0, var(--wallpaper-drift, 0px), 0) rotate(-12deg);
  background: linear-gradient(112deg, #a1b3f0 0%, #c4c2f4 34%, #eaddf7 67%, #f8e1ed 96%);
  box-shadow: inset 0 -2px 4px #ffffffdb, 0 11px 38px #8675ce34, 0 0 95px #cda7fe60;
}
.wallpaper::after {
  width: 81%;
  height: 630px;
  top: 304px;
  left: 51%;
  border-radius: 45% 55% 0 0;
  transform: translate3d(0, var(--wallpaper-drift, 0px), 0) rotate(-26deg);
  background: linear-gradient(156deg, #e0ccf56b, #fff0 74%);
  box-shadow: inset 0 1px 1px #fff9;
}

.glass {
  border: 1px solid #ffffffce;
  background: #f9f8ff;
  box-shadow: var(--glass-shadow);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass {
    background: var(--glass-surface);
    -webkit-backdrop-filter: blur(16px) saturate(122%);
    backdrop-filter: blur(16px) saturate(122%);
  }
}

.skip-link {
  position: absolute;
  z-index: 8;
  inset: 10px auto auto 12px;
  padding: 12px 15px;
  border-radius: 12px;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.masthead {
  position: sticky;
  z-index: 6;
  top: 0;
  padding-block: 14px 5px;
}
.masthead-inner, .masthead nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.masthead-inner {
  --glass-surface: linear-gradient(155deg, #ffffffdd 0%, #fcfaff98 42%, #eee8f9b3 100%);
  min-height: 62px;
  justify-content: space-between;
  gap: 3px 16px;
  padding: 6px 8px 6px 20px;
  border-radius: 32px;
}
.masthead.is-scrolled .masthead-inner {
  --glass-surface: linear-gradient(155deg, #fffefdf5, #f4effad6);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #60558212, 0 8px 26px -8px #342b543b;
}
.masthead nav { gap: 2px; }
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}
.studio-lockup { width: 167px; height: auto; }
.masthead nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 19px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.masthead nav a:hover { background: #ffffff74; }
.masthead nav a[aria-current="location"] {
  border-color: #fff;
  background: linear-gradient(#fff, #fbf9ffb3);
  box-shadow: inset 0 -1px 0 #654f8710, 0 2px 5px #2517481b;
}

.hero { padding-block: clamp(50px, 5.8vw, 82px) clamp(32px, 4.15vw, 56px); text-align: center; }
.hero h1 {
  font-size: clamp(2.625rem, 6.1vw, 5.5rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.hero h1 span { display: inline-block; }
.hero h1 em { color: var(--accent); font-style: normal; }
@supports (background-clip: text) {
  .hero h1 em {
    background: linear-gradient(106deg, #493274 12%, #7048a0 57%, #4b54a2);
    background-clip: text;
    color: transparent;
  }
}
.hero-intro {
  max-width: 52ch;
  margin: clamp(12px, 1.6vw, 22px) auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.games { padding-bottom: clamp(46px, 6.2vw, 88px); }
.games h2 {
  margin: 0 0 13px 3px;
  font-size: clamp(1.375rem, 2.14vw, 1.875rem);
  font-weight: 750;
  letter-spacing: -.045em;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.game-slot { display: grid; min-width: 0; }
.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(8px, 1vw, 13px);
  border-radius: var(--radius);
}
@media (hover: hover) and (pointer: fine) {
  .game-card { transition: box-shadow 220ms ease, transform 220ms cubic-bezier(.2, .7, .25, 1); }
  .game-slot:is(:hover, :has(:focus-visible)) > .game-card {
    box-shadow: inset 0 1px 0 #fff, 0 2px 7px #2a20381c, 0 22px 40px -15px #47366456;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .game-slot:is(:hover, :has(:focus-visible)) > .game-card { transform: translateY(-8px); }
}
.game-art {
  display: block;
  position: relative;
  isolation: isolate;
  aspect-ratio: 2.35;
  overflow: hidden;
  border: 1px solid #ffffffca;
  border-radius: calc(var(--radius) - 10px);
}
.game-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 80%;
  height: 125%;
  border: 1px solid #fffc;
  border-radius: 50%;
  box-shadow: inset 0 0 38px #ffffff7a, 0 0 22px #ffffff63;
}
.block-art {
  background: radial-gradient(ellipse at 12% 8%, #d3f9f2 0%, #c4f3ec00 66%),
    linear-gradient(127deg, #abdedf 10%, #a4d9ed 49%, #a7b4e9);
}
.block-art::before { top: 33%; left: -4%; transform: rotate(-23deg); background: #fbffff14; }
.kitten-art {
  background: radial-gradient(ellipse at 83% 12%, #ffeac6 0%, #ffe1b500 65%),
    linear-gradient(119deg, #edc6ee 0%, #f8c8bf 48%, #ffdeb3 90%);
}
.kitten-art::before { top: 28%; right: -6%; transform: rotate(25deg); background: #fff8ed19; }
.capybara-art {
  background: radial-gradient(ellipse at 76% 7%, #fcf3d0 0%, #fcf3d000 60%),
    linear-gradient(125deg, #dbd5fb, #c8e6ce 80%);
}
.capybara-art::before { top: 29%; left: 30%; transform: rotate(-19deg); background: #ffffef24; }
.sunlit-art {
  background: radial-gradient(ellipse at 11% 8%, #fff1be 0%, #fff1be00 60%),
    linear-gradient(126deg, #efd5a0, #a7e0d9 62%, #9accec);
}
.sunlit-art::before { top: 30%; left: 14%; transform: rotate(-21deg); background: #fffdf334; }
.nonopalette-art {
  background: radial-gradient(ellipse at 14% 13%, #e7f7ff 0%, #e7f7ff00 62%),
    linear-gradient(128deg, #a8d8f7, #c7d5fa 58%, #efcbea);
}
.nonopalette-art::before { top: 27%; left: 13%; transform: rotate(-19deg); background: #faffff38; }
.game-art img {
  position: absolute;
  top: 50%;
  width: auto;
  max-width: 46%;
  object-fit: contain;
  box-shadow: 0 10px 24px #2d395638;
}
/* Keep the artwork layout for cached copies of the previous homepage. */
.block-layers, .block-board { border-radius: 6%; border: 2px solid #faffffd9; }
.block-layers { left: 25%; height: 83%; transform: translateY(-50%) rotate(-13deg); }
.block-board { right: 21%; height: 86%; transform: translateY(-50%) rotate(10deg); }
.game-icon, .kitten-icon { left: 20%; height: 64%; transform: translateY(-50%) rotate(-9deg); border-radius: 22%; border: 2px solid #fffaf3; }
.game-board, .kitten-board { right: 19%; height: 85%; transform: translateY(-50%) rotate(10deg); border-radius: 7%; border: 3px solid #fffaf3; }
.game-preview { text-decoration: none; }
.preview-hint {
  position: absolute;
  z-index: 1;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding-inline: 8px;
  border: 1px solid #ffffffed;
  border-radius: 99px;
  background: #fffdf4e8;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}
.preview-hint::before { content: "+"; font-size: 1rem; line-height: 1; }
.game-preview:hover .preview-hint, .game-preview:focus-visible .preview-hint { background: white; }
.game-copy { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 12px; padding: 15px 10px 7px; }
.game-copy h3 {
  font-size: clamp(1.25rem, 1.85vw, 1.625rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.047em;
  overflow-wrap: anywhere;
}
.game-copy p { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.42; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 16px;
  border: 1px solid #fffffff0;
  border-radius: 99px;
  background: linear-gradient(155deg, #fdfbff, #e3d9fb);
  box-shadow: inset 0 1px 0 #fff, 0 2px 7px #4b2d8319;
  color: #2f2256;
  text-align: center;
  font-size: .9375rem;
  font-weight: 720;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: box-shadow 180ms ease, background-color 180ms ease;
}
.action:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 3px 10px #4b2d8330; }
.store-link { margin-top: auto; }
.store-link::before, .game-preview-store::before {
  content: "";
  width: 11px;
  height: 13px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.game-preview-dialog {
  width: min(690px, calc(100% - 28px));
  max-width: none;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.game-preview-dialog::backdrop { background: #21183346; }
.game-preview-panel {
  position: relative;
  --glass-surface: linear-gradient(155deg, #fbfafe, #efebfaf8);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 12px;
  border-radius: 28px;
  transform-origin: top left;
}
.game-preview-image {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(14px, 4vw, 24px);
  border: 1px solid #fffc;
  border-radius: 18px;
}
.game-preview-image img {
  width: auto;
  height: min(44vh, 320px);
  height: min(44dvh, 320px);
  object-fit: contain;
  border-radius: 9px;
  filter: drop-shadow(0 10px 15px #211b4040);
}
.game-preview-copy { min-width: 0; padding: 32px 20px 18px 10px; }
.game-preview-copy h2 { font-size: clamp(1.5rem, 3.8vw, 2.25rem); line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }
.game-preview-copy p { margin-block: 12px 18px; color: var(--muted); font-size: 1rem; line-height: 1.52; }
.game-preview-dismiss { position: absolute; top: 10px; right: 10px; }
.game-preview-dismiss button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fffe;
  border-radius: 99px;
  background: #fbf8ffef;
  color: var(--ink);
  font: 1.5rem/1 "Segoe UI", sans-serif;
  cursor: pointer;
}
.game-preview-dismiss button:hover { background: white; }

.play-stories { padding-bottom: clamp(52px, 7vw, 94px); scroll-margin-top: 22px; overflow-wrap: anywhere; }
.play-stories > h2 {
  font-size: clamp(2.05rem, 4.1vw, 3.25rem);
  letter-spacing: -.05em;
  line-height: 1.02;
}
.story-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 590px);
  padding: 4px;
  margin-block: 15px 12px;
  border: 1px solid #ffffffbd;
  border-radius: 21px;
  background: linear-gradient(158deg, #e8e5f4a8, #ded9ef80);
  box-shadow: inset 0 1px 3px #40325914, 0 1px 0 #ffffff9c;
}
.story-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 7px clamp(5px, 1vw, 10px);
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font: 650 .875rem/1.16 "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-tabs button:is(:hover, :active) { background: #ffffffa6; color: var(--ink); }
.story-tabs button[aria-selected="true"] {
  border-color: #fff;
  background: #fcfbff;
  color: var(--ink);
  box-shadow: 0 2px 6px #25174815;
}
.story-tabs[hidden] { display: none; }
.story-timer {
  width: min(100%, 590px);
  height: 4px;
  margin-block: -4px 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #d8d1e880;
}
.story-timer-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b75c0, #6b4ca7);
  transform: scaleX(0);
  transform-origin: left center;
}
.story-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.story-stage:not(.is-carousel) { margin-top: 18px; }
.story-stage.is-carousel .feature-story { grid-area: 1 / 1; }
.story-stage.is-carousel .feature-story:not(.is-current) { visibility: hidden; }
.feature-story:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.feature-story {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  min-width: 0;
  gap: clamp(14px, 3vw, 36px);
  padding: clamp(12px, 2vw, 24px);
  border-radius: var(--radius);
}
.story-copy { padding: clamp(8px, 2.7vw, 35px); }
.story-game {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
}
.story-copy h3 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  letter-spacing: -.048em;
  line-height: 1.03;
}
.story-copy p:last-child { max-width: 42ch; margin-top: 13px; color: var(--muted); font-size: 1rem; line-height: 1.54; }
.story-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.7vw, 21px);
  padding: clamp(10px, 2.4vw, 28px);
  border: 1px solid #fff;
  border-radius: calc(var(--radius) - 9px);
}
.story-boards figure { display: grid; justify-items: center; align-content: start; gap: 9px; min-width: 0; margin: 0; }
.story-boards img {
  width: 100%;
  max-height: 360px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 13px;
  background: #fbedda;
  box-shadow: 0 8px 21px #352c4922;
}
.story-boards.nonopalette-art img { aspect-ratio: 1; background: #f9fbff; }
.story-boards figcaption { color: var(--muted); text-align: center; font-size: .875rem; line-height: 1.2; }

.studio-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .99fr);
  gap: clamp(20px, 3.8vw, 55px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius);
}
.studio-copy { padding: clamp(8px, 3vw, 38px); }
.studio-copy h2, .contact h2 {
  font-size: clamp(1.875rem, 4vw, 3.375rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.052em;
}
.studio-copy p, .contact p {
  max-width: 43ch;
  margin-top: 13px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.studio-mark {
  display: grid;
  place-items: center;
  min-height: 234px;
  padding: 22px;
  border: 1px solid #ffffffe5;
  border-radius: calc(var(--radius) - 8px);
  background: radial-gradient(ellipse at 47% 26%, #fff 0%, #fff8 38%, transparent 72%),
    linear-gradient(145deg, #e2e6fa, #f9f7ff 49%, #e7dff8);
  box-shadow: inset 0 1px 3px #fff, inset 0 -1px 2px #583f911a;
}
.studio-mark img { width: min(78%, 330px); height: auto; }
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  padding-block: clamp(45px, 6vw, 78px);
}
.contact h2 { font-size: clamp(1.875rem, 3vw, 2.625rem); }
.contact p { margin-top: 8px; }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 25px;
  min-height: 78px;
  padding-block: 10px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: .875rem;
}
.footer nav { display: flex; flex-wrap: wrap; column-gap: 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.brand-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--ink);
  background: white;
}
.brand-intro:not([open]) { display: none; }
.brand-intro[open] { display: grid; place-items: center; }
.brand-intro::backdrop { background: transparent; }
.brand-intro video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-intro form { position: absolute; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); margin: 0; }
.brand-intro button {
  min-height: 44px;
  padding-inline: 15px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: white;
  color: var(--ink);
  font: 650 .875rem/1 "Segoe UI", sans-serif;
  cursor: pointer;
}
.brand-intro button:hover { background: var(--canvas); }
html:has(.brand-intro[open], .game-preview-dialog[open]) { overflow: hidden; }

@property --intro-radius {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -2%;
}
@keyframes intro-fade { to { opacity: 0; } }
@keyframes intro-video-out { to { opacity: 0; } }
@keyframes intro-reveal { to { --intro-radius: 102%; } }
@media (prefers-reduced-motion: no-preference) {
  .brand-intro.is-revealing { animation: intro-fade 220ms ease-out both; }
  .brand-intro.is-revealing video { animation: intro-video-out 120ms ease-out both; }
  .brand-intro.is-revealing form { visibility: hidden; }
  @supports (mask-image: radial-gradient(circle, transparent, black)) {
    .brand-intro.is-revealing.has-animated-mask {
      mask-image: radial-gradient(circle farthest-corner at center, transparent var(--intro-radius), black calc(var(--intro-radius) + 1.2%));
      animation: intro-reveal 680ms cubic-bezier(.48, 0, .22, 1) both;
    }
  }
}

/* Privacy and error pages */
.document-page .wallpaper { height: 700px; opacity: .65; }
.legal {
  max-width: 880px;
  margin-block: clamp(26px, 4vw, 54px) 40px;
  padding: clamp(20px, 4.8vw, 56px);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.legal h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.05em; }
.legal h2 { margin: 29px 0 9px; font-size: clamp(1.25rem, 3vw, 1.625rem); line-height: 1.12; letter-spacing: -.035em; }
.legal h3 { margin: 22px 0 6px; font-size: 1.125rem; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.legal p + p, .legal p + div { margin-top: 11px; }
.legal li + li { margin-top: 7px; }
.legal ul { padding-inline-start: 1.3em; }
.legal .eyebrow, .legal .updated { color: var(--muted); font-size: .8125rem; }
.legal .eyebrow { margin-bottom: 9px; }
.legal .updated { margin-top: 9px; }
.legal .notice, .legal-contact {
  margin-block: 17px 0;
  padding: 16px 19px;
  border: 1px solid #e5dff4;
  border-radius: 17px;
  background: #f5f2fd;
}
.legal a:not(.action) { color: var(--accent); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0; font-size: .9375rem; }
.legal-contact h2 { margin-top: 0; }
.legal table { width: 100%; table-layout: fixed; margin-block: 14px; border-collapse: collapse; font-size: .9375rem; line-height: 1.52; }
.legal caption { padding-bottom: 9px; color: var(--muted); text-align: left; }
.legal td, .legal th { padding: 10px; border-bottom: 1px solid var(--edge); vertical-align: top; text-align: start; }
.legal th { background: #f0ecfa; }
.legal .button, .legal .action { margin-top: 18px; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 52px); }
}
@media (min-width: 641px) and (max-width: 1120px) {
  .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .game-slot { grid-column: span 2; }
  .game-slot:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 720px) {
  :root {
    --nav-height: 69px;
    --radius: 24px;
    scroll-padding-top: max(var(--nav-height), calc(5.25rem - 14px));
  }
  .container { width: calc(100% - 32px); }
  .wallpaper { height: 780px; }
  .wallpaper::before { top: -705px; width: 190%; left: -55%; }
  .wallpaper::after { left: 45%; width: 150%; }
  .masthead { padding-top: 9px; }
  .masthead-inner { min-height: 55px; gap: 2px 6px; padding: 4px 6px 4px 12px; border-radius: 27px; }
  .studio-lockup { width: 130px; }
  .masthead nav a { padding-inline: 10px; font-size: .875rem; }
  .hero { padding-block: 38px 29px; }
  .hero h1 { font-size: clamp(2.375rem, 10.1vw, 4.4rem); }
  .hero-intro { max-width: 42ch; }
  .game-art { aspect-ratio: 1.8; }
  .game-copy { gap: 10px; padding: 11px 3px 3px; }
  .game-copy h3 { font-size: clamp(1.1875rem, 4.4vw, 1.5rem); }
  .game-copy p { font-size: .9375rem; }
  .studio-panel { grid-template-columns: 1fr; }
  .studio-mark { min-height: 155px; }
  .legal table { font-size: .8125rem; }
}
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  .masthead-inner {
    background: linear-gradient(145deg, #fbf9fff5, #f0ebfdef);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :is(.game-card, .feature-story, .studio-panel, .game-preview-panel).glass {
    background: #f8f6ff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (max-width: 760px) {
  .feature-story { grid-template-columns: minmax(0, 1fr); }
  .story-copy h3 { max-width: none; }
}
@media (max-width: 640px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 11px; }
  .game-art { flex: 1 1 5.5rem; max-width: 9rem; aspect-ratio: 1.04; }
  .game-copy { flex: 2.2 1 min(100%, 10rem); padding: 3px; gap: 8px; min-width: 0; }
  .game-copy p { margin-top: 4px; }
  .game-art img { max-width: 60%; }
  .block-layers { left: 13%; height: 69%; }
  .block-board { right: 12%; height: 73%; }
  .game-icon, .kitten-icon { left: 7%; height: 48%; }
  .game-board, .kitten-board { right: 9%; height: 68%; }
  .preview-hint { min-width: 26px; justify-content: center; padding-inline: 6px; }
  .preview-hint span { display: none; }
}
@media (max-width: 590px) {
  .story-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .story-tabs button { grid-column: span 2; }
  .story-tabs button:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 530px) {
  .game-preview-panel { grid-template-columns: 1fr; }
  .game-preview-image img { height: min(35vh, 236px); height: min(35dvh, 236px); }
  .game-preview-copy { padding: 3px 8px 10px; }
  .story-boards img { border-radius: 9px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 24px); }
  .studio-lockup { width: 100px; }
  .masthead nav { gap: 0; }
  .masthead nav a { padding-inline: 5px; }
  .game-card { border-radius: 20px; }
  .game-art { border-radius: 13px; }
  .game-art img { border-width: 1px; }
  .store-link { padding-inline: 10px; font-size: .875rem; }
  .story-tabs button { padding-inline: 3px; font-size: .8125rem; }
  .legal td, .legal th { padding: 7px; }
}
@media (max-width: 375px) {
  .studio-lockup { width: 78px; }
}
@media (max-width: 350px) {
  .masthead-inner { column-gap: 4px; }
  .studio-lockup { width: 72px; }
  .masthead nav a { min-width: 44px; padding-inline: 3px; font-size: .8125rem; }
}
@media (max-aspect-ratio: 9/20) {
  .brand-intro video { object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .masthead nav a, .action, .game-card { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .masthead.is-scrolled .masthead-inner { background: #f9f8ff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .hero h1 em { color: CanvasText; background: none; }
  .masthead nav a[aria-current="location"], .story-tabs button[aria-selected="true"] { border: 1px solid Highlight; }
}
