#cardMerge{background:linear-gradient(155deg,#f2ffe7,#d8eed2);border:2px solid #74ae65;position:relative}
#cardMerge .mini-thumb{position:relative;overflow:visible;background:none;border:0;box-shadow:none}
#cardMerge .mini-thumb img{position:absolute;width:76%;height:76%;border-radius:50%;object-fit:cover;object-position:center 42%;border:2px solid #fff;box-shadow:0 2px 3px #43634333}
#cardMerge .mini-thumb img:first-child{left:0;top:0}#cardMerge .mini-thumb img:last-child{right:0;bottom:0}
#scrMerge{background:radial-gradient(ellipse at 50% 30%,#284839,#142e28 70%);color:#fff5de;overflow:hidden;min-height:0}
.mg-top{display:flex;align-items:center;gap:12px;padding:10px 14px 5px;flex:none;min-height:52px}
.mg-top .roundbtn{width:40px;height:40px;flex:none;font-size:19px}.mg-top h1{font-size:19px;line-height:1.2;overflow-wrap:anywhere}.mg-top p{font-size:10px;color:#bed7bd;margin-top:4px;overflow-wrap:anywhere}.mg-top .mg-title-wrap{flex:1;min-width:0}
.mg-pause{background:#365b47;color:#f3e8c7;border:1px solid #688367;border-radius:14px;min-width:42px;min-height:40px;font-size:18px;cursor:pointer}
.mg-layout{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:7px;padding:5px 14px 10px;flex:1;min-height:0;width:min(100%,540px);margin:0 auto}
.mg-hud{display:flex;align-items:center;gap:10px;min-width:0;justify-content:space-between;padding:0 4px}
.mg-stat{display:flex;flex-direction:column;gap:1px}.mg-stat small{font-size:10px;color:#b8cdb5}.mg-stat strong{font-size:25px;color:#ffe5a1;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-1px}.mg-best strong{font-size:18px;color:#d6e7c5}
.mg-next{display:flex;align-items:center;gap:7px;color:#bfceae;font-size:11px}.mg-next img{width:33px;height:33px;border-radius:50%;object-fit:cover;object-position:center 42%;border:2px solid #e8efd0;background:#648e5e}
.mg-board{min-height:0;min-width:0;position:relative;overflow:hidden;border-radius:18px}
#mergeCanvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-3px}
.mg-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:5px;align-items:center;min-width:0}
.mg-controls input{width:100%;min-width:0;height:36px;margin:0;accent-color:#c5e0a3;cursor:ew-resize}
.mg-drop{border:0;min-height:44px;border-radius:16px;padding:10px 18px;background:linear-gradient(#e6f4c2,#afd584);color:#233b26;font:inherit;font-size:14px;font-weight:900;box-shadow:0 3px 0 #061b1c66;cursor:pointer}
.mg-drop:disabled{opacity:.55;cursor:default}.mg-help{grid-column:1 / -1;color:#c4d2bb;font-size:11px;text-align:center;line-height:1.35;min-height:15px}
.mg-evolution{display:flex;align-items:center;justify-content:center;gap:3px;grid-column:1 / -1;padding-top:2px;min-width:0}.mg-evolution img{width:22px;height:22px;border-radius:50%;object-fit:cover;object-position:center 42%;border:1px solid #879b72;opacity:.5}.mg-evolution img.unlocked{opacity:1;border-color:#f9dfa0;box-shadow:0 0 7px #e6de9733}.mg-evolution span{font-size:8px;color:#9cb187}
.mg-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#122a2477;backdrop-filter:blur(3px);z-index:2;padding:10px}.mg-cover[hidden]{display:none}
.mg-sheet{width:min(90%,290px);background:#fff5dd;border:2px solid #e4ce9c;border-radius:25px;padding:22px 18px;color:#37523a;text-align:center;box-shadow:0 15px 40px #051d2477}
.mg-sheet h2{font-size:23px;margin:8px 0}.mg-sheet .mg-final-score{font-size:46px;font-weight:900;color:#4f8141;line-height:1.1;margin:10px 0}.mg-sheet p{font-size:12px;line-height:1.5;color:#718062}.mg-sheet button{width:100%;min-height:42px;border:0;border-radius:14px;padding:11px 6px;font:inherit;font-size:14px;font-weight:800;cursor:pointer;margin-top:8px;background:#bad88e;color:#2f502f}.mg-sheet button.mg-secondary{background:transparent;color:#6c795d}
.mg-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:345px){.mg-layout{padding:3px 9px 7px;gap:4px}.mg-top{padding:6px 10px 2px;gap:8px;min-height:47px}.mg-top h1{font-size:17px}.mg-top p{font-size:9px}.mg-stat strong{font-size:22px}.mg-best strong{font-size:17px}.mg-help{font-size:10px}.mg-evolution img{width:19px;height:19px}.mg-drop{padding:8px 12px;font-size:12px}.mg-sheet{padding:14px}.mg-sheet h2{font-size:20px}.mg-sheet .mg-final-score{font-size:34px}}
@media(orientation:landscape) and (min-width:540px){
 .mg-top{padding:4px 12px 2px;min-height:40px}.mg-top .roundbtn,.mg-pause{width:34px;min-width:34px;height:34px;min-height:34px;font-size:17px}.mg-top h1{font-size:16px}.mg-top p{display:none}
 .mg-layout{width:100%;max-width:900px;grid-template-columns:minmax(0,1fr) minmax(135px,175px);grid-template-rows:auto minmax(0,1fr);padding:2px 14px 5px;gap:5px 12px}
 .mg-board{grid-column:1;grid-row:1 / span 2}.mg-hud{grid-column:2;grid-row:1;flex-wrap:wrap;gap:5px}.mg-stat strong{font-size:20px}.mg-best strong{font-size:16px}.mg-next img{width:26px;height:26px}.mg-next{font-size:10px}
 .mg-controls{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:3px}.mg-controls input{height:25px}.mg-drop{min-height:36px;padding:6px;font-size:12px}.mg-help{font-size:9px}.mg-evolution{flex-wrap:wrap;gap:2px;padding:0}.mg-evolution img{width:14px;height:14px}.mg-evolution span{display:none}
 .mg-sheet{padding:9px;max-width:245px;border-radius:16px}.mg-sheet h2{font-size:16px;margin:3px}.mg-sheet .mg-final-score{font-size:23px;margin:3px}.mg-sheet p{font-size:10px}.mg-sheet button{min-height:30px;padding:5px;font-size:11px;margin-top:3px}
}
