: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)); } } }

.puppy-stage{background:linear-gradient(180deg,#ffd9ef,#fff8e8 60%,#d8f8ee)}.runway{position:absolute;left:50%;bottom:-40px;width:340px;height:210px;transform:translateX(-50%) perspective(300px) rotateX(55deg);background:repeating-linear-gradient(90deg,#fff 0 28px,#ffd1dc 28px 56px);border-radius:40px 40px 0 0}.puppy{position:absolute;left:50%;top:52%;width:280px;height:310px;transform:translate(-50%,-50%);transition:transform .35s ease}.puppy.showtime{animation:walk .9s ease 2}.ear{position:absolute;top:62px;width:72px;height:112px;background:#8b5e3c;border-radius:50% 50% 42% 42%;z-index:1}.ear.left{left:38px;transform:rotate(18deg)}.ear.right{right:38px;transform:rotate(-18deg)}.head{position:absolute;left:62px;top:42px;width:156px;height:148px;border-radius:50%;background:#f2c18b;border:7px solid #8b5e3c;z-index:2}.body{position:absolute;left:72px;top:178px;width:136px;height:98px;border-radius:50% 50% 36% 36%;background:#f2c18b;border:7px solid #8b5e3c}.eye{position:absolute;top:54px;width:18px;height:24px;border-radius:50%;background:#20313b}.eye.left{left:42px}.eye.right{right:42px}.nose{position:absolute;left:64px;top:80px;width:28px;height:20px;border-radius:50%;background:#20313b}.smile{position:absolute;left:55px;top:102px;width:50px;height:22px;border-bottom:5px solid #20313b;border-radius:0 0 999px 999px}.hat,.glasses,.outfit{position:absolute;z-index:5}.hat{left:98px;top:4px;font-size:3.4rem}.hat.crown:before{content:"👑"}.hat.wizard:before{content:"🧙"}.hat.bow:before{content:"🎀"}.hat.none:before{content:""}.glasses{left:84px;top:91px;font-size:2.7rem}.glasses.sun:before{content:"🕶️"}.glasses.star:before{content:"⭐"}.glasses.heart:before{content:"💖"}.glasses.none:before{content:""}.outfit{left:88px;top:198px;font-size:4.2rem}.outfit.cape:before{content:"🦸"}.outfit.tutu:before{content:"🩰"}.outfit.sweater:before{content:"🧥"}.outfit.none:before{content:""}.stars{position:absolute;left:50%;top:18%;transform:translateX(-50%);font-size:2.5rem;opacity:0}.puppy-stage.good .stars{animation:star-pop 1s ease}.puppy-stage.bad .puppy{animation:shake .45s ease}@keyframes star-pop{0%{opacity:0;transform:translateX(-50%) scale(.5)}35%{opacity:1;transform:translateX(-50%) scale(1.2)}100%{opacity:0;transform:translateX(-50%) translateY(-30px)}}@keyframes walk{50%{transform:translate(-50%,-54%) rotate(2deg)}}@keyframes shake{25%{transform:translate(calc(-50% - 10px),-50%)}75%{transform:translate(calc(-50% + 10px),-50%)}}
