.mg-ann-overlay {
position: fixed;
inset: 0;
z-index: 1090;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
background: rgba(0, 0, 0, .55);
opacity: 0;
visibility: hidden;
transition: opacity .25s ease, visibility .25s ease;
-webkit-backdrop-filter: blur(2px);
backdrop-filter: blur(2px);
}
.mg-ann-overlay.is-open {
opacity: 1;
visibility: visible;
}
.mg-ann-card {
width: 100%;
max-width: 340px;
background: var(--mg-surface, #fff);
color: var(--mg-text, #1a1a1a);
border-radius: var(--mg-radius-lg, 18px);
overflow: hidden;
box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
transform: translateY(14px) scale(.98);
transition: transform .28s cubic-bezier(.34, 1.32, .5, 1);
}
.mg-ann-overlay.is-open .mg-ann-card {
transform: translateY(0) scale(1);
}
.mg-ann-head {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;
background: linear-gradient(135deg, var(--mg-primary, #1f5e3a), var(--mg-primary-2, #154028));
}
.mg-ann-head--img {
aspect-ratio: 16 / 9;
}
.mg-ann-head--noimg {
min-height: 96px;
padding-top: 28px;
}
.mg-ann-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}
.mg-ann-head::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(to top, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .34) 42%, rgba(0, 0, 0, 0) 72%);
pointer-events: none;
}
.mg-ann-overlay-text {
position: relative;
z-index: 2;
padding: 14px 18px;
text-align: left;
}
.mg-ann-close {
position: absolute;
top: 12px;
right: 12px;
z-index: 3;
background: var(--mg-surface-2);
box-shadow: 0 1px 5px rgba(0,0,0,.18);
backdrop-filter: blur(6px);
}
.mg-ann-body {
padding: 8px 18px 0;
}
.mg-ann-title-emoji {
margin-right: 6px;
font-size: 1em;
line-height: 1;
}
.mg-ann-title {
font-size: 17px;
font-weight: 600;
line-height: 1.3;
margin: 0 0 4px;
color: #fff;
text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.mg-ann-text {
font-size: 13px;
line-height: 1.55;
color: rgba(255, 255, 255, .92);
margin: 0;
white-space: pre-line;
text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}
.mg-ann-cta {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 8px 12px;
border: none;
border-radius: var(--mg-radius-md, 12px);
background: var(--mg-primary, #1f5e3a);
color: #fff;
font-size: 14px;
font-weight: 600;
text-decoration: none;
transition: filter .15s ease;
}
.mg-ann-cta:hover {
filter: brightness(1.06);
color: #fff;
}
.mg-ann-dismiss {
display: block;
width: 100%;
margin-top: 0;
padding: 6px 0;
border: none;
background: transparent;
color: var(--mg-text-muted, #999);
font-size: 13px;
cursor: pointer;
}
.mg-ann-dismiss:hover {
color: var(--mg-text-soft, #666);
text-decoration: underline;
}
body.mg-ann-open {
overflow: hidden;
}
@media (max-width: 576px) {
.mg-ann-overlay {
padding: 9px;
}
.mg-ann-overlay-text {
padding: 7px 9px;
}
.mg-ann-body {
padding: 8px 9px 0;
}
}
