*{box-sizing:border-box}body{margin:0;background:#f6edde;color:#49345d;font:16px/1.6 system-ui,sans-serif}header,footer{max-width:1100px;margin:auto;padding:20px 24px}header h1{font-size:22px;margin:0}header p{margin:5px 0;font-size:14px}main{max-width:1100px;margin:auto;padding:0 15px 30px}.stage{position:relative;isolation:isolate;width:100%;aspect-ratio:4/3;border-radius:24px;overflow:hidden;background:#c9b2ee;box-shadow:0 16px 50px #49345d25}.plate{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.logo{position:absolute;z-index:3;top:0;left:13%;width:72%;height:auto;pointer-events:none;filter:drop-shadow(0 4px 4px #49345d20)}.actor{position:absolute;border:0;background:none;padding:0;cursor:pointer;aspect-ratio:4/3;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.sprite{width:100%;height:100%;background-repeat:no-repeat;background-size:200% 200%;pointer-events:none}.cube{left:0;bottom:9%;width:57%;z-index:2;transform-origin:50% 91%;filter:drop-shadow(0 14px 9px #69452925)}.cube .sprite{background-image:url('assets/cube_poses_2x2.png');background-position:0 0;animation:cube-idle 4.8s ease-in-out infinite;transform-origin:50% 91%}.cube.pressed .sprite{animation:none;transform:scale(1.08,.91);transition:transform .18s}.cube.released .sprite{animation:release .9s ease-out}.play{right:7%;bottom:11%;width:36%;z-index:3;min-width:100px;min-height:80px;filter:drop-shadow(0 12px 7px #69452920);transition:transform .13s}.controls-sprite{background-image:url('assets/welcome_controls_2x2.png')}.play:active{transform:scale(.96)}.pip{right:0;bottom:3%;width:21%;z-index:4;transform-origin:50% 92%;animation:pip-bob 5s ease-in-out infinite}.pip .sprite{background-image:url('assets/pip_expressions_2x2.png');background-position:0 0}.pip.blink .sprite{background-position:100% 0}.pip.delight .sprite{background-position:0 100%}.grown{right:1%;top:2%;width:12%;min-width:80px;min-height:80px;z-index:5}.grown .sprite{background-position:100% 0}.actor:focus-visible{outline:4px solid #49345d;outline-offset:-5px;border-radius:20px}.utility{margin:20px 0;padding:20px;background:#fffaf2;border-radius:16px}.utility h2{font-size:20px;margin-top:0}.sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sheet{padding:15px;border:1px solid #d9c7e5;border-radius:14px;background:#fffaf2}.checker{background:repeating-conic-gradient(#e7deec 0 25%,#fff 0 50%) 0/24px 24px;border-radius:10px}.checker img{width:100%;height:auto;display:block}.sheet h3{font-size:16px}.sheet a{color:#65428c}.sheet code{font-size:12px}button.control{font:inherit;color:#49345d;background:#c9eddd;border:1px solid #8bbda5;border-radius:10px;padding:11px 16px;cursor:pointer;margin:6px}.panel{position:absolute;z-index:10;inset:15%;background:#fff6e7f5;border:2px solid #c9b2ee;border-radius:25px;padding:25px;overflow:auto;box-shadow:0 10px 50px #49345d30}.panel h2{margin-top:0;font-size:26px}.panel p{font-size:16px}.quiet .cube .sprite,.quiet .pip{animation:none!important}.quiet .cube.pressed .sprite{transform:scale(1.03,.97)}[hidden]{display:none!important}code{overflow-wrap:anywhere}@keyframes cube-idle{0%,65%,100%{transform:scale(1,1)}74%{transform:scale(1.035,.965)}83%{transform:scale(.98,1.025)}92%{transform:scale(1.01,.99)}}@keyframes pip-bob{0%,70%,100%{transform:translateY(0)}80%{transform:translateY(-3px)}90%{transform:translateY(0)}}@keyframes release{0%{transform:scale(1.08,.91)}45%{transform:scale(.98,1.025)}75%{transform:scale(1.012,.99)}100%{transform:scale(1,1)}}@media(max-aspect-ratio:4/5){main{max-width:700px}.stage{aspect-ratio:3/4}.logo{left:2%;top:2%;width:92%}.cube{left:-5%;width:90%;bottom:23%}.play{width:57%;right:0;bottom:4%}.pip{width:34%;left:0;right:auto;bottom:3%}.grown{top:20%;right:2%;width:18%}.panel{inset:15% 6%;padding:20px}.sheet-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.cube .sprite,.pip{animation:none!important}.play{transition:none}}
body>header,.utility{display:none}body{padding-top:16px}

/* Keep the founders and Play visible together across landscape ratios. */
#stage.welcome-stage .logo { top: 1%; left: 50%; width: min(57%, 570px); transform: translateX(-50%); }
#stage.welcome-stage .cube { left: 0; bottom: 6%; width: min(29%, 330px); }
#stage.welcome-stage .play { right: 4%; bottom: 19%; width: min(31%, 340px); }
#stage.welcome-stage .pip { right: 0; bottom: 2%; width: min(17%, 185px); }
html.fit-board #stage.welcome-stage { background: url('assets/welcome_landscape.png') center / cover no-repeat !important; }
#stage #welcome-founders {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: stretch;
  gap: .22em;
  position: absolute;
  inset: 24% auto 9% 44%;
  transform: translateX(-50%);
  width: 41%;
  max-width: 445px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 1.2em;
  z-index: 3;
}
#welcome-founders .welcome-founder-art {
  display: grid;
  grid-template-columns: 47fr 53fr;
  container-type: inline-size;
  align-items: end;
  min-width: 0;
  min-height: 0;
  width: 100%;
  filter: drop-shadow(0 .25em .18em #68433145);
}
#stage #welcome-founders img {
  display: block;
  width: 100%;
  height: min(100%, 110cqw);
  min-height: 0;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: 50% 94%;
  pointer-events: none;
}
#stage #welcome-founders .welcome-founder-left { height: min(82%, 90.2cqw); animation: welcome-founder-left 6.4s ease-in-out infinite; }
#stage #welcome-founders .welcome-founder-right { animation: welcome-founder-right 7.4s .35s ease-in-out infinite; }
#stage #welcome-founders .welcome-founder-caption {
  border: 2px solid #fffaf1;
  border-radius: 1.25em;
  background: linear-gradient(#fff8f0, #f3def7);
  padding: .5em .95em;
  box-shadow: 0 .17em .4em #50326745;
  white-space: nowrap;
}
#stage #welcome-founders:active .welcome-founder-caption { transform: scale(.96); }
@keyframes welcome-founder-left {
  0%,65%,100% { transform: none; }
  74%,88% { transform: translateY(-2%) rotate(-3deg); }
  81%,95% { transform: translateY(-1%) rotate(2deg); }
}
@keyframes welcome-founder-right {
  0%,63%,100% { transform: none; }
  73%,87% { transform: translateY(-2%) rotate(3deg); }
  80%,94% { transform: translateY(-1%) rotate(-2deg); }
}
.squishy-quiet #stage #welcome-founders img, #stage.quiet #welcome-founders img { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #stage #welcome-founders img { animation: none; }
}

#install-app {
  position: absolute;
  top: 4%;
  left: 3%;
  z-index: 6;
  padding: .6em .9em;
  border: 2px solid #fff9eb;
  border-radius: 1em;
  background: #fff5e5;
  color: #49345d;
  box-shadow: 0 .2em .45em #49345d35;
  font: 750 clamp(14px, 2.4vmin, 22px)/1.15 system-ui, sans-serif;
  cursor: pointer;
}
#install-app:focus-visible { outline: 3px solid #49345d; outline-offset: 3px; }
