body.dg-open{overflow:hidden!important;overscroll-behavior:none}
#shapeGame .dg-shell{position:fixed;inset:0;z-index:2500;isolation:isolate;height:100vh;height:100dvh;max-height:100dvh;display:grid;grid-template-rows:42px 65px minmax(0,1fr) 48px 23px;gap:7px;padding:12px max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:radial-gradient(ellipse at 20% 10%,#fffdf4 0,transparent 60%),#f8efdf;color:#614f44;font-family:inherit;overflow:hidden;box-sizing:border-box}
#shapeGame .dg-shell *{box-sizing:border-box}
#shapeGame .dg-shell button{font-family:inherit;font-weight:700;cursor:pointer;touch-action:manipulation;min-height:44px;min-width:44px;border:2px solid #dac9b7;border-radius:14px;background:linear-gradient(#fffef9,#faf2e3);box-shadow:0 2px 0 #c9b79e;color:#614f44;line-height:1.2;padding:4px;font-size:13px;-webkit-tap-highlight-color:transparent}
#shapeGame .dg-shell button:active{transform:translateY(1px);box-shadow:0 1px 0 #c9b79e}
#shapeGame .dg-shell button:focus-visible{outline:3px solid #4d88ab;outline-offset:1px}
#shapeGame .dg-shell button[aria-pressed=true]{border-color:#c97787;background:linear-gradient(#fff5f1,#f9e3e5);box-shadow:0 2px 0 #c97787}
.dg-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;width:min(100%,1000px);margin:auto;height:100%}
#shapeGame .dg-heading h2{margin:0;font-size:21px;letter-spacing:.04em;text-align:center;color:#87634a}
#shapeGame .dg-heading button{height:40px;min-height:40px;padding:5px 12px}
#shapeGame .dg-heading [data-action=sound]{font-size:19px;min-width:48px}
.dg-friends{display:flex;justify-content:center;gap:9px;min-height:0;margin:auto;height:100%;width:min(100%,660px)}
#shapeGame .dg-friends button{display:flex;justify-content:center;align-items:center;gap:6px;width:20%;min-width:0;font-size:12px;white-space:nowrap}
.dg-friends img{height:45px;width:35px;object-fit:contain}
.dg-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.78fr);gap:22px;min-height:0;width:min(100%,1000px);margin:auto;height:100%;align-items:center}
.dg-stage{min-height:0;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border:3px solid #d7c19f;border-radius:42% 42% 25px 25px;background:radial-gradient(ellipse at 50% 40%,#fffdf6 0 40%,#f4e0c7 80%);box-shadow:inset 0 0 0 6px #fff8e9}
.dg-stage:after{content:'';position:absolute;z-index:0;bottom:3%;left:22%;width:56%;height:4%;border-radius:50%;background:#c8a983;opacity:.35;filter:blur(1px)}
.dg-character{height:100%;width:100%;display:grid;place-items:center;z-index:1;min-height:0;padding:4px 24px 9px}
.dg-character>svg{height:100%;width:100%;max-height:100%;overflow:visible}
.dg-stage-star{position:absolute;color:#e2c08b;z-index:0;font-size:30px}.dg-star-a{top:27%;left:12%}.dg-star-b{top:53%;right:12%;font-size:20px}
.dg-sparkles{position:absolute;inset:15% 0;display:flex;align-items:center;justify-content:center;font-size:35px;color:#f0b237;text-shadow:0 0 10px #fff;opacity:0;pointer-events:none;z-index:2}
.dg-celebrate .dg-sparkles{animation:dg-sparkle 1.2s ease-out}.dg-celebrate .dg-character{animation:dg-bob .6s ease 2}
@keyframes dg-sparkle{0%{opacity:0;transform:scale(.5)}30%{opacity:1}100%{opacity:0;transform:scale(1.5) translateY(-12px)}}@keyframes dg-bob{50%{transform:translateY(-6px) rotate(1deg)}}
.dg-closet{min-width:0;background:#fffbf3;border:2px solid #e3d3bf;border-radius:23px;padding:14px;display:grid;grid-template-rows:88px 130px 58px;gap:13px;box-shadow:0 4px 0 #e9ddca}
.dg-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-height:0}
#shapeGame .dg-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;font-size:13px;padding:5px 3px}
.dg-tab-icon{height:47px;width:100%;display:flex;justify-content:center}.dg-tab-icon svg{width:100%;height:100%;overflow:visible;padding:3px}
.dg-carousel{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;gap:8px;min-height:0;align-items:stretch}
#shapeGame .dg-carousel>button{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;color:#9b7056;background:linear-gradient(#fff6e3,#f3dfbc)}
.dg-carousel>button>span{font-family:system-ui,sans-serif;font-size:45px;line-height:.8}.dg-carousel small{font-size:11px;margin-top:6px}
.dg-current{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding:5px;border-radius:16px;background:#f7efdf}
.dg-current-art{height:90px;width:100px;display:flex;align-items:center;justify-content:center;min-width:0}.dg-current-art svg{height:100%;width:100%;max-width:100%;overflow:visible;padding:3px}.dg-current>div{display:flex;flex-direction:column;gap:6px;align-items:center}.dg-item-name{font-size:15px;line-height:1.35;text-align:center;word-break:keep-all;overflow-wrap:anywhere}.dg-item-count{font-size:12px;color:#977d65;white-space:nowrap}
.dg-palette{display:grid;grid-template-columns:1fr 52px;gap:9px;min-height:0}.dg-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:0}
#shapeGame .dg-colors button{background:var(--swatch);min-width:0;padding:0;box-shadow:inset 0 3px 3px #ffffff66,inset 0 -3px 3px #73533f33,0 2px 0 #d6c5ae;border:3px solid #fffdf6;font-size:23px;text-shadow:0 1px 3px #594439;color:white;border-radius:50%}
#shapeGame .dg-colors button[aria-pressed=true]{outline:2px solid #8e5963;outline-offset:0;box-shadow:inset 0 3px 3px #ffffff55}
#shapeGame [data-action=colors]{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:22px;line-height:1}.dg-palette small{font-size:10px;margin-top:3px;white-space:nowrap}
.dg-stage-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(100%,660px);margin:auto;height:100%}
#shapeGame .dg-stage-actions button{font-size:13px;white-space:nowrap;padding:4px}
#shapeGame .dg-stage-actions [data-action=done]{background:linear-gradient(#d6edd5,#afd5ba);border-color:#7aa98a;box-shadow:0 2px 0 #7aa98a;color:#365c44}
.dg-status{font-size:12px;line-height:20px;white-space:nowrap;text-align:center;margin:0!important;color:#8a7058;overflow:hidden;text-overflow:ellipsis;min-height:0}
@media(max-width:680px){
#shapeGame .dg-shell{grid-template-rows:38px 53px minmax(0,1fr) 44px 20px;gap:5px;padding:8px max(9px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left))}
#shapeGame .dg-heading h2{font-size:17px;letter-spacing:0}#shapeGame .dg-heading button{font-size:12px;padding:4px 8px;min-height:36px;height:36px}#shapeGame .dg-heading [data-action=sound]{font-size:18px}
.dg-friends{gap:5px}.dg-friends img{height:28px;width:28px}#shapeGame .dg-friends button{flex-direction:column;gap:0;font-size:10px;padding:2px;min-height:48px}.dg-workspace{grid-template-columns:1fr;grid-template-rows:minmax(90px,1fr) 180px;gap:6px}.dg-stage{border-radius:32px;border-width:2px;box-shadow:inset 0 0 0 4px #fff8e9}.dg-character{padding:0 20px 5px}.dg-stage-star{font-size:23px}
.dg-closet{padding:6px;border-radius:17px;grid-template-rows:51px 59px 44px;gap:5px;box-shadow:0 2px 0 #e9ddca}.dg-tabs{gap:5px}#shapeGame .dg-tabs button{font-size:11px;padding:1px;gap:0;border-radius:10px}.dg-tab-icon{height:29px}.dg-tab-icon svg{padding:1px}.dg-carousel{grid-template-columns:49px minmax(0,1fr) 49px;gap:6px}.dg-carousel>button>span{font-size:30px}.dg-carousel small{font-size:10px;margin-top:1px}.dg-current{gap:9px;padding:2px}.dg-current-art{height:52px;width:70px}.dg-item-name{font-size:13px}.dg-item-count{font-size:10px}.dg-current>div{gap:1px}.dg-palette{grid-template-columns:1fr 47px;gap:6px}.dg-colors{gap:3px}#shapeGame .dg-colors button{border-radius:12px;font-size:21px}.dg-stage-actions{gap:5px}#shapeGame .dg-stage-actions button{font-size:11px;border-radius:11px}.dg-status{font-size:10px;line-height:18px}
}
@media(max-height:520px) and (min-width:550px){#shapeGame .dg-shell{grid-template-rows:34px 45px minmax(0,1fr) 44px 16px;gap:4px;padding:5px 12px}#shapeGame .dg-heading h2{font-size:17px}#shapeGame .dg-heading button{min-height:32px;height:32px}.dg-friends img{height:31px}.dg-friends{gap:5px}#shapeGame .dg-friends button{flex-direction:row;font-size:11px}.dg-workspace{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);gap:12px}.dg-closet{grid-template-rows:47px 59px 44px;gap:4px;padding:6px}.dg-tab-icon{height:28px}#shapeGame .dg-tabs button{font-size:10px;padding:1px}.dg-current-art{height:53px;width:70px}.dg-carousel{grid-template-columns:45px 1fr 45px;gap:4px}.dg-carousel>button>span{font-size:29px}.dg-item-name{font-size:12px}.dg-current>div{gap:0}.dg-colors{gap:5px}.dg-palette{gap:5px}.dg-status{font-size:10px;line-height:14px}}
@media(prefers-reduced-motion:reduce){.dg-celebrate .dg-sparkles,.dg-celebrate .dg-character{animation:none}.dg-celebrate .dg-sparkles{opacity:.7}}
/* Definite SVG viewport prevents intrinsic SVG aspect ratio from enlarging a grid row. */
#shapeGame .dg-character{position:absolute;inset:0;width:100%;height:100%;padding:0;display:block}
#shapeGame .dg-character>svg{position:absolute;inset:5px 16px 8px;width:calc(100% - 32px);height:calc(100% - 13px);max-height:calc(100% - 13px)}
#shapeGame .dg-colors button[aria-pressed=true]{background:var(--swatch)}
