.mge-app{display:grid;gap:22px;color:#2b2019}
.mge-top-stats{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}
.mge-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;background:rgba(15,28,58,.78);border:1px solid rgba(245,210,122,.32);color:#fdf6e8;font-size:13px;font-weight:700;backdrop-filter:blur(6px)}
.mge-pill strong{color:#f5d27a}
.mge-pill-pro{background:linear-gradient(135deg,rgba(184,37,56,.9),rgba(212,155,53,.88));border-color:#f5d27a;color:#fff}
.mge-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
@media(max-width:860px){.mge-grid{grid-template-columns:1fr}}
.mge-card{background:#fffdf8;border:1px solid #eadcc6;border-radius:22px;padding:22px;box-shadow:0 18px 42px rgba(7,15,34,.28);position:relative;overflow:hidden}
.mge-card-night{background:radial-gradient(circle at 50% 0%,#1a3160 0%,#0c1a38 72%);border:1px solid rgba(245,210,122,.34);color:#fdf6e8}
.mge-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.mge-card-head h2{margin:0;font-size:21px;line-height:1.25;font-weight:800}
.mge-card-night .mge-card-head h2{color:#fff7e6}
.mge-quota{display:inline-flex;align-items:center;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:800;background:rgba(184,37,56,.12);color:#9f1d2e;white-space:nowrap}
.mge-card-night .mge-quota{background:rgba(245,210,122,.16);color:#f5d27a;border:1px solid rgba(245,210,122,.3)}
.mge-sub{margin:0 0 16px;font-size:14px;line-height:1.5;color:#5c4b3f}
.mge-card-night .mge-sub{color:rgba(253,246,232,.84)}
.mge-snow-stage{position:relative;border-radius:18px;padding:24px 18px 20px;background:radial-gradient(circle at 50% 35%,rgba(245,210,122,.16),rgba(9,19,42,.55) 75%);border:1px solid rgba(245,210,122,.22);text-align:center;margin-bottom:16px;min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.mge-gift-btn-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}
.mge-gift-icon{width:96px;height:96px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:none;border:0;padding:0;transition:transform .22s ease;filter:drop-shadow(0 12px 22px rgba(0,0,0,.42))}
.mge-gift-icon:hover{transform:translateY(-4px) scale(1.06)}
.mge-gift-icon.is-shaking{animation:mgeShake .55s ease}
@keyframes mgeShake{0%,100%{transform:rotate(0) scale(1)}20%{transform:rotate(-10deg) scale(1.08)}40%{transform:rotate(10deg) scale(1.1)}60%{transform:rotate(-7deg) scale(1.06)}80%{transform:rotate(6deg) scale(1.03)}}
.mge-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px 20px;border-radius:999px;border:0;font-family:inherit;font-size:15px;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#c4253a,#9f1b2c);color:#fff;box-shadow:0 8px 20px rgba(184,37,56,.34);transition:transform .16s ease,opacity .16s ease}
.mge-cta:hover:not(:disabled){transform:translateY(-1px)}
.mge-cta:disabled{opacity:.58;cursor:not-allowed}
.mge-cta-gold{background:linear-gradient(135deg,#e4b44c,#c98e27);color:#1f1408;box-shadow:0 8px 20px rgba(212,155,53,.32)}
.mge-reveal{background:#fffdf8;color:#2b2019;border-radius:18px;border:1px solid #eadcc6;overflow:hidden;text-align:left;animation:mgePop .32s ease}
@keyframes mgePop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.mge-postcard{padding:16px 18px 14px;display:flex;align-items:center;gap:14px;color:#fff;position:relative}
.mge-postcard-art{width:52px;height:52px;flex-shrink:0;border-radius:14px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.mge-postcard-meta{min-width:0}
.mge-postcard-tag{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;opacity:.9}
.mge-postcard-from{font-size:16px;font-weight:800;margin-top:2px;word-break:break-word}
.mge-reveal-body{padding:16px 18px 18px;display:grid;gap:13px}
.mge-reveal-note{margin:0;font-size:16px;line-height:1.55;color:#241911;white-space:pre-wrap;word-break:break-word}
.mge-media-wrap{position:relative;border-radius:12px;overflow:hidden;background:#111c36;min-height:80px}
.mge-media-wrap iframe{display:block;width:100%;border:0}
.mge-media-wrap img{display:block;width:100%;max-height:300px;object-fit:contain;background:#0b1326}
.mge-media-wrap video{display:block;width:100%;max-height:300px;background:#000}
.mge-media-wrap audio{display:block;width:100%;margin:10px 0}
.mge-media-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:rgba(12,24,52,.9);color:#f5d27a;font-size:13px;font-weight:700;z-index:2}
.mge-spinner{width:26px;height:26px;border:3px solid rgba(245,210,122,.28);border-top-color:#f5d27a;border-radius:50%;animation:mgeSpin .8s linear infinite}
@keyframes mgeSpin{to{transform:rotate(360deg)}}
.mge-media-lock{padding:18px 16px;text-align:center;background:radial-gradient(circle at 50% 0%,#1f3b70,#0e1d3d);color:#fdf6e8;border:1px solid rgba(245,210,122,.4);border-radius:14px;display:grid;gap:10px;justify-items:center}
.mge-media-lock-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;background:rgba(245,210,122,.18);color:#fde68a;font-size:12px;font-weight:800}
.mge-media-lock h3{margin:0;font-size:16px;color:#fff7e6}
.mge-media-lock p{margin:0;font-size:13px;line-height:1.45;color:rgba(253,246,232,.84);max-width:340px}
.mge-lock-cta{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border-radius:999px;background:linear-gradient(135deg,#e4b44c,#c98e27);color:#1f1408!important;text-decoration:none;font-size:14px;font-weight:800;box-shadow:0 6px 16px rgba(212,155,53,.32)}
.mge-interact{border-top:1px solid #f0e4d2;padding-top:12px;display:grid;gap:10px}
.mge-interact-lbl{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#7a685b}
.mge-reacts{display:flex;flex-wrap:wrap;gap:7px}
.mge-react-btn{display:inline-flex;align-items:center;gap:5px;padding:6px 11px;border-radius:999px;border:1px solid #e4d4be;background:#fbf7ef;color:#2b2019;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:all .15s ease}
.mge-react-btn:hover,.mge-react-btn.is-active{border-color:#b82538;background:#fff1f2;color:#9f1b2c}
.mge-reply-form{display:grid;gap:8px;background:#fbf7ef;border:1px solid #eadcc6;border-radius:14px;padding:12px}
.mge-reply-row{display:flex;gap:8px;flex-wrap:wrap}
.mge-reply-form input[type="text"]{flex:1;min-width:140px;padding:9px 12px;border-radius:10px;border:1px solid #dfd0ba;background:#fff;color:#241911;font-family:inherit;font-size:13px;box-sizing:border-box}
.mge-reply-form input[type="text"]:focus{outline:none;border-color:#b82538}
.mge-reply-submit{padding:9px 15px;border-radius:999px;border:0;background:#b82538;color:#fff;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.mge-reply-submit:disabled{opacity:.55;cursor:not-allowed}
.mge-reply-msg{margin:0;font-size:12px;font-weight:700;color:#15803d;min-height:16px}
.mge-reveal-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid #f0e4d2}
.mge-tree-cta{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:999px;background:#b82538;color:#fff!important;text-decoration:none;font-size:13px;font-weight:800}
.mge-tree-cta:hover{background:#9c1c2c}
.mge-report-btn{background:none;border:0;color:#7a685b;font-size:13px;font-weight:700;cursor:pointer;padding:6px 8px;text-decoration:underline}
.mge-report-btn:hover{color:#b82538}
.mge-form{display:grid;gap:13px}
.mge-field{display:grid;gap:6px}
.mge-field label{font-size:13px;font-weight:800;color:#3b2c22}
.mge-field input[type="text"],.mge-field input[type="url"],.mge-field textarea{width:100%;box-sizing:border-box;padding:11px 13px;border-radius:12px;border:1px solid #dfd0ba;background:#fbf7ef;color:#241911;font-family:inherit;font-size:14px}
.mge-field textarea{resize:vertical;min-height:84px}
.mge-field input:focus,.mge-field textarea:focus{outline:none;border-color:#b82538;background:#fff}
.mge-char{font-size:12px;color:#7a685b;text-align:right;margin-top:-2px}
.mge-cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
@media(max-width:520px){.mge-cards-grid{grid-template-columns:repeat(2,1fr)}}
.mge-card-opt{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;border-radius:12px;border:1.5px solid #e6d8c3;background:#fbf7ef;cursor:pointer;font-family:inherit;font-size:12px;font-weight:700;color:#3b2c22;transition:all .15s ease}
.mge-card-opt[aria-pressed="true"]{border-color:#b82538;background:#fff1f2;color:#9f1b2c;box-shadow:0 0 0 2px rgba(184,37,56,.15)}
.mge-card-opt svg{width:28px;height:28px}
.mge-upload-box{padding:12px 14px;border-radius:14px;background:linear-gradient(135deg,#fff8e7,#fef2f2);border:1px solid #efd5a4;display:grid;gap:8px}
.mge-upload-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.mge-upload-head strong{font-size:13px;color:#5a370a}
.mge-free-badge{display:inline-block;padding:2px 9px;border-radius:999px;background:#15803d;color:#fff;font-size:12px;font-weight:800}
.mge-upload-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mge-btn-sm{padding:8px 13px;border-radius:999px;border:1px solid #d5c1a3;background:#fff;color:#2b2019;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.mge-btn-sm:hover{border-color:#b82538;color:#b82538}
.mge-btn-rec-on{background:#b82538;border-color:#b82538;color:#fff!important}
.mge-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#3b2c22;cursor:pointer}
.mge-check input{width:16px;height:16px;accent-color:#b82538}
.mge-msg{margin:0;font-size:13px;font-weight:700;min-height:18px;color:#9f1b2c}
.mge-card-night .mge-msg{color:#fde68a}
.mge-shelf{background:#fffdf8;border:1px solid #eadcc6;border-radius:22px;padding:22px;box-shadow:0 12px 32px rgba(7,15,34,.18)}
.mge-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;border-bottom:1px solid #eadcc6;padding-bottom:12px}
.mge-tab{display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:999px;border:1px solid #dfd0ba;background:#fbf7ef;color:#3b2c22;font-family:inherit;font-size:14px;font-weight:800;cursor:pointer}
.mge-tab[aria-selected="true"]{background:#b82538;border-color:#b82538;color:#fff}
.mge-tab-badge{display:inline-flex;align-items:center;justify-content:center;padding:1px 7px;border-radius:999px;background:rgba(0,0,0,.14);font-size:12px;font-weight:800}
.mge-shelf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:14px}
.mge-mini-gift{border:1px solid #eadcc6;border-radius:16px;overflow:hidden;background:#fbf7ef;display:flex;flex-direction:column}
.mge-mini-top{padding:10px 14px;color:#fff;font-size:13px;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:8px}
.mge-mini-body{padding:12px 14px;display:grid;gap:8px;flex:1}
.mge-mini-body p{margin:0;font-size:14px;line-height:1.45;color:#2b2019;word-break:break-word}
.mge-mini-foot{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:auto;padding-top:6px}
.mge-mini-link{font-size:13px;font-weight:800;color:#b82538;text-decoration:none}
.mge-mini-link:hover{text-decoration:underline}
.mge-inbox-replies{border-top:1px dashed #dfd0ba;padding-top:8px;display:grid;gap:6px}
.mge-inbox-item{background:#fff;border:1px solid #eadcc6;border-radius:10px;padding:8px 10px;font-size:13px;line-height:1.4;color:#2b2019}
.mge-inbox-item strong{color:#9f1b2c}
.mge-empty{margin:0;font-size:14px;color:#6e5b4e}
.mge-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.mge-conf-dot{position:absolute;width:8px;height:8px;border-radius:2px;animation:mgeFall 1.1s ease-out forwards}
@keyframes mgeFall{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(360deg)}}
