/* Mesa Devir app landing, built like the Deviriada and Navidad landings:
   real art instead of icon cards. The painted band with torn paper edges is
   the Deviriada's own (split into two transparent edges and a paint fill so
   the edges keep their size at any section height); screens are the real app;
   box art sits on white. Buttons carry the hard offset shadow of the Navidad
   page. Most visitors arrive from a phone after scanning the event QR. */

#mesa-devir {
    --mdv-ink: #1f2448;
    --mdv-blue: #0d3068;
    --mdv-pink: #cf3d65;
    --mdv-gold: #eabc54;
    --mdv-teal: #2f9fb0;
    --mdv-mint: #a3cc9f;
    --mdv-green: #2fb67c;
    --mdv-red: #e5484d;
    --mdv-cream: #fbf5ea;
    --mdv-muted: #5a6480;
    --mdv-ff: "Graphik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mdv-ff-black: "Graphik-bold", "Graphik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-family: var(--mdv-ff);
    color: var(--mdv-ink);
    background: #fff;
    /* Break out of Porto's boxed column so the bands run edge to edge. */
    width: calc(100vw - var(--porto-scroll-w, 0px));
    max-width: calc(100vw - var(--porto-scroll-w, 0px));
    margin-inline: calc(50% - 50vw + var(--porto-scroll-w, 0px) / 2);
    overflow-x: clip;
}

body.page-template-page-mesa-devir .main-content {
    padding-top: 0;
    padding-bottom: 0;
}

#mesa-devir *,
#mesa-devir *::before,
#mesa-devir *::after { box-sizing: border-box; }

#mesa-devir h1,
#mesa-devir h2,
#mesa-devir h3,
#mesa-devir p,
#mesa-devir figure,
#mesa-devir ol,
#mesa-devir ul { margin: 0; font-family: var(--mdv-ff); }

#mesa-devir img { max-width: 100%; }

.mdv-wrap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Type ------------------------------------------------------------------ */

.mdv-title {
    font-family: var(--mdv-ff-black) !important;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--mdv-ink);
    text-wrap: balance;
}
.mdv-title--center { text-align: center; }
.mdv-title--light { color: #fff; }

.mdv-hl { color: var(--mdv-gold); }
.mdv-hl-pink { color: var(--mdv-pink); }
.mdv-hl-navy { color: #fff; background: var(--mdv-ink); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Buttons: solid fill and a hard offset shadow that presses in. */

.mdv-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.mdv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 6px;
    font-family: var(--mdv-ff-black);
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mdv-btn svg { width: 20px; height: 20px; flex: none; }
.mdv-btn:focus-visible { outline: 3px solid var(--mdv-gold); outline-offset: 4px; }
.mdv-btn--block { display: flex; width: 100%; }

.mdv-btn--gold { background: var(--mdv-gold); color: var(--mdv-ink) !important; box-shadow: 5px 5px 0 #0b0e24; }
.mdv-btn--gold:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #0b0e24; }
.mdv-btn--gold:active { transform: translate(5px, 5px); box-shadow: 0 0 0 #0b0e24; }

.mdv-btn--line { color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.mdv-btn--line:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px #fff; }

.mdv-btn--navy { background: var(--mdv-ink); color: #fff !important; box-shadow: 5px 5px 0 var(--mdv-gold); }
.mdv-btn--navy:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--mdv-gold); }
.mdv-btn--navy:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--mdv-gold); }


/* Phone frame around real app screens. */

.mdv-phone {
    position: relative;
    padding: 9px;
    border-radius: 34px;
    background: #0b0d1c;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 28px 60px rgba(4, 6, 20, .45);
}
/* Punch-hole camera and side key, so the frame reads as a phone at any size. */
.mdv-phone::before {
    content: "";
    position: absolute;
    top: calc(9px + 1.6%);
    left: 50%;
    z-index: 1;
    width: 3.2%;
    min-width: 6px;
    aspect-ratio: 1;
    margin-left: -1.6%;
    border-radius: 50%;
    background: #0b0d1c;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.mdv-phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; border-radius: 26px; }

/* Hero ------------------------------------------------------------------ */

.mdv-hero {
    position: relative;
    background:
        radial-gradient(60% 70% at 78% 45%, rgba(47, 159, 176, .28), transparent 70%),
        radial-gradient(40% 50% at 95% 95%, rgba(207, 61, 101, .18), transparent 70%),
        var(--mdv-ink);
    color: #fff;
}
.mdv-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 96px;
}
.mdv-hero__devir { display: block; width: 120px; height: auto; margin-bottom: 36px; }
.mdv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mdv-ff-black);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mdv-gold);
}
.mdv-kicker span {
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--mdv-pink);
    font-size: 12px;
    letter-spacing: .1em;
    color: #fff;
}
.mdv-hero__title {
    margin-top: 18px !important;
    font-family: var(--mdv-ff-black) !important;
    font-size: clamp(42px, 5.6vw, 76px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
    text-wrap: balance;
}
.mdv-hero__title .mdv-hl { display: block; }
.mdv-hero__lead { margin-top: 22px !important; max-width: 520px; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.mdv-hero__meta { margin-top: 22px !important; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* Key art: two real phones over three real boxes. */
.mdv-hero__art { position: relative; height: 560px; }
.mdv-box {
    position: absolute;
    width: 46%;
    height: auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(4, 6, 20, .4);
}
.mdv-box--1 { top: 2%; left: 0; transform: rotate(-9deg); }
.mdv-box--2 { bottom: 2%; left: 6%; width: 40%; transform: rotate(6deg); }
.mdv-box--3 { top: 8%; right: -4%; width: 40%; transform: rotate(8deg); }
.mdv-hero__art .mdv-phone { position: absolute; width: 39%; }
.mdv-phone--back { top: 4%; right: 6%; transform: rotate(7deg); }
.mdv-phone--front { top: 10%; left: 30%; transform: rotate(-5deg); }

/* How it works: the painted band with torn edges -------------------------- */

.mdv-how {
    position: relative;
    padding: 150px 0 160px;
    background: url("img/fondo/pintura.webp") center / cover no-repeat, var(--mdv-mint);
}
.mdv-how::before,
.mdv-how::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    background-repeat: no-repeat;
    background-size: 100% 80px;
    pointer-events: none;
}
.mdv-how::before { top: -1px; background-image: url("img/fondo/borde-arriba.webp"); }
.mdv-how::after { bottom: -1px; background-image: url("img/fondo/borde-abajo.webp"); }

.mdv-how__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 56px !important;
    padding: 0;
    list-style: none;
}
.mdv-how__step { position: relative; margin: 0; text-align: center; }
.mdv-how__step .mdv-phone { width: 78%; margin: 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 20px 40px rgba(13, 48, 104, .35); }
.mdv-how__step:nth-child(odd) .mdv-phone { transform: rotate(-2.5deg); }
.mdv-how__step:nth-child(even) .mdv-phone { transform: rotate(2.5deg); margin-top: 28px; }
.mdv-badge {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-top: -26px;
    position: relative;
    border: 3px solid #fff;
    border-radius: 50%;
    font-family: var(--mdv-ff-black);
    font-size: 21px;
    font-weight: 900;
    color: #fff;
    box-shadow: 3px 3px 0 var(--mdv-ink);
}
.mdv-badge--1 { background: var(--mdv-pink); }
.mdv-badge--2 { background: var(--mdv-teal); }
.mdv-badge--3 { background: var(--mdv-gold); color: var(--mdv-ink); }
.mdv-badge--4 { background: var(--mdv-ink); }
.mdv-how__title { margin-top: 12px !important; font-family: var(--mdv-ff-black) !important; font-size: 21px; line-height: 1.2; font-weight: 900; color: var(--mdv-ink); }
.mdv-how__text { margin-top: 8px !important; font-size: 15.5px; line-height: 1.5; color: #24305a; }

/* Download: blue band continuing the torn edge -------------------------- */

.mdv-download {
    padding: 72px 0 104px;
    background:
        radial-gradient(50% 60% at 15% 20%, rgba(47, 159, 176, .22), transparent 70%),
        var(--mdv-blue);
    color: #fff;
}
.mdv-download__lead { margin-top: 14px !important; font-size: 18px; text-align: center; color: rgba(255, 255, 255, .78); }
.mdv-download__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    margin-top: 48px;
    align-items: start;
}

/* A ticket: white card, hard shadow, perforated header. */
.mdv-ticket {
    position: relative;
    padding: 28px 32px 30px;
    border-radius: 8px;
    background: #fff;
    color: var(--mdv-ink);
    box-shadow: 8px 8px 0 #071a3d;
}
.mdv-ticket__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #d5dbe8;
}
.mdv-ticket__title { font-family: var(--mdv-ff-black) !important; font-size: 28px; line-height: 1; font-weight: 900; color: var(--mdv-ink); }
.mdv-ticket__tag {
    padding: 7px 12px;
    border-radius: 4px;
    background: var(--mdv-green);
    font-family: var(--mdv-ff-black);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}
.mdv-ticket__tag--soon { background: var(--mdv-gold); color: var(--mdv-ink); }
.mdv-ticket__body { display: flex; align-items: flex-start; gap: 28px; margin: 24px 0 28px; }
.mdv-ticket__note { margin-top: 14px !important; font-size: 13px; text-align: center; color: var(--mdv-muted); }
.mdv-ticket .mdv-btn + .mdv-btn { margin-top: 14px; }
.mdv-ticket .mdv-btn--line { color: var(--mdv-ink) !important; box-shadow: inset 0 0 0 2px var(--mdv-ink); }

.mdv-qr { flex: none; width: 210px; text-align: center; }
.mdv-qr img { display: block; width: 210px; height: 210px; border: 3px solid var(--mdv-ink); border-radius: 8px; }
.mdv-qr figcaption { margin-top: 10px; font-family: var(--mdv-ff-black); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--mdv-pink); }

.mdv-install { counter-reset: mdv-install; padding: 0; list-style: none; }
.mdv-install li {
    counter-increment: mdv-install;
    position: relative;
    margin: 0 0 16px;
    padding-left: 46px;
    font-size: 16px;
    line-height: 1.45;
    color: #2b3555;
}
.mdv-install li:last-child { margin-bottom: 0; }
.mdv-install li::before {
    content: counter(mdv-install);
    position: absolute;
    top: -3px;
    left: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mdv-ink);
    font-family: var(--mdv-ff-black);
    font-size: 16px;
    font-weight: 900;
    color: var(--mdv-gold);
}
.mdv-install strong { color: var(--mdv-ink); }

.mdv-ticket__copy { font-size: 16px; line-height: 1.5; color: #2b3555; }
.mdv-ticket__copy p + p { margin-top: 10px !important; }
.mdv-ticket__big { font-family: var(--mdv-ff-black) !important; font-size: 22px; line-height: 1.2; font-weight: 900; color: var(--mdv-ink); }

/* Android, step by step: the real dialogs, framed like screens. */
.mdv-steps-title {
    margin-top: 72px !important;
    font-family: var(--mdv-ff-black) !important;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    color: #fff;
}
.mdv-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 36px;
    max-width: 1020px;
    margin: 40px auto 0 !important;
    padding: 0;
    list-style: none;
}
.mdv-step { position: relative; margin: 0; }
.mdv-step img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1080 / 1160;
    object-fit: cover;
    object-position: top;
    border: 3px solid #fff;
    border-radius: 10px;
    box-shadow: 6px 6px 0 #071a3d;
}
.mdv-step__num {
    position: absolute;
    top: -14px;
    left: -10px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--mdv-gold);
    box-shadow: 3px 3px 0 #071a3d;
    font-family: var(--mdv-ff-black);
    font-size: 18px;
    font-weight: 900;
    color: var(--mdv-ink);
}
.mdv-step p { margin-top: 18px !important; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.mdv-step strong { color: var(--mdv-gold); }

.mdv-soon { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 28px 8px 8px; text-align: center; }
.mdv-soon img { width: 112px; height: auto; border-radius: 26px; box-shadow: 5px 5px 0 var(--mdv-gold); }
.mdv-soon p { max-width: 320px; font-size: 16px; line-height: 1.5; color: #2b3555; }

/* Games: box art on white --------------------------------------------- */

.mdv-games { padding: 96px 0; background: #fff; }
.mdv-games__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 36px 24px;
    margin-top: 48px !important;
    padding: 0;
    list-style: none;
}
.mdv-game { margin: 0; text-align: center; }
.mdv-game img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; transition: transform .2s ease; }
.mdv-game:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.mdv-game span { display: block; margin-top: 10px; font-family: var(--mdv-ff-black); font-size: 17px; font-weight: 900; color: var(--mdv-ink); }

/* Updates, status and changelog: cream paper ---------------------------- */

.mdv-news { padding: 96px 0; background: var(--mdv-cream); border-top: 1px solid #efe4cf; }
.mdv-news__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }

.mdv-updates { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 36px; align-items: start; }
.mdv-updates > :not(.mdv-updates__phone) { grid-column: 2; }
.mdv-updates__phone { grid-column: 1; grid-row: 1 / span 3; transform: rotate(-3deg); margin-top: 8px; }
.mdv-footer-check { margin-top: 8px !important; }
.mdv-footer-check img { display: block; width: 100%; height: auto; border: 2px solid var(--mdv-ink); border-radius: 6px; }
.mdv-footer-check figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--mdv-muted); }

.mdv-updates__list { counter-reset: mdv-up; margin-top: 32px !important; padding: 0; list-style: none; }
.mdv-updates__list li {
    counter-increment: mdv-up;
    position: relative;
    margin: 0;
    padding: 22px 0 22px 84px;
    border-top: 2px solid var(--mdv-ink);
}
.mdv-updates__list li::before {
    content: counter(mdv-up, decimal-leading-zero);
    position: absolute;
    top: 16px;
    left: 0;
    font-family: var(--mdv-ff-black);
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    color: var(--mdv-pink);
}
.mdv-updates__list h3 { font-family: var(--mdv-ff-black) !important; font-size: 21px; line-height: 1.2; font-weight: 900; color: var(--mdv-ink); }
.mdv-updates__list p { margin-top: 6px !important; font-size: 16px; line-height: 1.5; color: var(--mdv-muted); }

.mdv-side { display: grid; gap: 24px; }
.mdv-status,
.mdv-changelog {
    padding: 26px 28px;
    border: 2px solid var(--mdv-ink);
    border-radius: 8px;
    background: #fff;
    box-shadow: 6px 6px 0 var(--mdv-ink);
}
.mdv-status__label { font-family: var(--mdv-ff-black); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--mdv-muted); }
.mdv-status__line { display: flex; align-items: center; gap: 12px; margin-top: 10px !important; font-family: var(--mdv-ff-black); font-size: 28px; line-height: 1; font-weight: 900; }
.mdv-status__dot { position: relative; width: 14px; height: 14px; border-radius: 50%; }
.mdv-status__line--ok { color: #1d7f55; }
.mdv-status__line--ok .mdv-status__dot { background: var(--mdv-green); box-shadow: 0 0 0 5px rgba(47, 182, 124, .2); }
.mdv-status__line--down { color: #b42318; }
.mdv-status__line--down .mdv-status__dot { background: var(--mdv-red); box-shadow: 0 0 0 5px rgba(229, 72, 77, .2); }
.mdv-status__facts { margin-top: 12px !important; font-size: 14px; color: var(--mdv-muted); }

.mdv-changelog__title { font-family: var(--mdv-ff-black) !important; font-size: 24px; font-weight: 900; color: var(--mdv-ink); }
.mdv-changelog__body { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: #2b3555; }
.mdv-changelog__body h3,
.mdv-changelog__body h4 {
    display: inline-block;
    margin: 18px 0 8px !important;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--mdv-ink);
    font-family: var(--mdv-ff-black) !important;
    font-size: 14px;
    font-weight: 900;
    color: var(--mdv-gold);
}
.mdv-changelog__body > :first-child,
.mdv-changelog__body > :first-child > :first-child { margin-top: 0 !important; }
.mdv-changelog__body ul { margin: 0 0 8px; padding-left: 20px; }
.mdv-changelog__body li { margin-bottom: 6px; }

/* Help ---------------------------------------------------------------- */

.mdv-help { padding: 56px 0; background: #fff; border-top: 1px solid #e6e9f1; }
.mdv-help__inner { display: flex; align-items: center; gap: 28px; }
.mdv-help__icon { flex: none; width: 76px; height: auto; border-radius: 18px; }
.mdv-help__copy { flex: 1; }
.mdv-help__title { font-family: var(--mdv-ff-black) !important; font-size: 26px; font-weight: 900; color: var(--mdv-ink); }
.mdv-help__copy p { margin-top: 6px !important; font-size: 16px; color: var(--mdv-muted); }
.mdv-help__copy a { color: var(--mdv-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Tablet -------------------------------------------------------------- */

@media (max-width: 1023px) {
    .mdv-hero__inner { grid-template-columns: 1fr; padding-bottom: 72px; }
    .mdv-hero__art { height: 480px; max-width: 560px; width: 100%; margin: 0 auto; }
    .mdv-how__list { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; }
    .mdv-download__grid,
    .mdv-news__grid { grid-template-columns: 1fr; }
    .mdv-games__grid { grid-template-columns: repeat(3, 1fr); }
    .mdv-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

/* Phone --------------------------------------------------------------- */

@media (max-width: 767px) {
    .mdv-wrap { padding: 0 16px; }

    .mdv-hero__inner { gap: 8px; padding-top: 32px; padding-bottom: 64px; }
    /* The site header already shows the Devir logo right above. */
    .mdv-hero__devir { display: none; }
    .mdv-hero__lead { font-size: 17px; }
    .mdv-actions { margin-top: 26px; }
    .mdv-actions .mdv-btn { width: 100%; }
    .mdv-hero__art { order: -1; height: 300px; margin-bottom: 16px; }
    .mdv-hero__art .mdv-phone { width: 34%; padding: 6px; border-radius: 22px; }
    .mdv-hero__art .mdv-phone img { border-radius: 17px; }
    .mdv-phone--front { left: 26%; }
    .mdv-box { width: 40%; }

    .mdv-how { padding: 96px 0 120px; }
    .mdv-how::before,
    .mdv-how::after { height: 40px; background-size: 200% 40px; }
    .mdv-how__list { grid-template-columns: repeat(2, 1fr); gap: 36px 14px; margin-top: 32px !important; }
    .mdv-how__step .mdv-phone { width: 88%; padding: 6px; border-radius: 22px; }
    .mdv-how__step .mdv-phone img { border-radius: 17px; }
    .mdv-how__step:nth-child(even) .mdv-phone { margin-top: 20px; }
    .mdv-badge { width: 46px; height: 46px; margin-top: -22px; font-size: 17px; }
    .mdv-how__title { font-size: 17px; }
    .mdv-how__text { font-size: 14px; }

    .mdv-download { padding: 56px 0 72px; }
    .mdv-download__lead { font-size: 16px; }
    .mdv-ticket { padding: 22px 20px 24px; box-shadow: 6px 6px 0 #071a3d; }
    .mdv-ticket__title { font-size: 24px; }
    /* A phone cannot scan its own screen: the button does the job there. */
    .mdv-qr { display: none; }
    .mdv-ticket__body { margin: 20px 0 24px; }
    .mdv-ticket__big { font-size: 19px; }
    .mdv-steps-title { margin-top: 56px !important; font-size: 22px; }
    .mdv-steps { grid-template-columns: 1fr; gap: 36px; max-width: 420px; margin-top: 28px !important; }
    .mdv-step p { font-size: 13.5px; }

    .mdv-updates { grid-template-columns: 1fr; }
    .mdv-updates > :not(.mdv-updates__phone) { grid-column: 1; }
    .mdv-updates__phone { grid-row: auto; width: 62%; margin: 0 auto 32px; }

    .mdv-games { padding: 64px 0; }
    .mdv-games__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; margin-top: 32px !important; }

    .mdv-news { padding: 64px 0; }
    .mdv-news__grid { gap: 40px; }
    .mdv-updates__list li { padding-left: 68px; }
    .mdv-updates__list li::before { font-size: 38px; }

    .mdv-help__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .mdv-help .mdv-btn { width: 100%; }
}


/* Zoom: every real screen opens big on click ---------------------------- */

.mdv-zoom { display: block; position: relative; cursor: zoom-in; text-decoration: none !important; }
.mdv-zoom:focus-visible { outline: 3px solid var(--mdv-gold); outline-offset: 6px; }
.mdv-zoom::after {
    content: "Ampliar";
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 4px;
    background: var(--mdv-ink);
    box-shadow: 3px 3px 0 var(--mdv-gold);
    font-family: var(--mdv-ff-black);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.mdv-zoom:hover::after,
.mdv-zoom:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .mdv-zoom::after { opacity: 1; transform: none; padding: 5px 9px; font-size: 10.5px; } }

.mdv-step__shot img { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.mdv-step__shot:hover img { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #071a3d; }
.mdv-how__step .mdv-zoom { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.mdv-how__step:nth-child(odd) .mdv-zoom:hover { transform: rotate(-1deg) translateY(-8px) scale(1.03); }
.mdv-how__step:nth-child(even) .mdv-zoom:hover { transform: rotate(1deg) translateY(-8px) scale(1.03); }

.mdv-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 56px 88px 64px;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}
.mdv-lightbox[open] { display: grid; place-items: center; }
.mdv-lightbox::backdrop { background: rgba(11, 14, 36, .92); backdrop-filter: blur(6px); }
.mdv-lightbox[open],
.mdv-lightbox[open]::backdrop { animation: mdv-fade .22s ease both; }
.mdv-lightbox.is-closing,
.mdv-lightbox.is-closing::backdrop { animation: mdv-fade-out .18s ease both; }

.mdv-lightbox__figure { display: flex; flex-direction: column; align-items: center; max-height: 100%; margin: 0; }
.mdv-lightbox.is-swapping .mdv-lightbox__figure { animation: mdv-pop .32s cubic-bezier(.2, .9, .25, 1.1) both; }
.mdv-lightbox__img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    max-height: calc(100dvh - 190px);
    border: 4px solid #fff;
    border-radius: 14px;
    background: #fff;
    box-shadow: 10px 10px 0 var(--mdv-gold);
}
.mdv-lightbox__caption { max-width: 640px; margin-top: 26px; font-size: 18px; line-height: 1.45; text-align: center; color: rgba(255, 255, 255, .9); }
.mdv-lightbox__caption strong { color: var(--mdv-gold); }
.mdv-lightbox__count { position: absolute; top: 22px; left: 28px; margin: 0; font-family: var(--mdv-ff-black); font-size: 14px; font-weight: 900; letter-spacing: .12em; color: var(--mdv-gold); }

.mdv-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--mdv-gold);
    box-shadow: 4px 4px 0 #000;
    font: 900 34px/1 var(--mdv-ff-black);
    color: var(--mdv-ink);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mdv-lightbox button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.mdv-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mdv-lightbox button[hidden] { display: none; }
.mdv-lightbox__close { top: 18px; right: 22px; }
.mdv-lightbox__nav { top: 50%; margin-top: -27px; }
.mdv-lightbox__nav--prev { left: 22px; }
.mdv-lightbox__nav--next { right: 22px; }

@media (max-width: 767px) {
    .mdv-lightbox { padding: 72px 12px 96px; }
    .mdv-lightbox__img { max-height: calc(100dvh - 230px); box-shadow: 6px 6px 0 var(--mdv-gold); }
    .mdv-lightbox__caption { font-size: 15.5px; }
    .mdv-lightbox__nav { top: auto; bottom: 22px; margin: 0; }
    .mdv-lightbox__nav--prev { left: calc(50% - 66px); }
    .mdv-lightbox__nav--next { right: calc(50% - 66px); }
}

/* Motion --------------------------------------------------------------- */

@keyframes mdv-fade { from { opacity: 0; } }
@keyframes mdv-fade-out { to { opacity: 0; } }
@keyframes mdv-pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
@keyframes mdv-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes mdv-drop {
    from { opacity: 0; transform: translateY(-60px) rotate(var(--mdv-r, 0deg)) scale(.9); }
    to { opacity: 1; transform: rotate(var(--mdv-r, 0deg)); }
}
@keyframes mdv-float {
    0%, 100% { transform: rotate(var(--mdv-r, 0deg)) translateY(0); }
    50% { transform: rotate(var(--mdv-r, 0deg)) translateY(-12px); }
}
@keyframes mdv-pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 182, 124, .55); }
    100% { box-shadow: 0 0 0 14px rgba(47, 182, 124, 0); }
}
@keyframes mdv-shine { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: no-preference) {
    /* Hero: copy rises in order, boxes drop onto the table, phones float. */
    .mdv-hero__copy > * { animation: mdv-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
    .mdv-hero__copy > :nth-child(2) { animation-delay: .08s; }
    .mdv-hero__copy > :nth-child(3) { animation-delay: .16s; }
    .mdv-hero__copy > :nth-child(4) { animation-delay: .26s; }
    .mdv-hero__copy > :nth-child(5) { animation-delay: .36s; }
    .mdv-hero__copy > :nth-child(6) { animation-delay: .44s; }

    .mdv-box--1 { --mdv-r: -9deg; }
    .mdv-box--2 { --mdv-r: 6deg; }
    .mdv-box--3 { --mdv-r: 8deg; }
    .mdv-phone--back { --mdv-r: 7deg; }
    .mdv-phone--front { --mdv-r: -5deg; }
    .mdv-box { animation: mdv-drop .8s cubic-bezier(.16, 1, .3, 1) both; }
    .mdv-box--1 { animation-delay: .2s; }
    .mdv-box--3 { animation-delay: .32s; }
    .mdv-box--2 { animation-delay: .44s; }
    .mdv-hero__art .mdv-phone {
        animation: mdv-drop .9s cubic-bezier(.16, 1, .3, 1) both, mdv-float 6s ease-in-out 1.4s infinite;
    }
    .mdv-phone--back { animation-delay: .55s, 1.6s; }
    .mdv-phone--front { animation-delay: .7s, 1.4s; }

    /* Gold download buttons catch the light every few seconds. */
    .mdv-btn--gold {
        background-image: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
        background-size: 200% 100%;
        background-position: 100% 0;
        animation: mdv-shine 4.5s ease-in-out 1.5s infinite;
    }

    .mdv-status__line--ok .mdv-status__dot { animation: mdv-pulse 1.8s ease-out infinite; }

    /* Scroll reveals: hidden only once JS has flagged the page. */
    .mdv-anim [data-mdv-reveal] > * { opacity: 0; transform: translateY(32px); }
    .mdv-anim [data-mdv-reveal].is-in > * {
        opacity: 1;
        transform: none;
        transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
    }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(2) { transition-delay: .08s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(3) { transition-delay: .16s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(4) { transition-delay: .24s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(5) { transition-delay: .32s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(6) { transition-delay: .4s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(7) { transition-delay: .48s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(8) { transition-delay: .56s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(9) { transition-delay: .64s; }
    .mdv-anim [data-mdv-reveal].is-in > :nth-child(10) { transition-delay: .72s; }

    /* Step badges pop in after their card lands. */
    .mdv-anim .mdv-steps .mdv-step__num,
    .mdv-anim .mdv-how__list .mdv-badge { transform: scale(0); }
    .mdv-anim .is-in .mdv-step__num,
    .mdv-anim .is-in .mdv-badge { transform: scale(1); transition: transform .45s cubic-bezier(.16, 1, .3, 1) .35s; }
}

@media (prefers-reduced-motion: reduce) {
    .mdv-btn,
    .mdv-game img,
    .mdv-zoom,
    .mdv-zoom img,
    .mdv-zoom::after { transition: none; }
}
