/* HappyGram V33 — Android parity layer */
.hg-splash{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,rgba(139,92,246,.22),transparent 34%),linear-gradient(145deg,#050712,#0c1024 55%,#170b25);transition:opacity .45s,transform .45s}.hg-splash.is-ready{opacity:0;transform:scale(1.03);pointer-events:none}.hg-splash-logo{display:flex;flex-direction:column;align-items:center;gap:8px}.hg-splash-logo img{width:86px;height:86px;border-radius:25px;box-shadow:0 0 55px rgba(139,92,246,.38)}.hg-splash-logo strong{font-family:Unbounded,sans-serif;font-size:22px}.hg-splash-logo strong span{color:#a78bfa}.hg-splash-logo small{color:#8f9ab4;font-size:12px}

/* media should show the complete photo, not crop it */
.msg-image{object-fit:contain!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:min(72vh,620px)!important;background:#080b14;display:block}
.msg.media-msg{max-width:min(76%,640px)!important}
.video-note-wrap{width:min(230px,62vw)!important;height:min(230px,62vw)!important;aspect-ratio:1/1;display:grid;place-items:center;background:#050812;border-radius:50%;overflow:hidden;border:2px solid rgba(167,139,250,.45);box-shadow:0 14px 40px rgba(0,0,0,.3),0 0 28px rgba(139,92,246,.12)}
.video-note-msg{width:100%!important;height:100%!important;object-fit:cover!important;border:0!important;border-radius:50%!important;background:#050812;display:block}
.video-note-wrap.is-error:after{content:"Не удалось загрузить видео"!important;background:rgba(7,10,20,.92)!important}

/* Android-style feature center */
.android-feature-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.android-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.android-feature-grid button{border:1px solid rgba(255,255,255,.08);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));color:#f8faff;padding:14px;text-align:left;cursor:pointer;font:700 12px Manrope,sans-serif;min-height:52px}.android-feature-grid button:hover{border-color:rgba(139,92,246,.5);transform:translateY(-1px)}
.android-detail-body{padding:20px 24px 28px}.android-form{display:grid;gap:12px}.android-list{display:grid;gap:2px}.android-list .setting-row{padding:14px 0}.device-list{display:grid;gap:10px}.device-choice{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);border-radius:15px;padding:13px 14px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer}.device-choice span{font-weight:700}.device-choice small{color:#8f9ab4}.device-list>.btn{width:100%}
.verification-card{max-width:430px}.verification-code-banner{display:grid;place-items:center;gap:4px;margin:18px 24px;padding:18px;border-radius:20px;background:linear-gradient(135deg,rgba(124,58,237,.2),rgba(34,211,238,.09));border:1px solid rgba(167,139,250,.3);text-align:center}.verification-code-banner small,.verification-code-banner span{color:#8f9ab4;font-size:12px}.verification-code-banner strong{font:800 34px Unbounded,sans-serif;letter-spacing:.16em;color:#c4b5fd}

.call-card{max-width:480px!important}.call-video{max-height:55vh!important;object-fit:contain!important;background:#02040a}.call-local-video{object-fit:contain!important;background:#02040a}

@media(max-width:760px){.msg.media-msg{max-width:90%!important}.msg-image{max-height:62vh!important}.video-note-wrap{width:min(72vw,250px)!important;height:min(72vw,250px)!important}.android-feature-grid{grid-template-columns:1fr}.android-detail-body{padding:16px 18px 28px}.android-feature-actions .btn{flex:1 1 44%}.verification-card{max-width:none;width:100%}}
.media-lightbox{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;background:rgba(0,0,0,.88);backdrop-filter:blur(10px);padding:24px}.media-lightbox[hidden]{display:none}.media-lightbox img{max-width:96vw;max-height:92vh;width:auto;height:auto;object-fit:contain;border-radius:18px;box-shadow:0 25px 100px rgba(0,0,0,.7)}.media-lightbox>.icon-btn{position:absolute;right:20px;top:20px;z-index:2}

/* V34 media fix — never crop photos in message bubbles */
.msg.media-msg:has(.msg-image){overflow:visible!important;max-width:min(82vw,760px)!important;}
.msg.media-msg .msg-image{display:block!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:min(100%,760px)!important;max-height:min(72vh,720px)!important;object-fit:contain!important;object-position:center!important;border-radius:16px!important;}
@media(max-width:760px){.msg.media-msg:has(.msg-image){max-width:94vw!important}.msg.media-msg .msg-image{max-width:100%!important;max-height:64vh!important}}
