:root {
  color-scheme: dark;
  --mv-ink: #0b0618;
  --mv-panel: rgba(20, 12, 35, .78);
  --mv-line: rgba(220, 190, 255, .15);
  --mv-text: #fff8f4;
  --mv-muted: #c0b2c8;
  --mv-purple: #a34dff;
  --mv-lilac: #d0a4ff;
  --mv-orange: #ff7626;
  --mv-gold: #ffd166;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
html, body { max-width: 100%; -webkit-user-select: text; user-select: text; }
body { min-width: 320px; overflow-x: clip; background: var(--mv-ink); color: var(--mv-text); font-family: 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
body::before { position: fixed; z-index: -1; inset: 0; background: radial-gradient(ellipse at 9% 10%, rgba(132, 50, 224, .13), transparent 35%), radial-gradient(ellipse at 88% 32%, rgba(255, 102, 24, .1), transparent 32%); content: ''; pointer-events: none; }

/* Fondo: parallax suave y contenido al frente para que el arte no estorbe. */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('img/background.png') center top / cover no-repeat;
  background-attachment: fixed;
  opacity: .26;
  will-change: transform;
}
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 6, 24, .52) 0%, rgba(11, 6, 24, .78) 46%, rgba(11, 6, 24, .96) 100%);
  pointer-events: none;
}

img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mv-gold); outline-offset: 4px; }
[hidden] { display: none !important; }

/* Protección de arte: evita arrastre y "guardar imagen" sobre los diseños originales.
   js/img-guard.js cubre contextmenu/dragstart; esto cubre selección y arrastre nativo. */
.mv-hero-art img,
.mv-specialty-image img,
.mv-editor-flow .specialty-card img,
.hero-logo-img,
.footer-logo-img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
/* El resultado generado por el usuario sí se puede guardar. */
#dlPreview {
  -webkit-user-drag: auto;
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
}

.dg-app-header { border-bottom-color: rgba(220, 190, 255, .12); background: rgba(11, 6, 24, .82); box-shadow: 0 10px 36px rgba(0, 0, 0, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.dg-app-nav { width: min(100% - 40px, 1320px); max-width: none; min-height: 72px; padding: 8px 0; }
.dg-app-brand img { filter: drop-shadow(0 3px 12px rgba(97, 207, 230, .12)); }
.dg-app-link { border-color: rgba(223, 203, 255, .2); color: #e8ddf3; font-weight: 700; }
.dg-app-link:hover { border-color: rgba(255, 186, 116, .62); color: #fff; }
.dg-app-profile { color: #ffd2a2; }
.dg-app-register { border-color: rgba(255, 184, 85, .5); background: linear-gradient(118deg, #ff9d16, #f3441e); }
.dg-app-register:hover { background: linear-gradient(118deg, #ffad32, #ff5931); }

.mv-container { width: min(100% - 48px, 1320px); margin-inline: auto; }
.mv-premium-hero { position: relative; display: flex; min-height: min(760px, calc(100svh - 72px)); align-items: center; overflow: hidden; padding: clamp(70px, 9vw, 120px) 0 clamp(88px, 11vw, 140px); background: linear-gradient(105deg, rgba(11, 6, 24, .91) 0%, rgba(18, 8, 32, .78) 47%, rgba(11, 6, 24, .46) 100%); }
.mv-hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr); align-items: center; gap: clamp(24px, 6vw, 86px); }
.mv-hero-copy { position: relative; z-index: 2; max-width: 640px; }
.mv-section-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #ffbd78; font-size: .62rem; font-weight: 800; letter-spacing: .15em; line-height: 1.5; text-transform: uppercase; }
.mv-hero-logo { display: block; width: min(260px, 60vw); max-height: 100px; margin: 24px 0 15px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 25px rgba(203, 110, 255, .18)); }
.mv-hero-copy h1, .mv-section-heading h2, .mv-closing-content h2, .mv-auth-gate h2 { margin: 0; font-family: 'Lobster', 'Poppins', cursive; font-weight: 400; letter-spacing: -.025em; }
.mv-hero-copy h1 { max-width: 720px; font-size: clamp(3.3rem, 6.8vw, 6.2rem); line-height: .98; }
.mv-hero-copy h1 span, .mv-section-heading h2 span, .mv-closing-content h2 span, .mv-auth-gate h2 span { color: #ff9d48; text-shadow: 0 5px 30px rgba(255, 92, 20, .2); }
.mv-hero-copy > p { max-width: 500px; margin: 22px 0 25px; color: #d0c3db; font-size: clamp(.95rem, 1.25vw, 1.1rem); line-height: 1.8; }
.mv-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.mv-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 12px 21px; font-size: .82rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.mv-button:hover { transform: translateY(-2px); }
.mv-button-primary { border-color: rgba(255, 184, 85, .48); background: linear-gradient(118deg, #ff9d16, #ff6a00 54%, #f3441e); box-shadow: 0 12px 32px rgba(255, 93, 14, .25), inset 0 1px 0 rgba(255,255,255,.25); color: #fff; }
.mv-button-primary:hover { box-shadow: 0 16px 36px rgba(255, 93, 14, .4); color: #fff; }
.mv-button-quiet { border-color: rgba(210, 185, 255, .26); background: rgba(25, 13, 47, .58); color: #f6edff; }
.mv-button-quiet:hover { border-color: rgba(186, 136, 255, .68); background: rgba(77, 36, 132, .4); color: #fff; }
.mv-hero-proof { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: #b7a8c7; font-size: .75rem; }
.mv-hero-proof span { color: var(--mv-gold); }

.mv-hero-art { position: relative; display: grid; min-height: clamp(390px, 42vw, 545px); place-items: center; isolation: isolate; }
.mv-hero-halo { position: absolute; z-index: -1; width: min(80%, 490px); aspect-ratio: 1; border: 1px solid rgba(192, 139, 255, .3); border-radius: 50%; background: radial-gradient(circle at 48% 53%, rgba(255, 105, 0, .2), rgba(108, 39, 197, .17) 49%, transparent 71%); box-shadow: 0 0 100px rgba(125, 55, 246, .19), inset 0 0 50px rgba(140, 53, 255, .14); }
.mv-hero-art::before, .mv-hero-art::after { position: absolute; z-index: -1; width: 96%; height: 60%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; content: ''; transform: rotate(-18deg); }
.mv-hero-art::after { width: 108%; height: 76%; border-color: rgba(255, 135, 40, .16); transform: rotate(22deg); }
.mv-hero-image { position: relative; z-index: 1; width: min(67%, 385px); overflow: hidden; margin: 0; border: 1px solid rgba(232, 204, 255, .32); border-radius: 28px; background: #110920; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 55px rgba(145, 66, 221, .2); transform: rotate(-3deg); }
.mv-hero-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.mv-hero-image figcaption { display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: #f3e8fb; font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mv-hero-image figcaption span { color: var(--mv-gold); }
.mv-hero-float { position: absolute; z-index: 2; width: clamp(104px, 17vw, 180px); overflow: hidden; border: 1px solid rgba(232, 204, 255, .3); border-radius: 21px; background: #110920; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: mv-float 6s ease-in-out infinite; }
.mv-hero-float img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.mv-hero-float-one { top: 7%; left: 0; transform: rotate(7deg); }
.mv-hero-float-two { right: 0; bottom: 4%; animation-delay: -2.6s; transform: rotate(6deg); }
.mv-hero-stamp { position: absolute; right: 9%; top: 7%; display: grid; width: 83px; height: 83px; place-content: center; border: 1px solid rgba(255, 209, 102, .45); border-radius: 50%; background: rgba(27, 12, 37, .82); color: var(--mv-gold); font-size: .56rem; font-weight: 800; letter-spacing: .12em; line-height: 1.45; text-align: center; transform: rotate(12deg); }
.mv-hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.mv-hero-orb-one { top: 16%; right: -90px; width: 240px; height: 240px; background: rgba(135, 57, 226, .13); filter: blur(45px); }
.mv-hero-orb-two { bottom: -100px; left: 26%; width: 250px; height: 170px; background: rgba(255, 104, 26, .12); filter: blur(55px); }
.mv-scroll-cue { position: absolute; bottom: 25px; left: 50%; display: grid; width: 30px; height: 46px; justify-items: center; border: 1px solid rgba(255,255,255,.27); border-radius: 99px; padding-top: 8px; transform: translateX(-50%); }
.mv-scroll-cue span { width: 4px; height: 9px; border-radius: 5px; background: var(--mv-gold); animation: mv-scroll 1.6s ease-in-out infinite; }
@keyframes mv-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes mv-scroll { 0%, 100% { opacity: .45; translate: 0 0; } 50% { opacity: 1; translate: 0 8px; } }

.mv-specialties-section { position: relative; padding: clamp(74px, 9vw, 116px) 0; border-block: 1px solid rgba(207, 183, 246, .1); background: linear-gradient(105deg, rgba(17, 9, 33, .93), rgba(29, 12, 43, .82)); }
.mv-section-heading { margin-bottom: 32px; }
.mv-section-heading-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .62fr); align-items: end; gap: 32px; }
.mv-section-heading h2 { font-size: clamp(2.45rem, 4.8vw, 4.2rem); line-height: 1.06; }
.mv-section-heading-split > p { max-width: 440px; margin: 0 0 5px auto; color: var(--mv-muted); font-size: .88rem; line-height: 1.75; }

.mv-specialty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 12px; }
.mv-specialty-card { position: relative; min-width: 0; border: 0; border-radius: 15px; padding: 0; overflow: hidden; display: flex; flex-direction: column; background: rgba(255, 255, 255, .022); box-shadow: inset 0 0 0 1px rgba(223, 203, 255, .1); transition: background-color .25s ease, box-shadow .25s ease; grid-column: span 1; }
.mv-specialty-card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.mv-specialty-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.mv-specialty-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.mv-specialty-card:nth-child(4) { grid-column: 1 / span 2; grid-row: 3; }
.mv-specialty-card:nth-child(5) { grid-column: 3; grid-row: 1; }
.mv-specialty-card:nth-child(6) { grid-column: 3; grid-row: 2; }
.mv-specialty-card:nth-child(7) { grid-column: 3; grid-row: 3; }
.mv-specialty-card:hover { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 169, 83, .32); }
.mv-specialty-image { position: relative; width: 100%; flex: 1; min-height: 140px; background: #0e0819; }
.mv-specialty-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: grayscale(1); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s ease, filter .3s ease; }
.mv-specialty-card:hover .mv-specialty-image img { transform: scale(1.03); opacity: 0.95; filter: grayscale(0); }
.mv-specialty-number { position: absolute; z-index: 1; top: 9px; left: 9px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: rgba(10, 5, 18, .6); color: rgba(255, 224, 161, .88); font-size: .54rem; font-weight: 700; backdrop-filter: blur(6px); }
.mv-specialty-caption { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 14px; background: rgba(10, 5, 18, 0.4); z-index: 2; border-top: 1px solid rgba(255,255,255,0.05); }
.mv-specialty-caption h3 { margin: 0; color: #f4ecf7; font-size: .74rem; font-weight: 600; }
.mv-specialty-caption p { margin: 3px 0 0; color: #9d8fab; font-size: .62rem; }
.mv-specialty-arrow { color: rgba(255, 187, 113, .5); font-size: .85rem; transition: color .2s ease, translate .2s ease; }
.mv-specialty-card:hover .mv-specialty-arrow { color: #ffbb71; translate: 2px -2px; }

.mv-editor-section { position: relative; padding: clamp(60px, 7vw, 92px) 0; border-top: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(16, 8, 28, .96), rgba(9, 6, 20, .98)); }

/* Editor: controles en un aside y vista previa sticky en desktop. */
.mv-editor-workspace { position: relative; }
.mv-editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(100% - 48px, 1320px); margin: 0 auto 22px; }
.mv-editor-bar h2 { margin: 0; font-family: 'Lobster', 'Poppins', cursive; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.06; }
.mv-editor-bar h2 span { color: #ff9d48; text-shadow: 0 5px 30px rgba(255, 92, 20, .2); }
.mv-session-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(154, 255, 189, .23); border-radius: 99px; padding: 9px 13px; background: rgba(76, 185, 118, .08); color: #b4ffd0; font-size: .58rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.mv-session-badge i { width: 6px; height: 6px; border-radius: 50%; background: #83e9a8; box-shadow: 0 0 10px rgba(131, 233, 168, .7); }

.mv-editor-flow { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'specialty' 'workarea'; gap: 16px; width: min(100% - 48px, 1320px); margin-inline: auto; padding-inline: 0; }
.mv-editor-flow > .cs-specialty { grid-area: auto; }
.mv-editor-workarea { display: grid; grid-template-columns: minmax(420px, 1.06fr) minmax(0, .94fr); grid-template-areas: 'controls output'; align-items: start; gap: 20px; min-width: 0; }
.mv-editor-controls { display: grid; grid-area: controls; align-content: start; gap: 12px; min-width: 0; }
.mv-editor-controls > .control-section,
.mv-editor-controls-pair > .control-section { grid-area: auto; min-width: 0; }
.mv-editor-controls-pair { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: 12px; min-width: 0; }
.mv-editor-output-column { position: sticky; z-index: 2; top: 88px; display: grid; grid-area: output; align-content: start; gap: 12px; min-width: 0; align-self: start; }
.mv-editor-flow .control-section { border: 1px solid var(--mv-line); border-radius: 17px; padding: 17px 19px; background: linear-gradient(150deg, rgba(28, 17, 48, .88), rgba(12, 9, 25, .92)); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.mv-editor-flow .step-heading { margin-bottom: 13px; }
.mv-editor-flow .section-title { color: #f8efff; font-size: .83rem; font-weight: 700; }
.mv-editor-flow .step-num { width: 28px; height: 28px; background: linear-gradient(135deg, #ff9d16, #f3441e); box-shadow: 0 0 18px rgba(255, 107, 38, .19); font-size: .75rem; }
.mv-editor-flow .specialty-bar { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.mv-editor-flow .specialty-card { min-width: 0; }
.mv-editor-flow .specialty-card img { aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; object-fit: cover; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.mv-editor-flow .specialty-card:hover img { transform: translateY(-3px); border-color: rgba(255, 184, 85, .55); }
.mv-editor-flow .specialty-card.active img { border-color: var(--mv-gold); box-shadow: inset 0 0 0 1px var(--mv-gold), 0 8px 22px rgba(247, 201, 72, .2); }
.mv-editor-flow .specialty-card span { overflow: hidden; color: #d8cbe0; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.mv-editor-flow .input-wrapper input[type="text"] { min-height: 46px; border-color: rgba(220, 190, 255, .19); background: rgba(6, 5, 15, .68); font: inherit; font-size: .86rem; }
.mv-editor-flow .input-wrapper input[type="text"]:focus { border-color: #ca91ff; box-shadow: 0 0 0 3px rgba(163, 77, 255, .13); }
.mv-editor-flow .clear-btn { width: 30px; height: 30px; }
.mv-editor-flow .color-palette { display: flex; flex-wrap: wrap; gap: 7px; }
.mv-editor-flow .color-swatch { width: 23px; height: 23px; max-width: 23px; border-radius: 7px; }
.mv-editor-flow .color-swatch.active { box-shadow: inset 0 0 0 1.5px rgba(10, 6, 18, .6), inset 0 0 0 2.5px var(--mv-gold), 0 0 8px rgba(247, 201, 72, .45); }
.mv-editor-flow .custom-color-swatch { min-height: 33px; padding: 3px 9px; font-size: .7rem; border-color: rgba(220, 190, 255, .17); color: #d4c6dd; }
.mv-editor-flow .custom-color-swatch input[type="color"] { width: 20px; height: 20px; }

.mv-editor-flow .preview-section { display: grid; width: 100%; grid-area: auto; place-items: center; border: 1px solid var(--mv-line); border-radius: 20px; padding: clamp(12px, 2vw, 22px); background: radial-gradient(ellipse at 50% 40%, rgba(92, 43, 132, .25), transparent 62%), rgba(7, 6, 17, .76); }
.mv-editor-flow .konva-container { width: min(100%, 720px, calc(100svh - 220px)); max-width: 720px; min-width: 0; border: 1px solid rgba(220, 190, 255, .2); background: #0b0618; box-shadow: 0 22px 55px rgba(0,0,0,.42); }
.mv-editor-flow .konva-placeholder { padding: 18px; color: var(--mv-muted); text-align: center; }

/* Descarga normal en el flujo, debajo de la vista previa. */
.mv-editor-workspace .download-area { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 7px; margin: 0; }
.mv-editor-workspace .btn-download { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border: 0; border-radius: 99px; background: linear-gradient(118deg, #ff9d16, #ff6a00 54%, #f3441e); box-shadow: 0 12px 30px rgba(255, 93, 14, .3); color: #fff; font: inherit; font-size: .88rem; font-weight: 800; letter-spacing: .03em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.mv-editor-workspace .btn-download:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 93, 14, .42); }
.mv-editor-workspace .download-hint { color: #9e91aa; font-size: .65rem; text-align: center; }

@media (max-width: 1099.98px) {
  .mv-editor-workarea { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'controls' 'output'; }
  .mv-editor-output-column { position: static; top: auto; }
}

@media (max-width: 575.98px) {
  .mv-editor-controls-pair { grid-template-columns: minmax(0, 1fr); }
}

.mv-auth-gate { max-width: 800px; margin-inline: auto; border: 1px solid rgba(224, 192, 255, .18); border-radius: 28px; padding: clamp(28px, 6vw, 62px); background: radial-gradient(ellipse at 50% 0, rgba(135, 57, 226, .2), transparent 55%), linear-gradient(145deg, rgba(25, 14, 41, .96), rgba(13, 8, 24, .96)); box-shadow: 0 28px 75px rgba(0,0,0,.34); text-align: center; }
.mv-gate-icon { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 17px; border: 1px solid rgba(255, 209, 102, .35); border-radius: 18px; background: rgba(255, 209, 102, .08); color: var(--mv-gold); font-size: 1.4rem; }
.mv-auth-gate h2 { margin: 4px 0 12px; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.mv-auth-gate > p { max-width: 530px; margin: 0 auto 22px; color: var(--mv-muted); font-size: .85rem; line-height: 1.75; }
.mv-gate-actions { justify-content: center; }

.mv-closing-cta { position: relative; overflow: hidden; padding: clamp(78px, 9vw, 120px) 0; background: radial-gradient(ellipse at 50% 0, rgba(255, 101, 0, .18), transparent 48%), linear-gradient(180deg, rgba(17, 8, 27, .96), rgba(9, 6, 19, .99)); text-align: center; }
.mv-closing-ring { position: absolute; top: -190px; left: 50%; width: min(70vw, 730px); aspect-ratio: 1; border: 1px solid rgba(255, 160, 70, .13); border-radius: 50%; box-shadow: 0 0 85px rgba(130, 52, 220, .1); transform: translateX(-50%); pointer-events: none; }
.mv-closing-content { position: relative; display: grid; justify-items: center; }
.mv-closing-content h2 { margin: 5px 0 25px; font-size: clamp(2.7rem, 6.3vw, 5rem); line-height: 1.03; }

.app-footer { max-width: none; width: min(100% - 48px, 1320px); margin-inline: auto; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 26px 24px 30px; border-color: rgba(223, 203, 255, .12); color: var(--mv-muted); text-align: center; }
.footer-brand { flex-direction: column; gap: 5px; margin-right: 0; }
/* Cierre: logo centrado en columna, como en Mascaritas. */
.footer-logo-img { width: min(205px, 58vw); opacity: .95; }
.footer-spacer { display: none; }
.footer-platform-signoff { justify-content: center; }
.footer-year, .footer-credit a, .footer-platform-link { color: #ffbd78; }
.footer-platform-signoff { border-color: rgba(223, 203, 255, .09); }

@media (max-width: 991.98px) {
  .mv-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 22px; }
  .mv-hero-art { min-height: 400px; }
  .mv-specialty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mv-editor-flow .specialty-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  html { scroll-padding-top: 74px; }
  .mv-container, .app-footer { width: min(100% - 28px, 620px); }
  .dg-app-nav { width: min(100% - 28px, 620px); flex-wrap: wrap; gap: 6px; padding-block: 8px; }
  .dg-app-brand { flex: 0 0 100%; }
  .dg-app-brand img { width: min(165px, 45vw); max-height: 36px; }
  .dg-app-actions { width: 100%; justify-content: flex-end; gap: 4px; }
  .dg-app-link { min-height: 34px; padding: 6px 9px; font-size: .66rem; }
  .dg-app-user { display: none; }
  .mv-premium-hero { min-height: 0; padding: 58px 0 82px; }
  .mv-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .mv-hero-logo { width: min(210px, 56vw); max-height: 76px; margin: 18px 0 12px; }
  .mv-hero-copy h1 { font-size: clamp(3rem, 12.8vw, 4.8rem); }
  .mv-hero-copy > p { max-width: 420px; margin: 17px 0 19px; font-size: .9rem; }
  .mv-hero-actions { gap: 8px; }
  .mv-button { min-height: 45px; padding: 10px 14px; font-size: .7rem; }
  .mv-hero-proof { margin-top: 14px; font-size: .67rem; }
  .mv-hero-art { min-height: clamp(300px, 83vw, 410px); margin: 0 6px; }
  .mv-hero-image { width: min(61%, 300px); border-radius: 21px; }
  .mv-hero-image figcaption { padding: 10px; font-size: .56rem; }
  .mv-hero-float { width: clamp(94px, 27vw, 140px); border-radius: 16px; }
  .mv-hero-float-one { top: 7%; left: 1%; }
  .mv-hero-float-two { right: 1%; bottom: 3%; }
  .mv-hero-stamp { top: 3%; right: 6%; width: 64px; height: 64px; font-size: .47rem; }
  .mv-scroll-cue { bottom: 16px; }
  .mv-specialties-section { padding-block: 59px; }
  .mv-section-heading { margin-bottom: 23px; }
  .mv-section-heading-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mv-section-heading h2 { font-size: 2.55rem; }
  .mv-section-heading-split > p { max-width: 520px; margin: 0; font-size: .8rem; }
  .mv-specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
  .mv-specialty-card:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .mv-specialty-card:nth-child(2), .mv-specialty-card:nth-child(3) { grid-column: auto; grid-row: auto; }
  .mv-specialty-card:nth-child(4) { grid-column: 1 / -1; grid-row: auto; }
  .mv-specialty-card:nth-child(5), .mv-specialty-card:nth-child(6), .mv-specialty-card:nth-child(7) { grid-column: 1 / -1; grid-row: auto; }
  .mv-specialty-card { border-radius: 12px; }
  .mv-specialty-image { min-height: 110px; }
  .mv-specialty-caption { padding: 9px 10px; }
  .mv-specialty-caption h3 { font-size: .67rem; }
  .mv-specialty-caption p { font-size: .56rem; }
  .mv-editor-section { padding-block: 46px; }
  .mv-editor-bar { width: min(100% - 28px, 620px); flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .mv-editor-bar h2 { font-size: 2.05rem; }
  .mv-editor-flow { width: min(100% - 28px, 760px); gap: 10px; }
  .mv-editor-flow .control-section { border-radius: 14px; padding: 13px; }
  .mv-editor-flow .specialty-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .mv-editor-flow .specialty-card span { font-size: .53rem; }
  .mv-editor-flow .preview-section { padding: 9px; border-radius: 15px; }
  .mv-editor-flow .konva-container { width: 100%; }
  .mv-editor-workspace .download-area { width: 100%; align-items: stretch; }
  .mv-editor-workspace .btn-download { width: 100%; min-height: 45px; }
  .mv-auth-gate { border-radius: 22px; padding: 28px 19px; }
  .mv-auth-gate h2 { font-size: 2.7rem; }
  .mv-auth-gate > p { font-size: .78rem; }
  .mv-gate-actions { align-items: stretch; flex-direction: column; }
  .mv-gate-actions .mv-button { width: 100%; }
  .mv-closing-cta { padding-block: 67px; }
  .mv-closing-content h2 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .app-footer { justify-content: center; padding: 18px 0 30px; text-align: center; }
  .footer-brand { margin-right: 0; }
  .footer-spacer { display: none; }
  .footer-platform-signoff { flex: 0 0 100%; }
}

@media (max-width: 380px) {
  .mv-container, .app-footer { width: calc(100% - 22px); }
  .dg-app-nav { width: calc(100% - 22px); }
  .dg-app-link { padding-inline: 7px; font-size: .61rem; }
  .mv-hero-actions .mv-button { padding-inline: 11px; font-size: .64rem; }
  .mv-editor-flow .specialty-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
