/* Shared colourful presentation; gameplay, hit targets and saved states stay independent. */
body.cheerful-game{--ink:#243e4a;--paper:#fffef8;--green:#18775d;--gold:#ffd153;--line:#d3e7d9;color:var(--ink);background:radial-gradient(ellipse at 4% 2%,#fff3a8 0,transparent 44%),radial-gradient(ellipse at 100% 27%,#e1d6ff 0,transparent 43%),linear-gradient(150deg,#e1fbef,#e0f4ff 72%,#fff0d2)}
.cheerful-game .brand span{color:#8551c9}.cheerful-game h1 em{color:#a95718}.cheerful-game .eyebrow{color:#53714e}.cheerful-game .heading>p:last-child{color:#526b72}.cheerful-game header .tools button{background:#fffef6;border-color:#b9dbcf;box-shadow:0 3px 0 #b8dacb55}.cheerful-game .heading{margin-bottom:18px}.cheerful-game .primary{background:#18775d;border-color:#18775d;color:#fff}.cheerful-game dialog{background:radial-gradient(ellipse at 100% 0,#fff0b5,transparent 52%),#fffef8}.cheerful-game dialog::backdrop{background:#203e5b9e}.cheerful-game .question{color:#26496a;background:#e4f5ff}.cheerful-game .hint{color:#695214;background:#fff0b6}.cheerful-game .answers button{border-color:#c4d8e8;background:#fff;box-shadow:0 3px 0 #b8d7df66}.cheerful-game .answers .correct{background:#d0f4ba;border-color:#78b95b}.cheerful-game .answers .wrong{background:#ffe8cb;border-color:#dfa05f}.cheerful-game button:focus-visible,.cheerful-game a:focus-visible,.cheerful-game select:focus-visible{outline-color:#7647c5}.cheerful-game .badge{background:#fff6c1;color:#5c521b;border-color:#dfca6b}
.game-welcome{display:grid;grid-template-columns:1fr 1fr;min-height:175px;margin:0 0 22px;border:5px solid #fffef8;border-radius:24px;overflow:hidden;background:#ffedb7;box-shadow:0 8px 25px #41778c13}.welcome-copy{padding:16px 23px;display:flex;flex-direction:column;justify-content:center;gap:7px;background:linear-gradient(120deg,#fff4c7,#fff8e7)}.welcome-copy strong{font-size:20px;line-height:1.2;color:#285468}.welcome-copy p{font-size:12px;line-height:1.5;color:#4b666a;margin:0;max-width:28em}.welcome-buddies{display:flex;align-items:center;gap:7px}.welcome-buddies img{width:49px;height:49px;object-fit:cover;border:3px solid white;border-radius:50%;box-shadow:0 2px 5px #745b6f24}.welcome-buddies img+img{margin-left:-15px}.welcome-buddies span{font-size:10px;font-weight:800;color:#7954a3;margin-left:3px}.welcome-scene{position:relative;min-height:150px;overflow:hidden}.welcome-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%}.setup-buddies{display:flex;justify-content:center;gap:12px;margin:12px 0}.setup-buddies img{width:65px;height:65px;object-fit:cover;border:3px solid white;border-radius:50%;box-shadow:0 3px 0 #decaf2}.explorer-art{display:block;width:78px;height:78px;object-fit:cover;border-radius:50%;border:3px solid white;margin:0 auto 6px}
.game-forest .game{border-color:#fffef4;box-shadow:0 16px 42px #39795724}.game-forest .hud{background:#e1f7b7;color:#315b3b}.game-forest .controls{background:#f4ffe5}.game-forest .arrows button{background:#dcf2ff;border-color:#9ecde4;color:#285c7a}.game-forest .jump{background:linear-gradient(#ffdb58,#ffc23d);border-color:#d9a42d;color:#3e4a28;box-shadow:0 5px 0 #d7a42b}.game-forest .choices button[aria-pressed=true]{background:#ecdcff;border-color:#9769cb}.game-forest .scene-label{color:#315441;background:#fffce9ee}.game-forest #journey::-webkit-progress-value{background:linear-gradient(90deg,#3fc5a1,#f9d24b)}.game-forest #journey::-moz-progress-bar{background:linear-gradient(90deg,#3fc5a1,#f9d24b)}
body.game-market,body.game-market[data-theme='1'],body.game-market[data-theme='2']{background:radial-gradient(ellipse at 0 0,#fff1a6,transparent 52%),radial-gradient(ellipse at 100% 30%,#ffdbe9,transparent 46%),#e3f9ed}.game-market .shop{box-shadow:0 16px 42px #a97b5720}.game-market .awning{background:repeating-linear-gradient(90deg,#ffadbd 0 12.5%,#fff0a5 12.5% 25%)}.game-market[data-theme='1'] .awning{background:repeating-linear-gradient(90deg,#b8a2ee 0 12.5%,#ffe4a1 12.5% 25%)}.game-market[data-theme='2'] .awning{background:repeating-linear-gradient(90deg,#6cd7d3 0 12.5%,#cbd6ff 12.5% 25%)}.game-market .awning:after{background:repeating-linear-gradient(90deg,#39a989 0 12.5%,#ffe28c 12.5% 25%)}.game-market .awning>span{border-color:#568b71;color:#3d4d4b;box-shadow:0 5px 0 #7767471c}.game-market .decorations{color:#547242;background:#f6ffdf}.game-market .customer-face{background:radial-gradient(circle at 30% 25%,#fff8c5,#ffd594);border:4px solid #fff2be;box-shadow:0 5px 0 #e7c06855}.game-market .speech{border-color:#beded0;background:linear-gradient(150deg,#fff,#f3fffa)}.game-market .customer-name{color:#8253a4}.game-market .shelf-area{background:linear-gradient(140deg,#fff1c8,#ffead4);border-color:#edcf9b}.game-market .product{background:linear-gradient(150deg,#fffef7,#fff9e9);border-color:#ebcf9b;box-shadow:0 6px 0 #e8c992}.game-market .product:nth-child(3n+1){border-top:5px solid #ff9f9f}.game-market .product:nth-child(3n+2){border-top:5px solid #a9cf7a}.game-market .product:nth-child(3n){border-top:5px solid #8dcce8}.game-market .product .price{color:#366822;background:#e2f4bd}.game-market .product .stock{color:#746044}.game-market .shelf-foot{background:#f6d29f;color:#795c32;border-color:#d4ad77}.game-market .basket-area{background:#f2fff8;border-color:#8dc9b0}.game-market .stages>.current{background:#d6f5dc;border-color:#8bbd8e;color:#2f6345}.game-market .shopping-list li{background:#fff0bd;color:#594d27}.game-market .shopping-list li.ready{background:#d9f4c8;color:#35652e}.game-market .payment-card{background:#edf2ff;border-color:#b7c5eb}.game-market .play-money{background:#fff3af;border-color:#d6b758;color:#60501d}.game-market .play-money.note{background:#d5f3df;border-color:#85ba9a;color:#285c40}.game-market .message{background:#f1f9df;color:#466036}
body.game-space{--blue:#3261b3;background:radial-gradient(ellipse at 5% 0,#fff0b2,transparent 48%),radial-gradient(ellipse at 100% 35%,#ddd1ff,transparent 50%),#e0f5ff}.game-space .welcome-copy{background:linear-gradient(120deg,#e3e6ff,#fff2cc)}.game-space .welcome-copy strong{color:#4e4591}.game-space .flight-card{border-color:#fffaf0;box-shadow:0 16px 45px #5b59ab29}.game-space .mission-heading{background:#dceaff;color:#2b4f87}.game-space .hud{background:#f7f2ff;color:#4c5483}.game-space .controls{background:#eceaff}.game-space .arrows button{background:#ddf6ff;border-color:#95c9e4;color:#285a84}.game-space .boost{background:linear-gradient(#ffde67,#ffc34e);border-color:#d3a239;color:#4a4928}.game-space .boost.rescue{background:#b8efb9;border-color:#78b777;color:#2c5c32}.game-space .status{background:#eee8ff;color:#544478}.game-space .flight-tip{background:#223567e8;color:#fff6ce}.game-space #journey::-webkit-progress-value{background:linear-gradient(90deg,#a17ced,#67e4dc)}.game-space #journey::-moz-progress-bar{background:linear-gradient(90deg,#a17ced,#67e4dc)}
body.game-blocks{background:radial-gradient(ellipse at 0 0,#fff0a5,transparent 48%),radial-gradient(ellipse at 100% 35%,#d1f6ff,transparent 44%),#eff4df}.game-blocks .workshop-top{background:#fff0ac;color:#5a5129}.game-blocks .hud{color:#4f6c4b;background:#f3ffdf}.game-blocks .board{background:#d3dff3;border-color:#a9bed9}.game-blocks .cell{background:#f9fcff;border-color:#8eaac9}.game-blocks .cell.filled{background:var(--block-colour);border-color:#263d581c;box-shadow:inset 0 4px 0 #ffffff66,inset 0 -4px 0 #00000019,0 2px 2px #00000012}.game-blocks .cell.preview{background:#c4f2bd;outline-color:#3c985b}.game-blocks .cell.invalid{background:#ffd5cb;outline-color:#d76d62}.game-blocks .tray{background:linear-gradient(130deg,#fff1c1,#ffe9d7);border-color:#e6cd92}.game-blocks .tile-button{background:#fffef6;border-color:#dfc48e}.game-blocks .tile-button.selected{outline-color:#218b79;background:#eafff1}.game-blocks .tile-label,.game-blocks .board-heading span{color:#64673d}.game-blocks .builder-note{background:#e3f7cf}.game-blocks .builder-note p{color:#4a6e39}.game-blocks .message{background:#e7f8da;color:#466238}.game-blocks .board-actions>#hint{background:#ffe78d;border-color:#dcba4c}
@media(max-width:650px){.game-welcome{min-height:130px;margin-bottom:17px;border-width:4px;border-radius:20px;grid-template-columns:1.15fr 1fr}.welcome-copy{padding:12px;gap:6px}.welcome-copy strong{font-size:15px}.welcome-copy p{font-size:10px;line-height:1.4}.welcome-buddies img{width:37px;height:37px;border-width:2px}.welcome-buddies span{font-size:8px;line-height:1.3}.welcome-scene{min-height:130px}.cheerful-game .heading{margin-bottom:16px}.explorer-art{width:64px;height:64px}.setup-buddies img{width:57px;height:57px}}
@media(prefers-reduced-motion:reduce){.cheerful-game *{scroll-behavior:auto!important}}

.game-market .customer-illustration{display:block;background-image:url('/game-art/market-customers-v1.webp');background-repeat:no-repeat;background-size:400% 200%;background-position:var(--customer-x) var(--customer-y);background-color:#fff9e5;font-size:0!important;width:100px;height:100px;flex-shrink:0;border-radius:50%;border:4px solid #ffe6a4;box-shadow:0 4px 0 #e7c06855}.game-market #paymentFace.customer-illustration{margin:0 auto 10px}@media(max-width:650px){.game-market .customer-illustration{width:75px;height:75px;border-width:3px}}
