
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Fredoka:wght@400;500;600&display=swap');
#lm-monster-preview{--mp-ink:light-dark(#3e3731,#f6eee6);--mp-soft:light-dark(#73675d,#c5b6a9);--mp-control:light-dark(#f9eee4,#392d27);--mp-line:light-dark(#d8bcaa,#70584a);font-family:'DM Sans',sans-serif;color:var(--mp-ink);max-width:420px;margin-inline:auto}
#lm-monster-preview *{box-sizing:border-box}
#lm-monster-preview .lm-mp-stage{position:relative;aspect-ratio:3/4;overflow:hidden;isolation:isolate;background:#9cc344}
#lm-monster-preview .lm-mp-art{display:block;width:100%;height:100%;opacity:0}
#lm-monster-preview .lm-mp-scenes{font-family:'Fredoka','Trebuchet MS',sans-serif;fill:#075e6b;font-weight:500}
#lm-monster-preview [data-scene]{opacity:0}
#lm-monster-preview .lm-mp-small{font-size:25px;letter-spacing:1px;font-family:'DM Sans',sans-serif;font-weight:600}
#lm-monster-preview .lm-mp-middle{font-size:34px}
#lm-monster-preview .lm-mp-big{font-size:50px;font-weight:600}
#lm-monster-preview .lm-mp-name{font-size:76px;font-weight:600;fill:#d93631}
#lm-monster-preview .lm-mp-age{font-size:64px;font-weight:600;fill:#075e6b}
#lm-monster-preview .lm-mp-date{font-size:44px;fill:#d93631;font-weight:600}
#lm-monster-preview .lm-mp-place{font-size:31px;font-weight:500}
#lm-monster-preview .lm-mp-address{font-size:25px;font-family:'DM Sans',sans-serif}
#lm-monster-preview .lm-mp-cover{position:absolute;inset:0;display:grid;grid-template-rows:1fr auto auto 1fr;justify-items:center;align-content:center;background:#fff8f1;perspective:1000px}
#lm-monster-preview .lm-mp-cover-label{align-self:end;color:#075e6b;font-family:'Fredoka',sans-serif;font-size:clamp(21px,5vw,28px);font-weight:500;padding-bottom:36px;text-align:center}
#lm-monster-preview .lm-mp-envelope{position:relative;width:82%;aspect-ratio:1.46;filter:drop-shadow(0 15px 14px #075e6b20);perspective:900px}
#lm-monster-preview .lm-mp-envelope-back{position:absolute;inset:0;background:#50752a;border-radius:4px}
#lm-monster-preview .lm-mp-letter{position:absolute;left:6%;right:6%;top:6%;height:86%;background:#fffdf8;display:grid;place-items:center;text-align:center;transform-origin:50% 100%;color:#075e6b;font:500 clamp(23px,6vw,32px)/1.15 'Fredoka',sans-serif}
#lm-monster-preview .lm-mp-pocket{position:absolute;inset:0;background:var(--envelope-color,#9cc344);clip-path:polygon(0 0,50% 54%,100% 0,100% 100%,0 100%)}
#lm-monster-preview .lm-mp-pocket:after{content:'';position:absolute;inset:0;background:#88b43b;clip-path:polygon(0 100%,50% 48%,100% 100%)}
#lm-monster-preview .lm-mp-flap{position:absolute;inset:0;transform-origin:50% 0%;background:var(--envelope-color,#acd257);clip-path:polygon(0 0,100% 0,50% 56%);backface-visibility:hidden}
#lm-monster-preview .lm-mp-seal{position:absolute;left:42%;top:40%;width:16%;aspect-ratio:1;border-radius:50%;background:#ffc021;color:#075e6b;display:grid;place-items:center;font:500 clamp(24px,6vw,34px)/1 'Fredoka',sans-serif;box-shadow:0 2px 0 #e6a311}
#lm-monster-preview .lm-mp-open{margin-top:38px;border:0;border-radius:100px;min-height:46px;padding:10px 25px;font:500 16px/1.25 'DM Sans',sans-serif;background:#075e6b;color:#fffdf8;box-shadow:0 5px 12px #075e6b18}
#lm-monster-preview .lm-mp-open:hover{background:#064c56}
#lm-monster-preview .lm-mp-open:focus-visible{outline:3px solid #d93631;outline-offset:4px}
#lm-monster-preview .lm-mp-transport{padding-top:8px}
#lm-monster-preview .lm-mp-buttons{display:flex;gap:4px;align-items:center;justify-content:center}
#lm-monster-preview .lm-mp-buttons button{border:0;background:transparent;color:var(--mp-ink);min-height:44px;min-width:44px;padding:6px 9px;font:500 14px/1.2 'DM Sans',sans-serif;white-space:nowrap;border-radius:10px}
#lm-monster-preview .lm-mp-buttons button:hover:not(:disabled){background:var(--mp-control)}
#lm-monster-preview .lm-mp-buttons button:focus-visible{outline:2px solid var(--mp-ink);outline-offset:1px}
#lm-monster-preview .lm-mp-buttons button:disabled{opacity:.4}
#lm-monster-preview .lm-mp-buttons .lm-mp-toggle{min-width:98px}
#lm-monster-preview .lm-mp-time{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--mp-soft);margin-inline-start:auto}
#lm-monster-preview .lm-mp-progress{display:block;width:100%;margin:0;height:30px;accent-color:#075e6b}
#lm-monster-preview .lm-mp-caption{font-size:12px;text-align:center;color:var(--mp-soft);padding:2px 0 8px}
#lm-monster-preview .lm-mp-accessible{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:350px){#lm-monster-preview .lm-mp-buttons{gap:0}#lm-monster-preview .lm-mp-buttons button{padding-inline:7px}#lm-monster-preview .lm-mp-time{font-size:11px}}

/* The opening uses the same styled text renderer as exported video. */
#lm-monster-preview .lm-mp-envelope-canvas{position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;pointer-events:none}
#lm-monster-preview .lm-mp-cover-label,#lm-monster-preview .lm-mp-envelope{visibility:hidden}
#lm-monster-preview .lm-mp-open{position:absolute;top:77%;margin:0;z-index:1}

#lm-monster-preview.lm-unicorn-preview .lm-mp-stage{background:#6423a3}
#lm-monster-preview .lm-mp-unicorn-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;margin:0}
#lm-monster-preview .lm-mp-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;margin:0}
