:root {
  --bg: #fff8e8;
  --paper: #fffdf7;
  --ink: #24313a;
  --muted: #65717a;
  --blue: #2f80ed;
  --green: #4ecb8f;
  --purple: #9b8cff;
  --pink: #ff8fab;
  --gold: #f4b942;
  font-family: ui-rounded, "Avenir Next", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(255,209,102,.38), transparent 28%),
    radial-gradient(circle at 82% 9%, rgba(155,140,255,.28), transparent 28%),
    linear-gradient(180deg, #ecfbff, #fff8e8);
}
button, input { font: inherit; }
.game-header { width: min(1120px, calc(100% - 28px)); margin: 16px auto 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.home-link, .soft-button { border: 0; text-decoration: none; border-radius: 999px; padding: 12px 16px; color: #17456e; background: rgba(255,255,255,.78); font-weight: 950; box-shadow: 0 10px 25px rgba(36,49,58,.08); cursor: pointer; }
.game-shell { width: min(1120px, calc(100% - 28px)); margin: 22px auto 40px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: stretch; }
.stage { position: relative; min-height: calc(100dvh - 118px); border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #bcefff, #eafff7 65%, #b7efc5); box-shadow: 0 22px 60px rgba(47,128,237,.18); border: 5px solid rgba(255,255,255,.72); }
.panel { background: rgba(255,253,247,.9); border: 4px solid rgba(255,255,255,.72); border-radius: 34px; padding: 24px; box-shadow: 0 22px 60px rgba(47,128,237,.16); }
.kicker { display: inline-flex; margin: 0 0 12px; padding: 8px 13px; border-radius: 999px; background: #fff; color: #1559b7; font-weight: 950; }
h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: .92; letter-spacing: -.055em; margin: 0 0 12px; }
p { color: var(--muted); line-height: 1.5; font-size: 1.02rem; }
.score-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.score-pill { border-radius: 20px; background: #f2f8ff; padding: 12px; font-weight: 950; color: #17456e; }
.message { min-height: 58px; margin: 14px 0; padding: 14px; border-radius: 20px; background: #f2f8ff; color: #35526d; font-weight: 850; }
.actions, .choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
button.choice, .main-button { border: 0; border-radius: 18px; padding: 14px 12px; background: #fff; color: #17456e; font-weight: 950; box-shadow: 0 8px 18px rgba(36,49,58,.08); cursor: pointer; }
.main-button { width: 100%; background: var(--blue); color: #fff; margin-top: 14px; }
button.choice:hover, .main-button:hover, .soft-button:hover { transform: translateY(-1px); }
button.choice.selected { background: #fff4ca; outline: 4px solid rgba(255,209,102,.45); }
.big-character { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(470px, 82%); aspect-ratio: 1; }
.float-card { position: absolute; border-radius: 28px; background: rgba(255,253,247,.86); border: 4px solid rgba(255,255,255,.7); box-shadow: 0 18px 40px rgba(36,49,58,.12); padding: 12px 16px; font-weight: 950; }
.cloud { position: absolute; width: 170px; height: 64px; border-radius: 999px; background: rgba(255,255,255,.72); }
.cloud:before, .cloud:after { content:""; position:absolute; border-radius:50%; background:inherit; }
.cloud:before { width:70px; height:70px; left:24px; top:-28px; }
.cloud:after { width:88px; height:88px; right:18px; top:-40px; }
.cloud.one { left: 48px; top: 76px; }
.cloud.two { right: 42px; top: 150px; transform: scale(.82); }
@media (max-width: 880px) { .game-shell { grid-template-columns: 1fr; } .stage { min-height: 460px; } .panel { order: -1; } }
@media (prefers-reduced-motion: no-preference) { .big-character { animation: gentle-bob 3s ease-in-out infinite; } @keyframes gentle-bob { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 10px)); } } }

.bakery-stage { background: linear-gradient(180deg, #ffd9e4, #fff5d9 58%, #d8f8ee); }
.counter { position:absolute; left:0; right:0; bottom:0; height:142px; background:linear-gradient(180deg,#ffc66b,#e58b42); border-top:8px solid rgba(255,255,255,.5); }
.customer { position:absolute; left:13%; bottom:118px; width:190px; height:190px; border-radius:48% 48% 44% 44%; background:#fffdf7; border:7px solid #8ed3ff; box-shadow:0 16px 35px rgba(36,49,58,.14); }
.customer.robot { background:#dff3ff; border-color:#9b8cff; border-radius:34px; }
.customer.dragon { background:#8ee8bd; border-color:#2f9f73; }
.customer .horn { position:absolute; left:78px; top:-48px; width:34px; height:68px; background:#ffd166; clip-path:polygon(50% 0,100% 100%,0 100%); }
.customer .ears:before,.customer .ears:after { content:""; position:absolute; top:20px; width:48px; height:56px; background:#fffdf7; border:6px solid #8ed3ff; border-radius:50% 50% 20% 20%; }
.customer .ears:before { left:-28px; transform:rotate(-22deg); } .customer .ears:after { right:-28px; transform:rotate(22deg); }
.customer.robot .horn { display:none; } .customer.robot .ears:before,.customer.robot .ears:after { border-radius:10px; background:#9b8cff; }
.customer.dragon .horn { background:#fff3b0; } .customer.dragon .ears:before,.customer.dragon .ears:after { background:#4ecb8f; border-color:#2f9f73; }
.face { position:absolute; inset:0; } .eye { position:absolute; top:78px; width:24px; height:30px; border-radius:50%; background:#20313b; } .eye.left{left:58px}.eye.right{right:58px}.smile{position:absolute; left:62px; top:120px; width:66px; height:26px; border-bottom:7px solid #20313b; border-radius:0 0 999px 999px;}
.cupcake { position:absolute; left:55%; bottom:118px; width:190px; height:210px; transform:translateX(-50%); }
.wrapper { position:absolute; left:38px; bottom:0; width:114px; height:92px; background:repeating-linear-gradient(90deg,#ff8fab 0 14px,#ffd1dc 14px 28px); clip-path:polygon(0 0,100% 0,84% 100%,16% 100%); border-radius:0 0 22px 22px; }
.frosting { position:absolute; left:18px; bottom:72px; width:154px; height:94px; border-radius:48% 48% 40% 40%; background:#fff4d6; box-shadow:inset 0 -16px rgba(36,49,58,.08); }
.frosting.strawberry{background:#ff8fab}.frosting.mint{background:#8ee8bd}.frosting.chocolate{background:#8b5e3c}.frosting.vanilla{background:#fff4d6}
.sprinkles { position:absolute; left:42px; bottom:112px; width:106px; height:36px; font-size:1.35rem; text-align:center; z-index:2; }
.sprinkles.rainbow:before{content:"🌈 🌈"}.sprinkles.stars:before{content:"⭐ ⭐ ⭐"}.sprinkles.hearts:before{content:"💖 💖"}.sprinkles.none:before{content:""}
.topper { position:absolute; left:78px; bottom:154px; font-size:2.3rem; z-index:3; }.topper.cherry:before{content:"🍒"}.topper.crown:before{content:"👑"}.topper.gem:before{content:"💎"}.topper.none:before{content:""}
.order-card{right:32px;top:34px;max-width:270px}.sparkles{position:absolute;left:55%;bottom:310px;font-size:3rem;opacity:0}.stage.serve-good .sparkles{animation:pop .9s ease}.stage.serve-bad .cupcake{animation:shake .45s ease}
@keyframes pop{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:scale(.8) translateY(-30px)}}@keyframes shake{0%,100%{transform:translateX(-50%)}25%{transform:translateX(calc(-50% - 12px))}75%{transform:translateX(calc(-50% + 12px))}}
