/* MiramMS long-term relaunch announcement
   Scoped to miramms-relaunch-* so it does not alter other site components. */

.miramms-brand-stage{
    position:relative;
    min-height:220px;
    max-width:1180px;
    margin:0 auto;
    padding:20px 0 0;
}

.miramms-brand-banner{
    display:block;
    width:400px;
    max-width:min(400px,92vw);
    height:auto;
    margin:0 auto;
}

.miramms-relaunch-teaser{
    --mrs-blue:#023667;
    --mrs-blue2:#075386;
    --mrs-orange:#e57621;
    position:absolute;
    z-index:40;
    right:22px;
    top:74px;
    width:292px;
    min-height:94px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 15px 10px 92px;
    overflow:visible;
    border:2px solid rgba(229,118,33,.78);
    border-radius:20px 20px 20px 8px;
    background:
        radial-gradient(circle at 85% 12%,rgba(255,195,131,.18),transparent 24%),
        linear-gradient(145deg,#063d70 0%,#07598d 100%);
    box-shadow:
        0 11px 24px rgba(2,54,103,.22),
        inset 0 1px 0 rgba(255,255,255,.18);
    color:#fff;
    font-family:inherit;
    text-align:left;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.miramms-relaunch-teaser::before{
    content:"";
    position:absolute;
    left:26px;
    bottom:-9px;
    width:19px;
    height:19px;
    background:#064d80;
    border-right:2px solid rgba(229,118,33,.78);
    border-bottom:2px solid rgba(229,118,33,.78);
    transform:rotate(45deg);
    border-radius:0 0 4px 0;
}

.miramms-relaunch-teaser:hover,
.miramms-relaunch-teaser:focus-visible{
    transform:translateY(-3px);
    border-color:#ff9d53;
    box-shadow:0 16px 31px rgba(2,54,103,.29),inset 0 1px 0 rgba(255,255,255,.2);
    outline:none;
}

.miramms-relaunch-teaser-npc{
    position:absolute;
    z-index:3;
    left:7px;
    bottom:-8px;
    width:82px;
    height:106px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    pointer-events:none;
}

.miramms-relaunch-teaser-npc img{
    position:relative;
    z-index:2;
    display:block;
    max-width:74px;
    max-height:105px;
    width:auto;
    height:auto;
    image-rendering:pixelated;
    transform-origin:50% 100%;
    filter:drop-shadow(0 4px 2px rgba(0,0,0,.2));
    animation:miramms-relaunch-npc-idle 1.8s steps(4,end) infinite;
}

.miramms-relaunch-npc-shadow{
    position:absolute;
    z-index:1;
    left:17px;
    bottom:4px;
    width:50px;
    height:10px;
    border-radius:50%;
    background:rgba(1,25,47,.4);
    filter:blur(1px);
    animation:miramms-relaunch-shadow 1.8s steps(4,end) infinite;
}

.miramms-relaunch-teaser-copy{
    position:relative;
    z-index:4;
    display:flex;
    min-width:0;
    flex:1;
    flex-direction:column;
    line-height:1.15;
}

.miramms-relaunch-teaser-eyebrow{
    color:#ffbe84;
    font-size:10px;
    font-weight:900;
    letter-spacing:.85px;
    text-transform:uppercase;
}

.miramms-relaunch-teaser-copy strong{
    margin-top:3px;
    color:#fff;
    font-size:18px;
    font-weight:900;
    letter-spacing:.1px;
    text-shadow:0 2px 0 rgba(0,0,0,.13);
}

.miramms-relaunch-teaser-copy small{
    margin-top:5px;
    color:rgba(255,255,255,.72);
    font-size:10px;
    font-weight:700;
}

.miramms-relaunch-teaser-new{
    position:absolute;
    z-index:6;
    top:-12px;
    right:-10px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:30px;
    clip-path:polygon(50% 0,61% 18%,80% 8%,82% 30%,100% 39%,84% 54%,93% 75%,70% 76%,64% 100%,47% 83%,28% 97%,25% 75%,2% 72%,16% 53%,0 37%,23% 29%,22% 7%,43% 18%);
    background:#f28a32;
    color:#fff8e8;
    font-size:9px;
    font-weight:950;
    letter-spacing:.5px;
    text-shadow:0 1px 0 #a94e12;
    animation:miramms-relaunch-new-pop 1.25s steps(2,end) infinite;
}

.miramms-relaunch-pixel-spark{
    position:absolute;
    z-index:5;
    width:9px;
    height:9px;
    pointer-events:none;
}

.miramms-relaunch-pixel-spark::before,
.miramms-relaunch-pixel-spark::after{
    content:"";
    position:absolute;
    background:#ffd68d;
    box-shadow:0 0 5px rgba(255,211,129,.55);
}

.miramms-relaunch-pixel-spark::before{left:4px;top:0;width:2px;height:9px}
.miramms-relaunch-pixel-spark::after{left:0;top:4px;width:9px;height:2px}
.miramms-relaunch-pixel-spark.spark-one{right:18px;bottom:11px;animation:miramms-relaunch-spark 1.7s steps(2,end) infinite}
.miramms-relaunch-pixel-spark.spark-two{right:66px;top:9px;transform:scale(.65);animation:miramms-relaunch-spark 1.7s .8s steps(2,end) infinite}

@keyframes miramms-relaunch-npc-idle{
    0%,100%{transform:translate(0,0) rotate(0deg)}
    25%{transform:translate(1px,-3px) rotate(-1deg)}
    50%{transform:translate(0,-1px) rotate(1deg)}
    75%{transform:translate(-1px,-4px) rotate(0deg)}
}
@keyframes miramms-relaunch-shadow{
    0%,100%{transform:scaleX(1);opacity:.42}
    25%,75%{transform:scaleX(.82);opacity:.28}
    50%{transform:scaleX(.93);opacity:.35}
}
@keyframes miramms-relaunch-new-pop{
    0%,100%{transform:scale(1) rotate(5deg)}
    50%{transform:scale(1.08) rotate(-3deg)}
}
@keyframes miramms-relaunch-spark{
    0%,35%,100%{opacity:.18;transform:scale(.55) rotate(0deg)}
    50%,70%{opacity:1;transform:scale(1) rotate(90deg)}
}

/* Modal */
body.miramms-relaunch-modal-open{overflow:hidden}

.miramms-relaunch-modal{
    --mrs-blue:#023667;
    --mrs-blue2:#075386;
    --mrs-orange:#e57621;
    --mrs-ink:#24455f;
    --mrs-muted:#6f8396;
    position:fixed;
    inset:0;
    z-index:999990;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease,visibility .18s ease;
}

.miramms-relaunch-modal.is-open{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
}

.miramms-relaunch-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(1,22,42,.70);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}

.miramms-relaunch-dialog{
    position:relative;
    z-index:2;
    width:min(820px,100%);
    max-height:min(760px,calc(100vh - 42px));
    overflow:auto;
    overscroll-behavior:contain;
    border:2px solid rgba(229,118,33,.72);
    border-radius:25px;
    background:#fff;
    box-shadow:0 28px 80px rgba(0,0,0,.38),0 0 0 5px rgba(255,255,255,.07);
    transform:translateY(16px) scale(.985);
    transition:transform .2s ease;
    scrollbar-width:thin;
    scrollbar-color:#e7a56e #edf3f7;
}

.miramms-relaunch-modal.is-open .miramms-relaunch-dialog{transform:translateY(0) scale(1)}

.miramms-relaunch-close{
    position:absolute;
    z-index:20;
    top:13px;
    right:14px;
    width:39px;
    height:39px;
    padding:0;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    background:rgba(0,29,55,.47);
    color:#fff;
    font-size:26px;
    line-height:34px;
    cursor:pointer;
    transition:background .15s ease,transform .15s ease;
}
.miramms-relaunch-close:hover{background:#e57621;transform:rotate(5deg)}

.miramms-relaunch-hero{
    position:relative;
    min-height:254px;
    overflow:hidden;
    display:flex;
    align-items:center;
    padding:34px 265px 31px 34px;
    background:
        radial-gradient(circle at 86% 16%,rgba(255,178,103,.25),transparent 24%),
        linear-gradient(135deg,#022f5c 0%,#07568a 70%,#0874a7 100%);
    color:#fff;
}

.miramms-relaunch-hero::before{
    content:"";
    position:absolute;
    right:-120px;
    bottom:-180px;
    width:380px;
    height:380px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    box-shadow:-105px -100px 0 -55px rgba(255,255,255,.035);
}

.miramms-relaunch-hero-copy{position:relative;z-index:3}
.miramms-relaunch-kicker{
    display:inline-flex;
    align-items:center;
    padding:5px 10px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:999px;
    background:rgba(0,0,0,.12);
    color:#ffc99c;
    font-size:10px;
    font-weight:900;
    letter-spacing:.75px;
    text-transform:uppercase;
}
.miramms-relaunch-hero h2{
    margin:10px 0 9px;
    color:#fff;
    font-size:30px;
    line-height:1.08;
    font-weight:950;
    text-shadow:0 3px 0 rgba(0,0,0,.1);
}
.miramms-relaunch-hero p{
    margin:0;
    max-width:520px;
    color:rgba(255,255,255,.84);
    font-size:13px;
    line-height:1.7;
}

.miramms-relaunch-hero-art{
    position:absolute;
    right:42px;
    bottom:0;
    width:205px;
    height:244px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
}
.miramms-relaunch-hero-npc{
    position:relative;
    z-index:3;
    display:block;
    max-width:158px;
    max-height:238px;
    image-rendering:pixelated;
    filter:drop-shadow(0 10px 5px rgba(0,0,0,.25));
    animation:miramms-relaunch-hero-idle 2.1s steps(4,end) infinite;
}
@keyframes miramms-relaunch-hero-idle{
    0%,100%{transform:translateY(0) rotate(0)}
    25%{transform:translateY(-4px) rotate(-.6deg)}
    50%{transform:translateY(-1px) rotate(.6deg)}
    75%{transform:translateY(-5px) rotate(0)}
}
.miramms-relaunch-hero-star{
    position:absolute;
    z-index:2;
    width:14px;
    height:14px;
    animation:miramms-relaunch-spark 1.8s steps(2,end) infinite;
}
.miramms-relaunch-hero-star::before,.miramms-relaunch-hero-star::after{content:"";position:absolute;background:#ffd586}
.miramms-relaunch-hero-star::before{left:6px;top:0;width:3px;height:14px}
.miramms-relaunch-hero-star::after{left:0;top:6px;width:14px;height:3px}
.miramms-relaunch-hero-star.star-a{left:6px;top:48px}
.miramms-relaunch-hero-star.star-b{right:5px;top:87px;animation-delay:.85s;transform:scale(.7)}

.miramms-relaunch-dialog-body{padding:23px 25px 25px;background:linear-gradient(180deg,#fff 0%,#f8fbfd 100%)}

.miramms-relaunch-rate-section{
    padding:16px 17px 17px;
    border:1px solid #dce7ee;
    border-radius:18px;
    background:#fff;
    box-shadow:0 7px 18px rgba(2,54,103,.055);
}
.miramms-relaunch-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.miramms-relaunch-section-heading img{width:54px;height:50px;object-fit:contain;image-rendering:pixelated}
.miramms-relaunch-section-heading span{display:block;color:#e57621;font-size:9px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}
.miramms-relaunch-section-heading h3{margin:2px 0 0;color:#023667;font-size:16px;font-weight:950}
.miramms-relaunch-rates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.miramms-relaunch-rates>div{padding:10px 7px;border:1px solid #e3ebf1;border-radius:12px;background:linear-gradient(180deg,#f9fcfe,#f1f6fa);text-align:center}
.miramms-relaunch-rates span{display:block;color:#73889a;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.35px}
.miramms-relaunch-rates strong{display:block;margin-top:2px;color:#023667;font-size:15px;font-weight:950}

.miramms-relaunch-content-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:12px;margin-top:12px}
.miramms-relaunch-update-card,.miramms-relaunch-vision-card{border:1px solid #dce7ee;border-radius:18px;background:#fff;box-shadow:0 6px 16px rgba(2,54,103,.045)}
.miramms-relaunch-update-card{padding:18px}
.miramms-relaunch-update-card h3,.miramms-relaunch-vision-card h3{margin:0 0 12px;color:#023667;font-size:16px;font-weight:950}
.miramms-relaunch-update-card ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.miramms-relaunch-update-card li{display:flex;align-items:flex-start;gap:9px;color:#526b7e;font-size:11px;line-height:1.55}
.miramms-relaunch-list-icon{flex:0 0 24px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#fff0e4;color:#b95d1b;font-size:9px;font-weight:950;border:1px solid #f3c59f}

.miramms-relaunch-vision-card{position:relative;overflow:hidden;padding:18px 18px 17px}
.miramms-relaunch-vision-card::after{content:"";position:absolute;right:-35px;bottom:-48px;width:120px;height:120px;border-radius:50%;background:rgba(229,118,33,.06)}
.miramms-relaunch-vision-card p{position:relative;z-index:2;margin:0;color:#637b8e;font-size:11px;line-height:1.65}
.miramms-relaunch-vision-mushroom{height:70px;margin:-10px -8px 8px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.miramms-relaunch-vision-mushroom img{width:150px;height:75px;object-fit:cover;object-position:50% 23%;image-rendering:auto}

.miramms-relaunch-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:15px}
.miramms-relaunch-news-button,.miramms-relaunch-secondary-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 17px;border-radius:999px;font-size:11px;font-weight:900;text-decoration:none!important;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.miramms-relaunch-news-button{border:2px solid #023667;background:#023667;color:#fff!important;box-shadow:0 7px 15px rgba(2,54,103,.18)}
.miramms-relaunch-news-button span{font-size:19px;line-height:1;margin-top:-2px;color:#f8a161}
.miramms-relaunch-news-button:hover{transform:translateY(-1px);background:#075386;color:#fff!important}
.miramms-relaunch-secondary-button{border:1px solid #d5e1e9;background:#fff;color:#49667c}
.miramms-relaunch-secondary-button:hover{transform:translateY(-1px);background:#f5f9fc}

@media(max-width:1050px){
    .miramms-brand-stage{min-height:auto;padding-bottom:10px}
    .miramms-relaunch-teaser{position:relative;right:auto;top:auto;width:min(420px,calc(100% - 30px));margin:-8px auto 8px;padding-left:96px}
}

@media(max-width:720px){
    .miramms-relaunch-modal{padding:12px;align-items:flex-end}
    .miramms-relaunch-dialog{width:100%;max-height:calc(100dvh - 18px);border-radius:23px 23px 16px 16px}
    .miramms-relaunch-hero{min-height:245px;padding:27px 130px 26px 21px}
    .miramms-relaunch-hero h2{font-size:24px}
    .miramms-relaunch-hero p{font-size:11px;line-height:1.6}
    .miramms-relaunch-hero-art{right:3px;width:132px;height:190px}
    .miramms-relaunch-hero-npc{max-width:112px;max-height:185px}
    .miramms-relaunch-dialog-body{padding:16px}
    .miramms-relaunch-rates{grid-template-columns:repeat(2,minmax(0,1fr))}
    .miramms-relaunch-content-grid{grid-template-columns:1fr}
    .miramms-relaunch-vision-mushroom{display:none}
    .miramms-relaunch-actions{flex-direction:column}
    .miramms-relaunch-news-button,.miramms-relaunch-secondary-button{width:100%}
}

@media(max-width:480px){
    .miramms-brand-stage{padding-top:10px}
    .miramms-brand-banner{max-width:90vw}
    .miramms-relaunch-teaser{min-height:84px;width:calc(100% - 20px);padding:9px 12px 9px 83px;border-radius:17px 17px 17px 7px}
    .miramms-relaunch-teaser-npc{left:5px;width:73px;height:96px}
    .miramms-relaunch-teaser-npc img{max-width:65px;max-height:94px}
    .miramms-relaunch-teaser-copy strong{font-size:16px}
    .miramms-relaunch-teaser-copy small{font-size:9px}
    .miramms-relaunch-teaser-new{right:-3px;top:-10px}
    .miramms-relaunch-hero{padding:24px 102px 23px 18px;min-height:230px}
    .miramms-relaunch-kicker{font-size:8px}
    .miramms-relaunch-hero h2{font-size:21px}
    .miramms-relaunch-hero-art{width:101px;height:171px}
    .miramms-relaunch-hero-npc{max-width:92px;max-height:164px}
}

@media(prefers-reduced-motion:reduce){
    .miramms-relaunch-teaser-npc img,
    .miramms-relaunch-npc-shadow,
    .miramms-relaunch-teaser-new,
    .miramms-relaunch-pixel-spark,
    .miramms-relaunch-hero-npc,
    .miramms-relaunch-hero-star{animation:none!important}
    .miramms-relaunch-teaser,.miramms-relaunch-dialog{transition:none!important}
}
