*{box-sizing:border-box}
html,body{margin:0;height:100%;color:#263b32}
body{background:#3e6c62}
.mdg-stage{position:relative;margin:auto;max-width:1440px;height:100%;min-height:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,18%);align-items:center;gap:clamp(4px,2vw,28px);padding:8px clamp(6px,2vw,24px)}
.mdg-play{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;color:#174a4d}
.mdg-cue,.mdg-status{margin:0;text-align:center;max-width:100%;line-height:1.12}
.mdg-cue{padding:6px 12px;border-radius:999px;background:#fff7df;font-size:clamp(17px,2.2vw,29px);font-weight:600;box-shadow:0 2px 8px #482f2640}
.mdg-status{min-height:1.16em;padding:0 5px;color:#fff;paint-order:stroke fill;-webkit-text-stroke:3px #51432c;font-size:clamp(15px,1.8vw,23px);font-weight:600}
.mdg-status:empty{visibility:hidden}
.mdg-game{--activity-scale:2;zoom:var(--activity-scale);max-width:100%;width:max-content;min-width:0}
.mdg-stage>.mdg-vela{width:190%;max-width:none;max-height:62vh;object-fit:contain;filter:drop-shadow(2px 4px 5px #66412355);align-self:center;justify-self:center;pointer-events:none}
.mdg-game button{font:inherit;cursor:pointer}
.mdg-tile{width:var(--tile,55px);height:var(--tile,55px);display:inline-grid;place-items:center;padding:2px;border:1.5px solid #bd946b;border-radius:11px;color:#164a65;background:#fff5d9;touch-action:none;user-select:none}
.mdg-tile[data-source]{cursor:grab}
.mdg-tile[data-source]:active{cursor:grabbing}
.mdg-tile img,.mdg-mark{width:90%;height:90%;object-fit:contain;pointer-events:none}
.mdg-game button:focus-visible{outline:3px solid #164a65;outline-offset:2px;box-shadow:0 0 0 2px #fff8ea}
.mdg-selected{border:2px solid #1c6568;background:#c6efe2;box-shadow:0 0 0 2px #fdf7dd}
.mdg-before-check{border:2px solid #a95b32;background:#fee7bd}
.mdg-fixed{background:#f4dcc3;border:1px solid #dfb890}
.mdg-empty{width:64%;height:64%;border:1.5px dashed #986a51;border-radius:7px}
.mdg-bank{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;margin:7px auto 0;padding:5px;width:max-content;max-width:100%;border-radius:14px;background:#d2a77eea;border:1px solid #fff0c6aa}
.mdg-return{min-height:44px;align-self:center;padding:0 10px;border:1px solid #936c52;border-radius:9px;color:#513c31;background:#fff4da;font-weight:600!important}
.mdg-bouquet-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;margin:auto}
.mdg-ticket{background:#fff6e2;color:#2a5350;min-width:70px;text-align:center;border:2px solid #c38868;border-radius:12px;padding:5px 9px;align-self:center}
.mdg-ticket strong{display:block;font-size:clamp(30px,5vw,48px);line-height:.98}
.mdg-ticket div{display:grid;gap:4px;margin-top:5px}
.mdg-ticket div span{display:flex;gap:3px;justify-content:center}
.mdg-ticket i{width:7px;height:7px;background:#a83f69;border-radius:50%}
.mdg-bouquet{display:grid;place-items:center;background:#eec4b0f5;border:2px dashed #854c57;border-radius:22px 22px 34px 34px;min-width:min(50vw,268px);padding:6px 8px}
.mdg-bouquet-drop{border:0;background:#fff4df;border-radius:8px;min-height:42px;color:#604137;padding:0 .55rem}
.mdg-picked{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;padding-top:3px;width:100%;max-width:calc(5 * clamp(44px,5vw,56px) + 8px)}
.mdg-picked .mdg-tile,.mdg-stock .mdg-tile{width:clamp(44px,5vw,56px);height:clamp(44px,5vw,56px)}
.mdg-picked .mdg-tile{background:#ffe7e2;border-color:#c78487}
.mdg-stock{max-width:min(100%,450px)}
[data-adventure="bouquet-orders"] .mdg-game{width:100%;--flower-size:clamp(44px,6.5vw,80px)}
[data-adventure="bouquet-orders"] .mdg-bouquet-head{width:100%}
[data-adventure="bouquet-orders"] .mdg-bouquet{min-width:0;min-height:140px;padding:10px}
[data-adventure="bouquet-orders"] .mdg-picked{max-width:calc(5 * var(--flower-size) + 16px);gap:4px}
[data-adventure="bouquet-orders"] :is(.mdg-picked,.mdg-stock) .mdg-tile{width:var(--flower-size);height:var(--flower-size);padding:0}
[data-adventure="bouquet-orders"] .mdg-tile img{width:110%;height:110%;max-width:none;max-height:none}
[data-adventure="bouquet-orders"] .mdg-stock{width:100%;max-width:none;gap:6px;padding:7px}
[data-adventure="bouquet-orders"] .mdg-ticket{min-width:calc(110px / var(--activity-scale));padding:calc(10px / var(--activity-scale))}
[data-adventure="bouquet-orders"] .mdg-ticket strong{font-size:calc(76px / var(--activity-scale))}
[data-adventure="bouquet-orders"] .mdg-ticket i{width:calc(11px / var(--activity-scale));height:calc(11px / var(--activity-scale))}
[data-adventure="bouquet-orders"] .mdg-bouquet-drop{font-size:calc(24px / var(--activity-scale));min-height:calc(54px / var(--activity-scale))}
[data-adventure="bouquet-orders"] .mdg-return{font-size:calc(24px / var(--activity-scale))!important;min-height:calc(54px / var(--activity-scale));padding-inline:calc(14px / var(--activity-scale))}
.mdg-ribbon{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:10px 9px;background:#d5768d;border:1px solid #a64866;border-radius:6px;max-width:100%}
.mdg-repeat{display:flex;gap:3px;padding:3px}
.mdg-sample{background:#844760;border-radius:8px}
.mdg-card{width:max-content;max-width:100%;margin:auto;padding:7px 9px;background:#fff0d5;border:1.5px solid #a26370;border-radius:3px 12px 12px 3px;box-shadow:3px 4px 0 #7a455562}
.mdg-fold-row{display:grid;grid-template-columns:1fr 1fr}
.mdg-fold-row>div{display:grid;grid-template-columns:repeat(var(--squares),var(--tile,55px));gap:3px;padding:1.5px 4px}
.mdg-fold-row>div+div{border-left:2px dashed #945367}
.mdg-row-hint{background:#f4cda9}
.mdg-flipped{transform:scaleX(-1)}
.mdg-garden{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.mdg-map{width:min(35vw,31vh,300px);min-width:135px;aspect-ratio:1;display:grid;grid-template-columns:repeat(var(--squares),1fr);gap:2px;padding:5px;border-radius:11px;background:#749164;border:2px solid #d4bf8b}
.mdg-ground{position:relative;display:grid;place-items:center;min-width:0;min-height:0;border-radius:6px;background:#f3dfb3;box-shadow:inset 0 -2px #caa28060;overflow:hidden}
.mdg-ground .mdg-mark{width:72%;height:72%;min-height:0}
.mdg-ground.mdg-bed{background:#b4c399}
.mdg-ground.mdg-visited{background:#a9d8bd}
.mdg-walker{position:absolute;inset:2px;display:grid;place-items:center}.mdg-walker .mdg-mark{width:82%;height:82%}.mdg-picked-up{display:flex;align-items:center;gap:3px;font-size:15px;font-weight:600;background:#fff5d9;width:max-content;padding:3px 7px;border-radius:6px;margin:4px auto 0}.mdg-picked-up .mdg-mark{width:20px;height:20px}
.mdg-program{max-width:100%;min-width:0}
.mdg-program-line{display:flex;justify-content:center;flex-wrap:wrap;gap:3px;background:#e1c09f;border:1px solid #ae7852;padding:5px;border-radius:10px}
.mdg-hand,.mdg-ghost{position:fixed;z-index:9999;pointer-events:none;left:0;top:0}
.mdg-hand{width:clamp(42px,6vw,80px);transition:left .25s ease,top .25s ease}
.mdg-ghost{margin-left:-23px;margin-top:-23px;width:46px;height:46px;opacity:.93}
@media(max-width:780px){.mdg-map{width:min(44vw,29vh,220px)}}
@media(max-width:640px) and (orientation:portrait){
 .mdg-stage{grid-template-columns:minmax(0,1fr);position:relative;align-content:center;padding:9px 5px;--tile:45px}
 .mdg-play{z-index:1}
 .mdg-stage>.mdg-vela{align-self:end;justify-self:end;width:60%;max-height:30vh;min-width:140px;margin-top:-3px}
 .mdg-garden{flex-direction:column}
 .mdg-map{width:min(46vw,23vh)}
 .mdg-bank{margin-top:5px}
 .mdg-return{padding-inline:7px;font-size:16px!important}
 .mdg-bouquet{width:auto}
 .mdg-bouquet-head{grid-template-columns:minmax(0,1fr);justify-items:center}
 .mdg-bouquet{min-width:0;width:100%}
 [data-adventure="bouquet-orders"] .mdg-bouquet-head{grid-template-columns:auto minmax(0,1fr);justify-items:stretch}
 [data-adventure="bouquet-orders"] .mdg-bouquet{min-height:80px;padding:6px}
 [data-adventure="bouquet-orders"] .mdg-ticket{min-width:calc(70px / var(--activity-scale))}
 [data-adventure="bouquet-orders"] .mdg-ticket strong{font-size:calc(48px / var(--activity-scale))}
 [data-adventure="bouquet-orders"] :is(.mdg-bouquet-drop,.mdg-return){font-size:calc(18px / var(--activity-scale))!important;min-height:calc(44px / var(--activity-scale))}
}
@media(orientation:landscape) and (max-height:500px){
 .mdg-stage{--tile:44px;padding:1px 7px;grid-template-columns:minmax(0,1fr) minmax(76px,17%)}
 .mdg-play{gap:3px}
 .mdg-cue{padding:4px 9px;font-size:17px}
 .mdg-stage>.mdg-vela{max-height:58vh}
 .mdg-map{min-width:118px;width:min(32vw,29vh)}
 .mdg-ribbon{padding-block:5px}
 .mdg-bank{margin-top:4px;padding:3px}
 .mdg-picked .mdg-tile,.mdg-stock .mdg-tile{width:44px;height:44px}
 .mdg-picked{max-width:228px}
 .mdg-stock{max-width:600px}
 [data-adventure="bouquet-orders"] .mdg-game{--flower-size:40px}
 [data-adventure="bouquet-orders"] .mdg-picked{max-width:none}
 [data-adventure="bouquet-orders"] .mdg-bouquet{min-height:80px;padding:6px}
 [data-adventure="bouquet-orders"] .mdg-stock{gap:4px;padding:4px}
 [data-adventure="bouquet-orders"] .mdg-ticket{min-width:calc(70px / var(--activity-scale))}
 [data-adventure="bouquet-orders"] .mdg-ticket strong{font-size:calc(48px / var(--activity-scale))}
 [data-adventure="bouquet-orders"] :is(.mdg-bouquet-drop,.mdg-return){font-size:calc(18px / var(--activity-scale))!important;min-height:calc(44px / var(--activity-scale))}
}
@media(prefers-reduced-motion:reduce){.mdg-hand{transition:none}}


.mdg-demo-piece{transition:translate .33s ease}
@media(prefers-reduced-motion:reduce){.mdg-demo-piece{transition:none}}

.mdg-fullscreen{position:absolute;bottom:0;right:0;width:44px;height:44px;border:1px solid #9b7559;border-radius:9px;background:#fff2d5;color:#174a65;display:grid;place-items:center;cursor:pointer}.mdg-fullscreen svg{width:24px;height:24px;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;fill:none}.mdg-fullscreen:focus-visible{outline:3px solid #174a65;outline-offset:2px}

[data-suspended] .mdg-stage>.mdg-vela{visibility:hidden}

@media(max-width:640px) and (orientation:portrait) and (max-height:780px){.mdg-stage>.mdg-vela{width:50%;max-height:22vh}}
