:root{--ink:#28465b;--teal:#148a83;--purple:#9571c5;--sun:#ffcf66;--paper:#fffdf7;--border:#dce8e8}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;background:linear-gradient(130deg,#fff3d9,#f7f3ff 60%,#e6f8f5);min-height:100vh}button,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:4px solid #8061b7;outline-offset:4px}[hidden]{display:none!important}.topbar{max-width:1120px;margin:auto;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar a{color:var(--ink);text-decoration:none}.brand{font-size:29px;font-weight:900}.brand span{color:var(--teal)}main{max-width:1100px;margin:auto;padding:0 20px 30px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:190px}.eyebrow{font-size:.76rem;font-weight:800;letter-spacing:.12em;color:#7c618e}h1{font-size:clamp(31px,5.5vw,52px);line-height:1.05;margin:10px 0}h2{font-size:clamp(22px,3vw,31px);margin:8px 0}.welcome p:not(.eyebrow){line-height:1.6;max-width:550px}.friend{display:flex;align-items:center;gap:10px;flex-shrink:0}.friend img{object-fit:contain;width:110px;height:145px}.friend span{max-width:155px;background:white;padding:14px;border:2px solid #e2d8ee;border-radius:24px 24px 24px 2px;font-weight:800;line-height:1.4}.world-switch{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0 20px}.world-switch button,.world-switch label{padding:11px 15px;background:#ffffffd9;border:2px solid #dfe6ec;border-radius:16px;min-height:48px}.world-switch button[aria-pressed=true]{background:#e6def8;border-color:#a17ccf;box-shadow:0 4px 0 #c9b9df}.world-switch select{background:white;border:0;font-weight:800;padding:3px}.world-switch .quiet{margin-left:auto}#play{display:grid;grid-template-columns:1.2fr 1fr;column-gap:18px;row-gap:16px;background:#fffefb;border:2px solid #e0e6df;border-radius:30px;padding:22px;box-shadow:0 10px 0 #d9e5df77;scroll-margin-top:10px}.progress-line,.mission-card,.feedback,.actions{grid-column:1/-1}.progress-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.progress-line p{font-size:.9rem;font-weight:800;margin:0}.progress-line #stars{font-size:27px;letter-spacing:5px;color:#d8c7a3}.earned{color:#e7ab22}.mission-card{text-align:center;background:linear-gradient(110deg,#eef9f4,#fff6d8);border:2px solid #d9e9db;border-radius:24px;padding:14px 18px}.order{display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap;margin:10px auto}.order-item{display:flex;align-items:center;gap:8px;border-radius:17px;padding:7px 12px;background:#fffdfa;border:2px solid #e9dfc2}.order .kg-art,.order .kg-art-pair{width:50px;height:50px}.order>.shape-art{width:60px;height:60px}.order-item strong,.order>strong{font-size:1.2rem}.listen{background:#eef6ff;border:2px solid #b9d4e9;border-radius:17px;padding:9px 18px;min-height:45px;font-weight:800}.help{font-size:.95rem;line-height:1.6;max-width:750px;margin:10px auto 5px}.lesson-link{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:7px 0 0;font-size:.78rem}.lesson-link a{color:#6b5a8e;text-decoration:underline;text-underline-offset:3px}.scene{position:relative;height:355px;border-radius:25px;border:3px solid #d8e5e5;overflow:hidden;isolation:isolate}.kitchen-scene{background-color:#fff3de;background-image:linear-gradient(#e0dfd6 1px,transparent 1px),linear-gradient(90deg,#e0dfd6 1px,transparent 1px);background-size:38px 38px}.kitchen-scene:after{content:'';position:absolute;bottom:0;left:0;right:0;height:51%;background:linear-gradient(#dec39e 0 8%,#f5debc 8% 13%,#edcf9f 13%);border-top:5px solid #c8a57c;z-index:-1}.plate{position:absolute;left:7%;right:7%;top:37%;height:55%;border-radius:50%;background:#fffefa;border:11px solid #cde8e7;box-shadow:0 6px 0 #b3c7c4,inset 0 0 0 5px white,inset 0 0 0 7px #e3eeee;display:flex;align-items:center;justify-content:center}.plate-food{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:78%;max-height:90%;align-content:center;justify-items:center}.plated-food{border:0;background:transparent;padding:1px;width:100%;aspect-ratio:1;max-width:56px;border-radius:14px;transition:transform .15s}.plated-food:not(:disabled):hover{transform:scale(.9);outline:2px dashed #ad8ccf}.plated-food>*{width:100%!important;height:100%!important;border-radius:50%!important}.plate-caption{position:absolute;bottom:8px;font-size:10px;pointer-events:none;color:#627d85}.plate:has(.plated-food) .plate-caption{opacity:0}.choices{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:12px;padding:14px;border-radius:24px;background:#f6f1fc;border:2px solid #e5dcf1;min-width:0}.picture-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100px;min-height:110px;background:#fffefa;border:3px solid #e0d9ee;border-radius:20px;padding:9px;box-shadow:0 4px 0 #d0c7df;font-size:.9rem}.picture-choice[aria-pressed=true],.shape-choice[aria-pressed=true]{border-color:#9670c7;background:#f0e6ff;box-shadow:0 0 0 3px #dfd0f3}.picture-choice:disabled{opacity:.75}.kg-art{display:block;width:74px;height:74px;background-repeat:no-repeat;background-color:white;border-radius:13px;flex-shrink:0;pointer-events:none}.kg-art-pair{display:flex;width:74px;height:74px;align-items:center;justify-content:center}.kg-art-pair .kg-art{width:50%;height:50%}.fallback-art{font-size:44px}.shape-art{display:block;width:75px;height:75px;pointer-events:none}.feedback{font-weight:800;text-align:center;line-height:1.5;font-size:1.1rem;min-height:28px;margin:0;color:#6b527b}.actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.primary,.button-link{background:var(--teal);color:white;border:2px solid #08736c;border-radius:18px;box-shadow:0 4px 0 #075f5c;padding:13px 24px;font-weight:800;min-height:50px}.quiet{background:#fffefa;border:2px solid #d8dfe8;border-radius:18px;padding:11px 17px;font-weight:800}.room-scene{background:linear-gradient(#f7eaf4 0 74%,#c4d4bc 74% 77%,#e6d2ac 77%);border-color:#e3d4e3}.room-zone{position:absolute;background:#ffffff6e;border:3px dashed #bc98c8;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;min-width:95px}.room-zone small{font-size:11px;color:#594e6a;font-weight:800}.room-zone .kg-art,.room-zone .kg-art-pair{width:65px;height:65px;background-color:transparent}.room-zone .shape-art{width:72px;height:72px}.zone-symbol{font-size:32px;color:#9c82b1;line-height:1}.zone-on{left:32%;top:28%;width:26%;height:27%}.zone-under{left:32%;top:64%;width:26%;height:29%}.zone-in{right:3%;bottom:5%;width:25%;height:32%;background:#e5f2ff;border-color:#8abbd7}.zone-wall{top:10%;right:7%;width:130px;height:130px;border:9px solid #d2b48b;background:#fffef3;box-shadow:0 2px 0 #a88a69;border-radius:10px}.shape-choices,.color-choices{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;width:100%}.shape-choice{padding:5px;border-radius:15px;background:white;border:3px solid #dfd7eb}.shape-choice .shape-art{width:52px;height:52px}.crayon{width:44px;height:65px;min-width:0;border:3px solid #fff;border-radius:50% 50% 7px 7px;box-shadow:0 3px 0 #0002}.crayon[aria-pressed=true]{outline:3px solid #705496;outline-offset:2px;transform:translateY(-4px)}.flying-piece,.finger-piece{position:fixed;z-index:10000;pointer-events:none;display:grid;place-items:center;filter:drop-shadow(0 5px 5px #0003)}.flying-piece>*{width:100%!important;height:100%!important}.finger-piece{width:70px;height:70px}.finger-piece>*{width:100%!important;height:100%!important}.scene.success{animation:happy-pop .5s ease-out;border-color:#64bc8f}.complete{text-align:center;padding:35px;background:#fffefa;border-radius:30px;border:3px solid #ecd68d;box-shadow:0 10px 0 #e7e0bb}.big-stars{font-size:56px;letter-spacing:10px}.completion-friends{display:flex;justify-content:center;gap:15px;margin:18px}.completion-friends img{width:115px;height:145px;object-fit:contain}.complete .button-link{display:inline-block;margin:15px 10px;text-decoration:none;background:#fff5ce;color:#6b5637;border-color:#dcc48a;box-shadow:0 4px 0 #c3a96b}footer{text-align:center;padding:25px 15px;color:#6c7f88;font-size:.8rem;line-height:1.8}@keyframes happy-pop{50%{transform:scale(1.015)}}@media(max-width:700px){#play{grid-template-columns:1fr;padding:14px;gap:12px}.scene{height:290px}.choices{gap:9px}.picture-choice{width:85px;min-height:95px}.picture-choice .kg-art,.picture-choice .kg-art-pair{width:60px;height:60px}.welcome{min-height:145px;gap:10px}.friend img{width:85px;height:110px}.friend span{display:none}.world-switch .quiet{margin-left:0}.welcome p:not(.eyebrow){font-size:.9rem}.zone-wall{width:108px;height:108px}.plate{top:35%;height:59%}.order-item strong,.order>strong{font-size:1rem}.order-item{padding:5px}.order .kg-art,.order .kg-art-pair{width:42px;height:42px}.help{font-size:.83rem}.topbar{padding:16px}.brand{font-size:25px}main{padding:0 12px 25px}.world-switch{gap:7px}.world-switch button,.world-switch label{padding:8px 10px;font-size:.85rem}.actions button{padding:11px 15px}.mission-card{padding:11px}.progress-line #stars{font-size:23px;letter-spacing:3px}.plated-food{max-width:45px}.room-zone small{font-size:10px}.room-zone .kg-art{width:50px;height:50px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Bright little worlds: colorful objects, clear instructions, readable surfaces. */
body{background:radial-gradient(ellipse at 0 15%,#c8f1dd,transparent 45%),radial-gradient(ellipse at 100% 40%,#e4cef9,transparent 45%),#fff7e4}.welcome{background:linear-gradient(115deg,#ffe68e,#ffd0b0 50%,#d8c6f7);padding:24px;border:3px solid white;border-radius:32px;box-shadow:0 6px 0 #edcba4;margin:12px 0 24px}.world-switch button[data-world=kitchen]{background:#ffedb1;border-color:#e6b650}.world-switch button[data-world=house]{background:#ead9fd;border-color:#b59ada}.world-switch button[aria-pressed=true]{background:#168880;color:white;border-color:#116d67}.mission-card{border-color:#a2d7c4;background:linear-gradient(115deg,#e6faf0,#fff4c8)}.scene{border-color:#9ccfc6;background-color:#fff8e9}.choices{background:linear-gradient(120deg,#e9d9fc,#ffe2ee);border-color:#c8afe4}.picture-choice:nth-child(5n+1),.shape-choice:nth-child(5n+1){background:#fff0b7;border-color:#e7b758}.picture-choice:nth-child(5n+2),.shape-choice:nth-child(5n+2){background:#ddf8e9;border-color:#72c5a3}.picture-choice:nth-child(5n+3),.shape-choice:nth-child(5n+3){background:#ffe0ed;border-color:#e29cbb}.picture-choice:nth-child(5n+4),.shape-choice:nth-child(5n+4){background:#d9efff;border-color:#91bde2}.picture-choice:nth-child(5n),.shape-choice:nth-child(5n){background:#efe1ff;border-color:#b69bd7}.picture-choice[aria-pressed=true],.shape-choice[aria-pressed=true]{outline:4px solid #208d85;outline-offset:2px}.room-zone{background-color:#e5f5ff;border-color:#7cb5d9}.order-item{background:#fff7d9;border-color:#e8c679}.complete{background:linear-gradient(120deg,#fff0ae,#e1f6d7,#f7d4ea)}@media(max-width:650px){.welcome{padding:18px;border-radius:26px}}

/* Buzzy's kitchen keeps the counter and plate clear for tap and drag. */
.kg-game-fair[data-world="kitchen"] .welcome {
  background: radial-gradient(circle at 90% 0%, #fff3a9 0, transparent 45%), linear-gradient(115deg, #ffe19b, #ffc4ac 64%, #f5acb6);
}
.kg-game-fair[data-world="kitchen"] .progress-line {
  color: #5c3e65;
}
.kg-game-fair[data-world="kitchen"] .mission-card {
  border: 2px solid #f1cc83;
  background: linear-gradient(122deg, #fff5cb, #fffbef 55%, #dbf5e9);
  box-shadow: 0 5px 0 #ebd6aa66;
}
.kg-game-fair[data-world="kitchen"] .order-item {
  border-color: #efd9a6;
  background: #fffefa;
}
.kitchen-host.friend {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 4%;
  width: clamp(88px, 28%, 146px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 2px;
  pointer-events: none;
}
.kitchen-host.friend img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
  max-width: 100%;
  object-fit: contain;
  border: 3px solid #fff8e7;
  border-radius: 32% 32% 18% 18%;
  box-shadow: 0 5px 0 #9a77ba55;
}
.kitchen-host.friend span {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 8px;
  text-align: center;
  font-size: clamp(10px, 1.8vw, 14px);
  background: #fffcf1;
  border: 2px solid #dfbfeb;
  border-radius: 12px;
  line-height: 1.2;
}
.kg-game-fair[data-world="kitchen"] .plate {
  z-index: 2;
  inset: 48% 7% auto;
  height: 37%;
  border: clamp(6px, 1.35vw, 11px) solid #83bfc2;
  background: radial-gradient(ellipse, #fffef9 62%, #e1f2ed 100%);
  box-shadow: 0 7px 0 #76939180, 0 12px 14px #8b583839, inset 0 0 0 4px #fff, inset 0 0 0 6px #cde7e2;
}
.kg-game-fair[data-world="kitchen"] .plate-caption {
  bottom: auto;
  padding: 0 20px;
  text-align: center;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 700;
  color: #45666c;
}
.kg-game-fair[data-world="kitchen"] .choices {
  align-content: start;
  align-self: stretch;
  background: linear-gradient(145deg, #fff2d6, #fff9ef 55%, #ffe2c8);
  border: 2px solid #ebc095;
  box-shadow: inset 0 -5px 0 #f5d4b7;
}
.pantry-heading {
  flex: 0 0 100%;
  margin: 0 0 4px;
  text-align: center;
  color: #744844;
  font-size: 1.15rem;
}
.kg-game-fair[data-world="kitchen"] .picture-choice {
  background: #fffdf6;
  border-color: #e8ba95;
  box-shadow: 0 4px 0 #e7b68e;
}
@media (max-width: 700px) {
  .kg-game-fair[data-world="kitchen"] 
  .kitchen-host.friend { top: 10px; right: 5%; width: clamp(76px, 29%, 105px); }
}

/* Center even a single ingredient and fit the largest saved plate. */
.kg-game-fair[data-world="kitchen"] .plate-food {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 2px;
  width: 84%;
  max-height: none;
}
.kg-game-fair[data-world="kitchen"] .plated-food {
  flex: 0 0 calc((100% - 8px) / 5);
  max-width: clamp(26px, 7vw, 38px);
}

/* Bloomy's House uses a soft wall, a bright floor and distinct targets. */
.kg-game-fair[data-world="house"] .welcome {
  background: radial-gradient(circle at 82% 6%, #fff2b0 0, transparent 37%), linear-gradient(118deg, #f9cef0, #e5d6ff 54%, #bdeee1);
  border-color: #fff8ef;
  box-shadow: 0 6px 0 #cbb5e7;
}
.kg-game-fair[data-world="house"] .mission-card {
  border: 2px solid #c3aae8;
  background: linear-gradient(122deg, #f6eaff, #fff8eb 54%, #e0f5ef);
  box-shadow: 0 5px 0 #d0bde666;
}
.kg-game-fair[data-world="house"] .room-zone {
  min-width: 0;
  border-color: #906cad;
  background: #fff8efed;
}
.kg-game-fair[data-world="house"] .room-zone.zone-in {
  border-color: #488e85;
  background: #def5ea;
}
.kg-game-fair[data-world="house"] .room-zone.zone-wall {
  border: 7px solid #d495a5;
  background: #fff9ec;
  box-shadow: 0 5px 0 #9974a0, inset 0 0 0 3px #ffebc9;
}
.kg-game-fair[data-world="house"] .room-zone small { color: #543d68; }
.kg-game-fair[data-world="house"] .choices {
  background: linear-gradient(142deg, #f6e9ff, #fff8ed 60%, #f9e3f0);
  border-color: #d6b8e7;
}

/* Illustrated backdrops share their geometry with the playable scene. */
.kg-game-fair[data-world="kitchen"] .kitchen-scene,
.kg-game-fair[data-world="house"] .house-scene {
  height: auto;
  min-height: 310px;
  aspect-ratio: 4 / 3;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 8px 0 #69448c38, 0 12px 28px #35224830;
}
.kg-game-fair[data-world="kitchen"] .kitchen-scene {
  background-color: #9dddc9;
  background-image: url('/game-art/happy-kitchen-scene.webp');
  border-color: #80c4ae;
}
.kg-game-fair[data-world="kitchen"] .kitchen-scene::after {
  content: none;
}
.kg-game-fair[data-world="house"] .house-scene {
  background-color: #d9a8ec;
  background-image: url('/game-art/bloomy-house-scene.webp');
  border-color: #c299e2;
}
.kg-game-fair[data-world="house"] .zone-on {
  inset: 29% auto auto 32%;
  width: 27%;
  height: 23%;
}
.kg-game-fair[data-world="house"] .zone-under {
  inset: 56% auto auto 34%;
  width: 26%;
  height: 21%;
}
.kg-game-fair[data-world="house"] .zone-in {
  width: 25%;
  height: 29%;
  bottom: 9%;
}
.kg-game-fair[data-world="house"] .zone-wall {
  width: clamp(90px, 30%, 142px);
  height: auto;
  aspect-ratio: 1;
}
.kg-game-fair[data-world="house"] .room-zone .kg-art,
.kg-game-fair[data-world="house"] .room-zone .kg-art-pair,
.kg-game-fair[data-world="house"] .room-zone .shape-art {
  width: min(68px, 80%);
  height: auto;
  max-height: 70%;
  aspect-ratio: 1;
  object-fit: contain;
}
.kg-game-fair[data-world="kitchen"] .choices,
.kg-game-fair[data-world="house"] .choices {
  box-shadow: inset 0 -5px 0 #fff8, 0 5px 0 #ae76b52b;
}
@media (max-width: 420px) {
  .kg-game-fair[data-world="kitchen"] .plated-food { max-width: 27px; }
  .kg-game-fair[data-world="house"] .room-zone { padding: 3px; }
}
