.ds-dialog .mini-stage{background-size:cover!important;background-position:center!important}
.ds-dialog #mini-hint,.ds-dialog #mini-pause{min-height:44px!important;min-width:44px}
.ds-pictures[data-count="6"] .ds-detail{width:clamp(44px,25%,210px)}
.ds-pictures[data-count="8"] .ds-detail{width:clamp(44px,18%,160px)}
.ds-hint-locked{visibility:hidden!important;pointer-events:none!important}.ds-dialog .ds-hint-ready{animation:ds-next 1.6s ease-in-out infinite;box-shadow:0 0 0 3px #ffe48b,0 0 18px #fff0a0}
.ds-photo .ds-hint{outline:4px solid #ffe391;outline-offset:-2px;background:#fff3c633}
.ds-level-choice{display:flex;align-items:center;justify-content:center;gap:12px;margin:9px auto 0;max-width:520px;color:inherit;text-shadow:inherit}.ds-level-choice>span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:130px;background:none;border:0;border-radius:0;padding:6px 10px;line-height:1.2}.ds-level-choice strong{font-size:18px}.ds-level-choice small{font-size:12px}.ds-level-choice button{min-width:80px;min-height:44px;border:3px solid #edce91;border-radius:16px;background:linear-gradient(#fff7df,#ead29e);box-shadow:0 3px #ab7c3c;color:#604625;font-size:16px;font-weight:900;text-shadow:none;padding:5px 12px}.ds-level-choice button:disabled{opacity:.45;box-shadow:none}
@media(max-width:360px){.ds-level-choice{gap:5px}.ds-level-choice>span{min-width:110px;padding:5px}.ds-level-choice button{min-width:69px;padding:4px 6px;font-size:14px}.ds-level-choice strong{font-size:16px}.ds-level-choice small{font-size:10px}}
.ds-field{position:absolute;inset:var(--mini-safe-top,90px) 3% var(--mini-safe-bottom,45px);display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;touch-action:none;user-select:none;--ds-unit:400px;color:#4f3d23}
.ds-pictures{min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:clamp(8px,2vw,22px);align-items:stretch}
.ds-photo{position:relative;min-width:0;min-height:0;border:5px solid #ddbb78;box-shadow:inset 0 0 0 3px #fff1ce,0 5px 0 #876336,0 8px 16px #33451e55;border-radius:25px;overflow:hidden;background:var(--ds-picture) center/cover;isolation:isolate}
.ds-photo-label{position:absolute;left:10px;top:7px;border-radius:12px;background:#fff2d2ed;padding:5px 12px;font-weight:900;font-size:clamp(12px,1.7vw,20px);pointer-events:none;z-index:2}
.ds-detail{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:clamp(44px,31%,210px);height:30%;min-height:44px;padding:0;border:0;border-radius:45%;background:transparent;touch-action:none;color:#467041;-webkit-tap-highlight-color:transparent;isolation:isolate}
.ds-detail:before{content:'';position:absolute;left:12%;right:12%;bottom:1%;height:12%;border-radius:50%;background:#315c3050;filter:blur(3px);z-index:-1}
.ds-detail img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 1px #42552840)}
.ds-absent img,.ds-absent:before{opacity:0}.ds-check{display:none;position:absolute;bottom:0;right:0;background:#38673a;color:#fff2c2;border:3px solid #fff1bc;border-radius:50%;width:26px;height:26px;font-size:18px;line-height:23px;font-weight:900}
.ds-found{outline:4px solid #fff1a5;outline-offset:-3px;box-shadow:0 0 0 3px #bb8937,0 0 20px #ffed8c99}.ds-found.ds-absent{background:#fff1bf24;outline-style:dashed}
.ds-fixed{outline:0;box-shadow:none}.ds-fixed .ds-check{display:block}.ds-fixed img{animation:ds-welcome .8s ease-in-out}
.ds-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;border:3px solid #dab576;border-radius:23px;background:#fff3d9ed;box-shadow:0 5px #a47840;padding:5px 12px}
.ds-guide{display:flex;align-items:center;gap:10px;min-width:0;font-size:clamp(13px,1.8vw,21px);font-weight:900;line-height:1.2}.ds-guide>img{width:clamp(40px,6vw,65px);height:clamp(40px,6vw,65px);object-fit:contain;flex:none}.ds-listen{border:2px solid #d8b276;background:#fff9e8;border-radius:50%;width:44px;height:44px;flex:none;font-size:21px;color:#4d623d}
.ds-work{display:flex;align-items:center;gap:8px;min-height:54px;flex:none}.ds-piece{display:flex;align-items:center;border:3px solid #ce9b4e;border-radius:18px;background:#fff9e6;min-height:54px;padding:3px 10px;max-width:220px;touch-action:none;color:#644b29;font-weight:900;font-size:clamp(13px,1.5vw,18px);box-shadow:0 3px #af7c37}.ds-piece img{width:54px;height:54px;object-fit:contain}.ds-piece[aria-pressed=true]{outline:4px solid #79ac68}.ds-work-hint{font-size:12px;font-weight:700;line-height:1.3}
.ds-next{min-height:48px;max-width:260px;padding:8px 18px;border:3px solid #fff0b7;border-radius:18px;background:linear-gradient(#75af66,#3b773e);box-shadow:0 4px #315c32;color:#fff8d9;font-weight:900;font-size:clamp(14px,1.7vw,20px);animation:ds-next 1.6s ease-in-out infinite}.ds-page-stars{display:flex;gap:9px;font-size:35px;color:#d6bd8a;text-shadow:0 2px #fff8dd}.ds-page-stars .earned{color:#f5ba35}.ds-ghost{position:absolute;z-index:20;width:clamp(64px,calc(var(--ds-unit)*.3),150px);height:clamp(64px,calc(var(--ds-unit)*.3),150px);transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 8px 5px #37382466)}.ds-ghost img{width:100%;height:100%;object-fit:contain}
.ds-hint{animation:ds-glow 1.2s ease-in-out infinite}.ds-pollen{position:absolute;inset:0;display:none;align-items:center;justify-content:space-evenly;color:#fff4a2;font-size:clamp(40px,7vw,80px);text-shadow:0 3px #c18a29;pointer-events:none}.ds-celebrate .ds-pollen{display:flex;animation:ds-stars 2s ease-out infinite}.ds-celebrate .ds-detail img{animation:ds-welcome 1.8s ease-in-out infinite}.ds-pollen i{font-style:normal;align-self:flex-start;padding-top:17%}.ds-paused,.ds-paused *{animation-play-state:paused!important}
@keyframes ds-welcome{0%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-9%) rotate(-5deg)}65%{transform:translateY(-3%) rotate(5deg)}}
@keyframes ds-next{50%{filter:brightness(1.12);box-shadow:0 4px #315c32,0 0 12px #ffe88d}}
@keyframes ds-glow{50%{box-shadow:0 0 0 5px #ffe391,0 0 20px #fff3aa;background:#ffe6a840}}
@keyframes ds-stars{0%{opacity:0;transform:translateY(15%) scale(.8)}40%{opacity:1}100%{opacity:0;transform:translateY(-25%) scale(1.05)}}
@media(orientation:portrait){.ds-pictures{grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:10px}.ds-detail{width:24%;height:30%}.ds-pictures[data-count="6"] .ds-detail{width:22%;height:30%}.ds-bottom{min-height:100px;flex-wrap:wrap;justify-content:center;gap:3px;padding:5px 8px}.ds-guide{width:100%;gap:7px}.ds-guide>span{flex:1}.ds-work-hint{display:none}.ds-piece{min-height:48px}.ds-piece img{width:43px;height:43px}.ds-page-stars{font-size:24px}.ds-photo-label{top:4px;left:7px;padding:3px 9px;font-size:12px}}
@media(max-width:360px){.ds-dialog .mini-header h2{font-size:17px}.ds-dialog .mini-score{gap:4px;font-size:10px}.ds-dialog #mini-hint{font-size:0;padding:7px;width:44px}.ds-dialog #mini-hint:after{content:'?';font-size:18px}.ds-field{left:2%;right:2%;gap:7px}.ds-bottom{min-height:91px}.ds-guide{font-size:12px}.ds-guide>img{width:32px;height:40px}.ds-photo{border-width:3px;border-radius:18px}.ds-detail{height:30%}}
@media(orientation:landscape) and (max-height:450px){.ds-field{gap:7px}.ds-bottom{min-height:54px;padding:3px 10px}.ds-guide{font-size:13px}.ds-guide>img{width:40px;height:40px}.ds-work-hint{display:none}.ds-piece{min-height:44px}.ds-piece img{width:40px;height:40px}.ds-next{font-size:14px;min-height:44px}.ds-photo-label{font-size:11px;padding:3px 8px}.ds-page-stars{font-size:27px}}
@media(prefers-reduced-motion:reduce){.ds-field *{animation:none!important;transition:none!important}}
