/* MGC Bridge - Members: premium digital card + birthday greetings.
   Navy/gold to match the rest of the site, self-hosted fonts, no third-party calls. */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/poppins-latin-800.woff2') format('woff2');
}

.mg {
  --navy: #0a2150; --deep: #06142f; --blue: #1b4bb8; --royal: #274bc0;
  --gold: #f5b301; --gold2: #ffd96a; --gold3: #b9891d;
  --ink: #14213d; --mute: #566586; --line: #d9e2f3; --sky: #eef3fc;
  --ease: cubic-bezier(.2,.7,.2,1);
  margin-bottom: -4rem;
  font-family: Inter, Calibri, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(52rem 26rem at 88% -8%, rgba(27,75,184,.10), transparent 62%),
    radial-gradient(42rem 22rem at 4% 12%, rgba(245,179,1,.10), transparent 60%),
    linear-gradient(170deg, #f4f7fd 0, #eaf0fa 60%, #f7f9fd 100%);
  overflow-x: clip;
}
.mg *, .mg *::before, .mg *::after { box-sizing: border-box; }
.mg-wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.mg h1, .mg h2, .mg h3 { font-family: Poppins, Inter, Calibri, sans-serif; letter-spacing: -.02em; margin: 0; }
.mg p { margin: 0; }
.mg-main { padding: 2.3rem 0 5rem; position: relative; z-index: 1; }
.mg .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.mg-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(3.2rem, 5vw, 4.2rem);
  background:
    radial-gradient(48rem 26rem at 84% -16%, rgba(88,132,240,.45), transparent 62%),
    radial-gradient(30rem 18rem at 6% 118%, rgba(245,179,1,.20), transparent 65%),
    linear-gradient(135deg, var(--deep), var(--navy) 62%, var(--blue));
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold2), transparent) 1;
}
.mg-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 120% at 82% 0, #000, transparent 75%);
  mask-image: radial-gradient(80% 120% at 82% 0, #000, transparent 75%);
}
.mg-hero .mg-wrap { position: relative; z-index: 2; }
.mg-hero .mg-wrap > * { animation: mg-rise .7s var(--ease) both; }
.mg-hero .mg-wrap > *:nth-child(2) { animation-delay: .06s; }
.mg-hero .mg-wrap > *:nth-child(3) { animation-delay: .12s; }
.mg-hero .mg-wrap > *:nth-child(4) { animation-delay: .18s; }
.mg-eyebrow { margin: 0 0 .6rem; font: 700 .72rem/1 Inter, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--gold2); }
.mg-hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.12; font-weight: 700; max-width: 24ch; text-shadow: 0 2px 20px rgba(0,0,0,.28); }
.mg-hero h1 span { color: var(--gold2); }
.mg-lede { margin: .9rem 0 0; max-width: 58ch; color: #dbe6ff; font-size: .98rem; line-height: 1.6; }
.mg-today { margin: 1.1rem 0 0; display: inline-block; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,217,106,.35); border-radius: 100px; padding: .4rem .85rem; }
.mg-suit { position: absolute; font-family: Georgia, serif; color: rgba(255,255,255,.06); line-height: 1; pointer-events: none; }
.mg-suit--a { font-size: 15rem; top: -4rem; right: 4%; transform: rotate(-14deg); }
.mg-suit--b { font-size: 9rem; bottom: -3rem; left: 3%; transform: rotate(12deg); color: rgba(245,179,1,.08); }
.mg-suit--c { font-size: 6rem; top: 40%; right: 32%; transform: rotate(8deg); }
.mg-suit--d { font-size: 5rem; bottom: 8%; right: 16%; transform: rotate(-8deg); }

/* ---------- Lookup ---------- */
.mg-lookup {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.2rem, 2.5vw, 1.8rem); margin-top: -2rem; position: relative; z-index: 3;
  box-shadow: 0 18px 48px rgba(10,33,80,.12);
}
.mg-lookup h2 { font-size: 1.05rem; color: var(--navy); }
.mg-form { margin-top: 1rem; }
.mg-field label { display: block; font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: .45rem; }
.mg-field-row { display: flex; gap: .6rem; align-items: stretch; }
.mg-field-ico {
  flex: 0 0 auto; width: 46px; display: grid; place-items: center;
  color: var(--blue); background: var(--sky); border: 1px solid var(--line); border-radius: 11px;
}
.mg-field input {
  flex: 1 1 auto; min-width: 0; font: 600 1rem/1 Inter, sans-serif; color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px; padding: 0 .95rem; height: 46px;
  background: #fbfcff; transition: border-color .2s, box-shadow .2s;
}
.mg-field input::placeholder { color: #9aa8c2; font-weight: 400; }
.mg-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,75,184,.14); }
.mg-field small { display: block; color: var(--mute); font-size: .76rem; margin-top: .5rem; }
.mg-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 46px; padding: 0 1.2rem; border: 0; border-radius: 11px; cursor: pointer;
  font: 700 .9rem/1 Poppins, sans-serif; color: #261a00;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 8px 20px rgba(245,179,1,.35); transition: transform .2s var(--ease), box-shadow .2s;
}
.mg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,179,1,.45); }
.mg-btn:active { transform: translateY(0); }
.mg-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Alert ---------- */
.mg-alert {
  display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.4rem;
  background: #fff6f6; border: 1px solid #f3c9cf; border-left: 4px solid #b8324a;
  border-radius: 14px; padding: 1rem 1.15rem; color: #6d2331;
}
.mg-alert-ico { color: #b8324a; flex: 0 0 auto; }
.mg-alert b { font-family: Poppins, sans-serif; }
.mg-alert p { font-size: .88rem; margin-top: .2rem; line-height: 1.5; }

/* ---------- The card ---------- */
.mg-card {
  position: relative; overflow: hidden; margin-top: 1.8rem;
  border-radius: 22px; color: #fff; isolation: isolate;
  background:
    radial-gradient(38rem 20rem at 92% -20%, rgba(88,132,240,.42), transparent 60%),
    radial-gradient(26rem 16rem at 0% 120%, rgba(245,179,1,.22), transparent 62%),
    linear-gradient(130deg, #08183d, #0d2a6b 55%, #16379a);
  border: 1px solid rgba(255,217,106,.3);
  box-shadow: 0 26px 60px rgba(8,24,61,.34), inset 0 0 0 1px rgba(255,255,255,.05);
  animation: mg-rise .6s var(--ease) both;
}
.mg-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.045' font-size='18' font-family='serif'%3E%3Ctext x='8' y='24'%3E%26%232660%3B%3C/text%3E%3Ctext x='62' y='62'%3E%26%232665%3B%3C/text%3E%3Ctext x='20' y='102'%3E%26%232666%3B%3C/text%3E%3C/g%3E%3C/svg%3E");
}
.mg-card-shine {
  position: absolute; top: -60%; left: -40%; width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.11) 45%, rgba(255,217,106,.18) 52%, transparent 60%);
  transform: rotate(18deg); pointer-events: none;
  animation: mg-shine 6s ease-in-out infinite;
}
.mg-card-top, .mg-card-body, .mg-card-foot { position: relative; z-index: 1; }
.mg-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mg-card-brand { display: flex; align-items: center; gap: .85rem; }
.mg-card-brand img {
  width: 56px; height: 56px; object-fit: contain; border-radius: 12px;
  background: #fff; padding: 5px; box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.mg-card-brand strong { display: block; font-family: Poppins, sans-serif; font-size: .95rem; color: #fff; }
.mg-card-brand span { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); margin-top: .15rem; }
.mg-verified {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  font: 700 .7rem/1 Inter, sans-serif; letter-spacing: .03em; color: #0c2a12;
  background: linear-gradient(135deg, #d8f3d2, #a8e0a0); border-radius: 100px; padding: .5rem .75rem;
}
.mg-card-body { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem); padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.2rem, 3vw, 2rem); }
.mg-photo {
  flex: 0 0 132px; width: 132px; height: 132px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,217,106,.6); box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.mg-photo img { width: 100%; height: 100%; object-fit: cover; }
.mg-photo > span:first-child { font: 700 2.4rem/1 Poppins, sans-serif; color: var(--gold2); }
.mg-identity { min-width: 0; flex: 1 1 auto; }
.mg-card-label { font: 700 .68rem/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); }
.mg-identity h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; color: #fff; margin: .4rem 0 .2rem; line-height: 1.2; }
.mg-card-sub { color: #c3d4f7; font-size: .85rem; }
.mg-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem 1.4rem;
  margin: 1.35rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.13);
}
.mg-details dt { font: 700 .65rem/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8fa8d8; }
.mg-details dd { margin: .4rem 0 0; font-size: .96rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.mg-details dd.mg-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; }
.mg-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(90deg, rgba(245,179,1,.16), rgba(255,255,255,.03));
  border-top: 1px solid rgba(255,217,106,.25); font-size: .72rem; color: #dce7ff;
}
.mg-card-suits { color: var(--gold2); letter-spacing: .3em; font-size: .95rem; }
.mg-card-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; }
.mg-btn--ghost {
  background: #fff; color: var(--navy); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(10,33,80,.08);
}
.mg-btn--ghost:hover { box-shadow: 0 10px 24px rgba(10,33,80,.14); }
.mg-inline-link { color: var(--blue); font-weight: 600; font-size: .86rem; text-decoration: none; }
.mg-inline-link:hover { text-decoration: underline; }

/* Placeholder card shown before a lookup */
.mg-empty-card {
  margin-top: 1.8rem; min-height: 200px; border-radius: 20px;
  border: 1.5px dashed #b9c8e2; background: rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
  color: var(--mute); font-weight: 600;
}
.mg-empty-logo { background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 6px 18px rgba(10,33,80,.1); display: grid; place-items: center; }
.mg-empty-lines { display: grid; gap: .5rem; width: min(220px, 40vw); }
.mg-empty-lines i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #e3eaf7, #f2f5fb); }
.mg-empty-lines i:nth-child(2) { width: 70%; }
.mg-empty-lines i:nth-child(3) { width: 45%; }

/* ---------- Birthday greetings ---------- */
.mg-hero--bday { padding-bottom: clamp(3.4rem, 5.5vw, 4.6rem); }
.mg-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mg-confetti i {
  position: absolute; top: -12%; width: 8px; height: 14px; border-radius: 2px; opacity: .75;
  animation: mg-fall linear infinite;
}
.mg-confetti i:nth-child(1) { left: 6%; background: var(--gold2); animation-duration: 7s; animation-delay: 0s; }
.mg-confetti i:nth-child(2) { left: 15%; background: #7ea6ff; animation-duration: 9s; animation-delay: 1.5s; }
.mg-confetti i:nth-child(3) { left: 26%; background: #ff9db0; animation-duration: 8s; animation-delay: .6s; }
.mg-confetti i:nth-child(4) { left: 38%; background: var(--gold); animation-duration: 10s; animation-delay: 2.2s; }
.mg-confetti i:nth-child(5) { left: 49%; background: #8fe0c0; animation-duration: 7.5s; animation-delay: 1s; }
.mg-confetti i:nth-child(6) { left: 60%; background: #ffd96a; animation-duration: 9.5s; animation-delay: 3s; }
.mg-confetti i:nth-child(7) { left: 71%; background: #9fb8ff; animation-duration: 8.5s; animation-delay: .3s; }
.mg-confetti i:nth-child(8) { left: 82%; background: #ff9db0; animation-duration: 7.8s; animation-delay: 2.7s; }
.mg-confetti i:nth-child(9) { left: 92%; background: var(--gold2); animation-duration: 9.2s; animation-delay: 1.8s; }
.mg-confetti i:nth-child(10) { left: 33%; background: #8fe0c0; animation-duration: 11s; animation-delay: 4s; }
.mg-confetti i:nth-child(11) { left: 66%; background: #ffd96a; animation-duration: 10.5s; animation-delay: 3.6s; }
.mg-confetti i:nth-child(12) { left: 55%; background: #7ea6ff; animation-duration: 8.2s; animation-delay: 5s; }
.mg-cake { position: absolute; right: 7%; bottom: 1.5rem; width: 130px; height: 120px; z-index: 1; pointer-events: none; opacity: .92; }
.mg-cake-flame { position: absolute; left: 58px; top: 2px; width: 14px; height: 24px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #fff3b0, var(--gold) 60%, #e07b00); filter: drop-shadow(0 0 10px rgba(245,179,1,.8)); animation: mg-flicker 1.6s ease-in-out infinite alternate; }
.mg-cake-top { position: absolute; left: 30px; top: 26px; width: 70px; height: 20px; background: linear-gradient(#fff, #ffe9a8); border-radius: 50%; box-shadow: 0 3px 0 #e9c86a; }
.mg-cake-body { position: absolute; left: 30px; top: 38px; width: 70px; height: 56px; background: repeating-linear-gradient(180deg, #ffd98a 0 14px, #fff3cf 14px 28px); border-radius: 0 0 10px 10px; box-shadow: inset 0 -6px 0 rgba(185,137,29,.25); }
.mg-cake-plate { position: absolute; left: 18px; bottom: 8px; width: 94px; height: 12px; background: linear-gradient(90deg, #cfe0ff, #fff, #cfe0ff); border-radius: 50%; }

.mg-wish {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  margin-top: 1.8rem; position: relative; z-index: 1;
  padding: clamp(1.2rem, 2.6vw, 1.8rem); border-radius: 18px;
  color: #fff; background: linear-gradient(120deg, #7a2e7d, #b8324a 55%, #d98b1f);
  border: 1px solid rgba(255,217,106,.45); box-shadow: 0 18px 44px rgba(120,40,90,.28);
}
.mg-wish-badge { font-size: 2.1rem; line-height: 1; }
.mg-wish .mg-eyebrow { color: #ffe6a4; }
.mg-wish h2 { font-size: clamp(1.2rem, 2.8vw, 1.75rem); margin: .15rem 0 .35rem; }
.mg-wish p:last-child { color: #ffe9ef; font-size: .9rem; line-height: 1.55; max-width: 72ch; }

.mg-notice {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 2rem); margin-top: 1.8rem; box-shadow: 0 14px 36px rgba(10,33,80,.08);
}
.mg-notice > span { font-size: 2.4rem; line-height: 1; }
.mg-notice h2 { color: var(--navy); font-size: 1.2rem; }
.mg-notice p { color: var(--mute); font-size: .9rem; line-height: 1.6; margin-top: .4rem; }

.mg-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 1.1rem; }
.mg-section-head h2 { color: var(--navy); font-size: clamp(1.25rem, 2.6vw, 1.65rem); }
.mg-section-head .mg-eyebrow { color: var(--gold3); }
.mg-count { font: 600 .76rem/1 Inter, sans-serif; color: var(--mute); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .45rem .8rem; white-space: nowrap; }

.mg-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.mg-person {
  display: flex; align-items: center; gap: .9rem; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
  box-shadow: 0 8px 22px rgba(10,33,80,.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.mg-person:hover { transform: translateY(-4px); border-color: rgba(245,179,1,.6); box-shadow: 0 16px 32px rgba(10,33,80,.13); }
.mg-avatar {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font: 700 .9rem/1 Poppins, sans-serif; color: var(--navy);
  background: linear-gradient(135deg, #fff3cf, #dbe7ff); border: 1px solid rgba(245,179,1,.4);
}
.mg-person-info { min-width: 0; flex: 1 1 auto; }
.mg-person-info h3 { font-size: .93rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-person-info p { font-size: .76rem; color: var(--mute); margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-when { flex: 0 0 auto; text-align: center; line-height: 1; }
.mg-when b { display: block; font: 700 1.35rem/1 Poppins, sans-serif; color: var(--blue); }
.mg-when span { display: block; font: 700 .66rem/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold3); margin-top: .25rem; }
.mg-when small { display: block; font-size: .65rem; color: var(--mute); margin-top: .35rem; white-space: nowrap; }

.mg-links { margin-top: 2rem; }
.mg-privacy { display: flex; align-items: center; gap: .5rem; margin-top: 1.6rem; color: var(--mute); font-size: .76rem; line-height: 1.5; }
.mg-privacy svg { flex: 0 0 auto; }

/* ---------- Greeting card studio ---------- */
.mg-greet {
  display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1.4rem; align-items: center;
  margin-top: 1.8rem;
}
.mg-greet-stage { min-width: 0; }
.mg-gcard {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 9; min-height: 250px;
  display: flex; flex-direction: column;
  padding: clamp(1rem, 2.6vw, 1.9rem);
  color: #fff; border-radius: 18px;
  background:
    radial-gradient(34rem 20rem at 92% -12%, rgba(88,132,240,.5), transparent 62%),
    radial-gradient(22rem 16rem at 4% 120%, rgba(245,179,1,.22), transparent 64%),
    linear-gradient(130deg, #06142f, #0a2150 55%, #1b4bb8);
  border: 1px solid rgba(255,217,106,.45);
  box-shadow: 0 22px 52px rgba(8,24,61,.28), inset 0 0 0 1px rgba(255,255,255,.05);
}
.mg-gcard::before {
  content: ""; position: absolute; inset: 10px; z-index: -1; pointer-events: none;
  border: 1px solid rgba(255,255,255,.1); border-radius: 11px;
}
.mg-gcard::after {
  content: "♠  ♥  ♦  ♣"; position: absolute; right: 5%; bottom: 16%; z-index: -1;
  font: 700 clamp(2rem, 6vw, 4.5rem)/1 Georgia, serif; letter-spacing: .1em;
  color: rgba(255,255,255,.055); white-space: nowrap; pointer-events: none;
}
.mg-gcard-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.mg-gcard-logo {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.mg-gcard-logo img { width: 100%; height: 100%; object-fit: contain; }
.mg-gcard-brand b { display: block; font: 700 .85rem/1.2 Poppins, sans-serif; color: #fff; }
.mg-gcard-brand small { display: block; margin-top: .2rem; font: 600 .59rem/1.3 Inter, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--gold2); }
.mg-gcard-suits { margin-left: auto; color: rgba(255,217,106,.75); letter-spacing: .25em; font-size: .8rem; }
.mg-gcard-body { margin-top: auto; position: relative; z-index: 1; }
.mg-gcard-eyebrow { font: 700 .62rem/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); }
.mg-gcard h2 { font-size: clamp(1.05rem, 3.1vw, 2.05rem); line-height: 1.1; font-weight: 700; color: #fff; margin: .35rem 0 .25rem; }
.mg-gcard-name { font: 700 clamp(.85rem, 2.3vw, 1.45rem)/1.2 Poppins, sans-serif; color: var(--gold2); overflow-wrap: anywhere; }
.mg-gcard-sub { margin-top: .3rem; font-size: clamp(.68rem, 1.6vw, .88rem); line-height: 1.4; color: #dbe6ff; }
.mg-gcard-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-top: .85rem; padding-top: .6rem; border-top: 1px solid rgba(255,217,106,.3);
  font: 600 .61rem/1.2 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #c3d4f7;
}
.mg-greet-side {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem; box-shadow: 0 14px 36px rgba(10,33,80,.09);
}
.mg-greet-side .mg-eyebrow { color: var(--gold3); margin-bottom: .5rem; }
.mg-greet-side h3 { color: var(--navy); font-size: 1.1rem; }
.mg-greet-side > p:not(.mg-eyebrow):not(.mg-greet-hint) { color: var(--mute); font-size: .82rem; line-height: 1.55; margin-top: .55rem; }
.mg-greet-side .mg-btn { width: 100%; margin-top: 1rem; }
.mg-greet-hint { font-size: .68rem; line-height: 1.5; color: var(--mute); margin-top: .7rem; }
.mg-person { flex-wrap: wrap; }
.mg-person-make {
  flex: 1 1 100%; margin-top: .25rem; padding: .45rem .8rem; cursor: pointer;
  font: 700 .7rem/1 Inter, sans-serif; color: var(--navy);
  background: #fff8e6; border: 1px solid rgba(245,179,1,.6); border-radius: 8px;
  transition: background-color .2s, border-color .2s;
}
.mg-person-make:hover { background: #ffefc2; border-color: var(--gold); }
.mg-person-make:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Animation ---------- */
@keyframes mg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mg-shine { 0%, 55% { transform: translateX(0) rotate(18deg); } 85%, 100% { transform: translateX(320%) rotate(18deg); } }
@keyframes mg-fall { to { transform: translateY(115vh) rotate(540deg); } }
@keyframes mg-flicker { from { transform: scale(.9) rotate(-4deg); opacity: .85; } to { transform: scale(1.1) rotate(4deg); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mg-greet { grid-template-columns: 1fr; align-items: stretch; }
  .mg-greet-side { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem 1rem; }
  .mg-greet-side .mg-eyebrow, .mg-greet-side h3, .mg-greet-side > p:not(.mg-eyebrow):not(.mg-greet-hint), .mg-greet-hint { grid-column: 1; }
  .mg-greet-side .mg-btn { grid-column: 2; grid-row: 1 / span 3; width: auto; margin: 0; }
}
@media (max-width: 640px) {
  .mg-wrap { width: min(100% - 1.6rem, 70rem); }
  .mg-field-row { flex-wrap: wrap; }
  .mg-field-ico { width: 44px; height: 44px; }
  .mg-field input { flex: 1 1 calc(100% - 52px); }
  .mg-btn { width: 100%; }
  .mg-card-body { flex-direction: column; align-items: flex-start; }
  .mg-photo { flex-basis: 112px; width: 112px; height: 112px; }
  .mg-suit--a { font-size: 10rem; right: -8%; }
  .mg-cake { transform: scale(.72); transform-origin: bottom right; right: 2%; }
  .mg-people { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .mg-card-brand img { width: 44px; height: 44px; }
  .mg-verified { width: 100%; justify-content: center; }
  .mg-details { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mg *, .mg *::before, .mg *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mg-confetti { display: none; }
}

/* ---------- Print: a clean card on paper ---------- */
@media print {
  .no-print, .mg-hero, .mg-lookup, .mg-alert, .mg-privacy, .mg-links { display: none !important; }
  .mg { background: #fff; margin: 0; }
  .mg-wrap { width: 100%; }
  .mg-main { padding: 0; }
  .mg-card, .mg-gcard { box-shadow: none; border: 1px solid #0a2150; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mg-gcard { aspect-ratio: auto; min-height: 0; }
}
