body.bag-adventure.under-table-background{background:#f4f0e4!important}
.under-table-background .story-world-backdrop{display:none!important}
body.bag-adventure #playScreen.under-table-screen:not([hidden]) .play-world{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;background:#f4f0e4!important}
#playScreen.under-table-screen .story-window{display:none!important}
body.bag-adventure #playScreen.under-table-screen #gameBoard{padding:6px 14px 12px;grid-template-rows:36px minmax(0,1fr) 0!important;gap:5px;background:transparent!important}
body.bag-adventure #playScreen.under-table-screen #roundBoard{display:block!important;overflow:hidden!important;padding:0;height:100%}
#playScreen.under-table-screen #feedback{display:none!important}
.under-game{height:100%;width:min(100%,1100px);margin:auto;display:grid;grid-template-rows:minmax(0,1fr) clamp(105px,16vh,170px);position:relative;border-radius:28px;overflow:hidden;box-shadow:0 5px 0 #dfccb4;color:#183f43;background:#fff8e8}
.under-scene{position:relative;isolation:isolate;min-height:0;overflow:hidden;touch-action:none}
.under-room{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;pointer-events:none}
.under-instruction{position:absolute;top:5%;left:20%;width:60%;padding:18px 24px;border-radius:30px;background:#fffaf0f5;box-shadow:0 5px 0 #d5c6aa55;display:flex;align-items:center;justify-content:center;gap:18px;z-index:4;pointer-events:none}
.under-instruction:after{content:'';position:absolute;left:22%;bottom:-17px;border-top:22px solid #fffaf0;border-right:22px solid transparent}
.under-instruction>img{width:clamp(48px,6vw,90px);height:clamp(48px,6vw,90px);object-fit:contain}
.under-instruction h2{font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(26px,3.4vw,44px)!important;line-height:1.18!important;margin:0!important;text-align:left!important}
.under-instruction h2 span{display:block}
.under-furniture{position:absolute;left:8%;width:84%;top:30%;height:65%;z-index:1;pointer-events:none}
.under-furniture img{width:100%;height:100%;object-fit:fill;pointer-events:none}
.under-dropzone{position:absolute!important;z-index:2;padding:0!important;min-height:44px!important;border:4px dashed #fffaf0!important;border-radius:24px!important;background:#fff8dd20!important;box-shadow:0 0 0 2px #5c817522!important;transition:background .2s,box-shadow .2s;touch-action:manipulation}
.under-dropzone:disabled{opacity:1!important}
.under-dropzone.drop-near,.under-dropzone:focus-visible{background:#ffdc6860!important;box-shadow:0 0 0 8px #ffefb366!important;outline:3px solid #e2ae37!important}
.under-arrow{position:absolute;top:10%;left:0;width:100%;font:clamp(38px,5vw,66px)/1 Froople,sans-serif;color:#fffaf0;text-shadow:0 3px 0 #758d79;animation:under-point 1.6s ease-in-out infinite;pointer-events:none}
.under-tray{display:grid;grid-template-columns:repeat(var(--toy-count,4),minmax(0,1fr));align-items:center;gap:12px;padding:14px 28px;background:#fff9edf5;border-top:2px solid #fffdf1;z-index:5}
.under-toy{width:100%;height:100%;min-width:0!important;min-height:64px!important;border:3px solid transparent!important;border-radius:50%!important;padding:7px!important;background:transparent!important;box-shadow:none!important;touch-action:none;cursor:grab;position:relative;transition:background .2s,transform .2s}
.under-toy img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;max-height:140px}
.under-toy:hover,.under-toy.selected{background:#ffedb6!important;border-color:#ffe6a0!important;outline:none!important;transform:translateY(-5px)}
.under-toy:focus-visible{outline:4px solid #d69d25!important;outline-offset:0}
.under-drag-source{opacity:.35!important}
.under-drag-ghost{position:fixed!important;z-index:1000;pointer-events:none;transform:translate(-50%,-50%);width:clamp(75px,13vw,155px);height:clamp(75px,13vw,155px);border:0!important;background:none!important;padding:0!important;filter:drop-shadow(0 12px 7px #413a302f)}
.under-drag-ghost img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.under-placed{position:absolute;left:38%;top:66%;width:24%;height:24%;z-index:3;pointer-events:none;transform-origin:50% 85%}
.under-placed img{width:100%;height:100%;object-fit:contain}
.under-solved .under-dropzone{opacity:0!important;pointer-events:none}
.under-success .under-placed{animation:under-land .55s ease-out}
.under-success .under-toy{opacity:.45!important;transform:none}
.under-status{position:absolute;bottom:clamp(110px,16vh,175px);left:15%;width:70%;margin:0!important;padding:8px 12px;border-radius:20px;text-align:center;background:#fff9ebf5;color:#255951;font-size:clamp(18px,2vw,25px);font-weight:800;z-index:6;pointer-events:none}
.under-status:empty{display:none}
.under-retry{position:absolute!important;top:24%;left:50%;transform:translateX(-50%);z-index:10}
.under-sparkles{position:absolute;inset:48% 22% 3%;z-index:4;pointer-events:none;display:none}
.under-success .under-sparkles{display:block}
.under-sparkles span{position:absolute;left:calc(var(--i)*11%);color:#ffd957;font-size:clamp(25px,4vw,52px);text-shadow:0 2px 0 #e0a838;animation:under-twinkle 1.2s ease-in-out 2;animation-delay:calc(var(--i)*.08s)}
.under-bounce{animation:under-bounce .45s ease-out}
.under-correct-gently{animation:under-point .45s ease-in-out 2}
.under-paused *{animation-play-state:paused!important}
@keyframes under-point{50%{translate:0 8px}}
@keyframes under-land{0%{transform:translateY(-22px) scale(.8)}65%{transform:scale(1.12,.9)}100%{transform:scale(1)}}
@keyframes under-twinkle{0%,100%{opacity:0;transform:scale(.3) rotate(-12deg)}50%{opacity:1;transform:scale(1.2) rotate(15deg)}}
@keyframes under-bounce{30%{transform:translateX(-10px) rotate(-5deg)}65%{transform:translateX(8px) rotate(4deg)}}
@media(max-width:600px){body.bag-adventure #playScreen.under-table-screen #gameBoard{padding:4px;grid-template-rows:32px minmax(0,1fr) 0!important;gap:4px}.under-game{border-radius:22px;grid-template-rows:minmax(0,1fr) 105px}.under-instruction{left:6%;width:88%;top:5%;padding:14px 12px;gap:12px;border-radius:23px}.under-instruction h2{font-size:26px!important}.under-instruction>img{width:48px;height:55px}.under-tray{gap:3px;padding:10px 5px}.under-toy{padding:4px!important;min-height:70px!important}.under-furniture{left:1%;width:98%;top:37%;height:57%}.under-dropzone{border-width:3px!important;border-radius:15px!important}.under-status{bottom:109px;left:4%;width:92%;font-size:18px}.under-placed{left:34%;width:32%;height:24%}}
@media(max-height:550px) and (orientation:landscape){.under-game{grid-template-rows:minmax(0,1fr) 76px;width:min(100%,850px)}.under-instruction{top:2%;left:30%;width:40%;padding:7px 12px;gap:7px}.under-instruction h2{font-size:22px!important}.under-instruction>img{width:40px;height:40px}.under-tray{padding:4px 20px}.under-toy{min-height:52px!important}.under-toy img{max-height:63px}.under-status{bottom:80px}.under-furniture{top:28%;height:70%}}
@media(prefers-reduced-motion:reduce){.under-game *{animation:none!important;transition:none!important}}
.placement-on .under-placed{top:34%;height:22%;left:38%;width:24%}
.zone-on .under-arrow{font-size:clamp(28px,4vw,50px);top:0}
.under-round-2 .zone-on{background:#fff8dd16!important}
@media(max-width:600px){.placement-on .under-placed{top:35%;height:21%;width:32%;left:34%}}

body.bag-adventure :is(.under-toy,.under-toy img){touch-action:none!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.bag-adventure .under-toy.touch-drag-ghost{z-index:2147483000;max-width:min(22vw,150px);max-height:min(26vh,150px);background:transparent!important;box-shadow:none!important;border:0!important;margin:0!important}
.under-toy.drag-source{opacity:.35!important}
