.mg-scene{display:block;width:100%;max-width:360px;height:auto;margin:6px auto 14px;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.45)}
.mg-moon{display:inline-block;width:26px;height:26px;border-radius:50%;background:radial-gradient(circle at 40% 38%,#fffaf0,#f1e4c4 60%,#d9c49a);box-shadow:0 0 14px rgba(255,240,200,.55);vertical-align:middle}
.mg-tabs{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin:10px 0}.mg-tabs button{background:rgba(255,255,255,.04);border:1px solid rgba(243,231,207,.4);color:#f3e7cf;border-radius:12px;padding:12px 6px;font:inherit;font-size:14px;line-height:1.5;cursor:pointer}
.mg-tabs button.on{background:#f3e7cf;color:#1a1410;border-color:#f3e7cf}.mg-tabs button small{display:block;font-size:11px;opacity:.8}
.mg-keep{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.7;margin:10px 0;color:#d9d2c4}.mg-keep input{margin-top:5px;width:18px;height:18px}
.mg-drop{position:relative;height:230px;margin:10px auto 4px;max-width:320px}
.mg-box{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:200px;height:auto}
.mg-boxcss{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:190px;height:110px;border-radius:10px;background:linear-gradient(180deg,#6b4a2c,#3e2a18);box-shadow:inset 0 0 0 3px #b8955a,0 10px 24px rgba(0,0,0,.5)}
.mg-boxcss:before{content:"";position:absolute;left:40px;right:40px;top:16px;height:7px;border-radius:4px;background:#1a120b;box-shadow:0 0 0 2px #b8955a}
.mg-paper{position:absolute;left:50%;top:0;width:150px;margin-left:-75px;background:#f7f0e2;color:#2a201a;border-radius:4px;padding:10px 12px;font-family:"Shippori Mincho",serif;font-size:12px;line-height:1.7;box-shadow:0 6px 16px rgba(0,0,0,.4);transform-origin:50% 0;animation:mgFold 2.6s ease-in forwards}
@keyframes mgFold{0%{transform:translateY(0) scaleY(1);opacity:1}35%{transform:translateY(0) scaleY(.5)}55%{transform:translateY(40px) scaleY(.12) scaleX(.7);opacity:1}100%{transform:translateY(150px) scaleY(.08) scaleX(.5);opacity:0}}
@media (prefers-reduced-motion:reduce){.mg-paper{animation:none;opacity:0}}
.mg-mid{list-style:none;padding:0;margin:8px 0}.mg-mid li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid rgba(255,255,255,.08);font-size:14px;line-height:1.75}
.mg-mid img{flex:0 0 40px;width:40px;height:40px;border-radius:50%}.mg-mid b{display:block;font-size:12.5px;color:#f3e7cf;font-weight:500}.mg-mid small{display:block;color:#b9b0a2;font-size:12.5px}
.mg-mid em{font-style:normal;font-size:12px;border:1px solid currentColor;border-radius:9px;padding:0 6px;margin-left:6px}.mg-mid em.chikai{color:#f3d9a8}.mg-mid em.mada{color:#9fb3d9}.mg-mid em.kawatta{color:#c9b6e6}
.mg-stamp{width:64px;height:84px;border-radius:6px;background:linear-gradient(160deg,#c9b07a,#8a7244);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#1a1410;font-size:11px;font-family:"Shippori Mincho",serif;box-shadow:0 3px 8px rgba(0,0,0,.4)}
.mg-stamp i{width:24px;height:24px;border-radius:50%;background:radial-gradient(circle at 40% 38%,#fffaf0,#efe0bd);box-shadow:0 0 8px rgba(255,240,200,.7)}.mg-stamp img{width:64px;height:84px;border-radius:6px;object-fit:cover}
.mg-tag{display:inline-block;font-size:12px;color:#1a1410;background:#f3e7cf;border-radius:10px;padding:1px 8px;margin:2px 4px 2px 0}
