.adventure-game:has(.creative-game) { padding-top: 10px; }
.adventure-active #kaleidoCompanion { display:none!important; }
.adventure-game:has(.creative-game) { padding-bottom:80px; }
.adventure-game:has(.creative-game) > .adventure-game-head { margin-bottom: 8px; }
.adventure-game:has(.creative-game) > .adventure-prompt,
.adventure-game:has(.creative-game) > .adventure-feedback { display: none; }
.adventure-playfield:has(.creative-game) { padding: 0 !important; min-height: 0 !important; }
.creative-game { --cp-ink:#44314e; --cp-accent:#9062ae; --cp-soft:#f4e9fb; display: grid; flex:1 1 auto; width:100%; min-width:0; grid-template-columns:minmax(0,1fr) 290px; min-height:520px; overflow: hidden; border-radius:24px; background:#fffaf3; color:var(--cp-ink); border:3px solid #fff; box-shadow:0 12px 35px #56344918; font-family:'Outfit',system-ui,sans-serif; }
.creative-game[data-kind="cupcakes"] { --cp-accent:#c95f80; --cp-soft:#ffe9ed; }
.creative-game[data-kind="dress-up"] { --cp-accent:#358a7a; --cp-soft:#e1f7ec; }
.creative-game[data-kind="dog-walking"] { --cp-accent:#4c8662; --cp-soft:#e8f5df; }
.cp-stage { position:relative; min-width:0; min-height:520px; overflow:hidden; background-position:center; background-size:cover; }
.cp-stage::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg,#fff7ed22,#fff9e6aa); pointer-events:none; }
.cp-viewport { position:absolute; inset:0; }
.cp-viewport canvas { display:block; width:100%; height:100%; touch-action:none; }
.cp-scene-label { position:absolute; top:16px; left:16px; right:16px; display:flex; justify-content:space-between; gap:8px; pointer-events:none; }
.cp-scene-label span { padding:7px 12px; border-radius:20px; background:#fffaf0ed; box-shadow:0 3px 10px #57304718; font-size:12px; font-weight:800; }
.cp-stage-tip { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); width:max-content; max-width:90%; border-radius:18px; background:#fffdf3ee; padding:10px 16px; text-align:center; font-size:14px; font-weight:700; pointer-events:none; box-shadow:0 3px 15px #3624421a; }
.cp-controls { padding:20px 16px; display:flex; flex-direction:column; gap:12px; background:linear-gradient(150deg,#fffdf8,var(--cp-soft)); border-left:1px solid #49354413; min-width:0; }
.cp-controls h3 { font-size:25px; line-height:1.06; margin:0; }
.cp-kicker { font-size:10px; letter-spacing:.13em; font-weight:800; text-transform:uppercase; color:var(--cp-accent); }
.cp-mobile-idea { display:none; }
.cp-status { font:600 14px/1.45 'Inter',sans-serif; min-height:42px; margin:0; }
.cp-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.creative-game button, .creative-game select { min-height:44px; border:2px solid #ded0e3; border-radius:12px; padding:9px 10px; background:white; color:var(--cp-ink); font:800 14px/1.1 'Outfit',sans-serif; cursor:pointer; touch-action:manipulation; }
.creative-game button:focus-visible, .creative-game select:focus-visible { outline:3px solid #f0ba43; outline-offset:3px; }
.creative-game button:disabled { opacity:.5; cursor:default; }
.creative-game button[aria-pressed="true"] { border-color:var(--cp-accent); background:var(--cp-soft); box-shadow:0 3px 0 var(--cp-accent); }
.creative-game .cp-primary { background:var(--cp-accent); color:white; border-color:transparent; box-shadow:0 4px 0 #3c25552b; }
.cp-palette { display:flex; justify-content:space-between; gap:5px; }
.cp-palette button { padding:0; width:34px; min-width:30px; min-height:36px; border:3px solid white; background:var(--swatch); box-shadow:0 1px 5px #39233d22; }
.cp-palette button[aria-pressed="true"] { background:var(--swatch); outline:2px solid var(--cp-ink); outline-offset:1px; }
.cp-secondary { display:flex; flex-wrap:wrap; gap:6px; }
.cp-secondary button { flex:1; font-size:12px; }
.cp-assist { display:grid; gap:7px; padding:10px; border-radius:15px; background:#ffffffb0; }
.cp-assist label, .cp-assist summary { font-size:12px; font-weight:800; }
.cp-assist summary { cursor:pointer; }
.cp-assist select { width:100%; margin-top:8px; }
.cp-assist button { width:100%; margin-top:6px; }
.cp-footer { margin-top:auto; display:grid; gap:8px; }
.cp-save-note { font-size:11px; color:#735a7b; line-height:1.4; }
.cp-result { display:grid; gap:10px; }
.cp-result[hidden],.cp-edit[hidden] { display:none; }
.cp-edit { display:grid; gap:12px; }
.creative-game [hidden] { display:none!important; }
.cp-result h3 { font-size:28px; }
.cp-stars { color:#d09421; font-size:25px; letter-spacing:5px; }
.cp-stamp { width:86px; height:86px; border:3px dashed #c99a4b; border-radius:50%; display:grid; place-items:center; text-align:center; font-size:14px; font-weight:900; color:#986523; transform:rotate(-12deg); background:#fff5d7; margin:0 auto 8px; }
.cp-progress { width:100%; height:10px; accent-color:var(--cp-accent); }
.cp-paused-cover { position:absolute; inset:0; display:grid; place-items:center; background:#fff8ef88; backdrop-filter:blur(5px); font-size:28px; font-weight:900; z-index:4; }
.cp-paused-cover[hidden] { display:none; }
.cp-badge { position:absolute; top:60px; left:16px; width:160px; background:#fffdf5ef; padding:12px; border-radius:18px; font-size:13px; line-height:1.4; pointer-events:none; }
@media(min-width:1500px) { .creative-game { grid-template-columns:minmax(0,1fr) 330px; } .cp-stage { min-height:600px; } }
@media(max-width:760px) {
  .creative-game { grid-template-columns:minmax(0,1fr); border-radius:18px; }
  .cp-stage { min-height:340px; height:42dvh; max-height:500px; }
  .cp-controls { padding:14px; border-left:0; border-top:1px solid #49354413; gap:10px; }
  .cp-controls h3 { font-size:22px; }
  .cp-edit { gap:10px; }
  .cp-tools { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  .creative-game[data-kind="dog-walking"] .cp-tools { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .creative-game[data-kind="dog-walking"] .cp-tools:has([data-cp^="care:"]) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cp-tools button { padding:8px 5px; font-size:12px; }
  .cp-status { min-height:0; font-size:13px; }
  .cp-palette { justify-content:center; gap:12px; }
  .cp-secondary button { min-height:40px; }
  .cp-footer { grid-template-columns:1fr 1fr; align-items:center; }
  .cp-save-note { grid-column:1/-1; }
  .cp-assist { padding:8px 10px; }
  .cp-result { grid-template-columns:1fr 1fr; }
  .cp-result h3,.cp-result p,.cp-result .cp-stars { grid-column:1/-1; }
  .cp-stamp { display:none; }
  .cp-badge { display:none; }
  .cp-mobile-idea { display:block; font-size:12px; color:var(--cp-accent); margin:0; }
  .adventure-game:has(.creative-game) .adventure-game-head { padding:0 4px; }
  .adventure-game:has(.creative-game) #adventureGameTitle { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .creative-game * { animation:none!important; transition:none!important; } }
