/* Rose card (core/opening/290, fork of core/opening/180), INV-29 Midnight Serenade · Luxe (A3046, W1.1 A3053; plan docs/plans/plan_inv29_w1_build.md,
   row 1 and W1.1 item 4): a still opener. The whole screen is the night with a few soft stars; in its middle a card of the same smoked glass as the
   page (the skin's .k-ms-card: rim, inner hairline, top corners). The couple's photo (hero_photo, the way 180_lights_up printed it) fills its top 64 %
   behind glass (the mount's reflection over it) and fades into the card's black with the hero's mask; the skin's rose on sheet music stands in when
   there is no photo. Under it "You are invited", the names in gilt on one line, the heart join and a glass pill "Tap to open". The whole screen is the
   tap target (the fork's gate, kept). W1 tap: the fork's gate, the opener fades to the hero. The motion is the opener's own round.
   W1.3 (A3064): on a laptop or desktop the card is landscape, about 80 % of the screen (see the last media rule). */
.op290 {
  position: fixed; inset: 0; z-index: 100; overflow: hidden; touch-action: none; overscroll-behavior: contain; color: var(--k-ms-ivory, #EEE6DA); background: var(--k-ms-night-0, #000000);
  display: grid; place-items: center;
  --op290-w: min(86vw, 380px, calc((100svh - 48px) * 5 / 7.6));
}
.op290 .op290__sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 54.6% 35.2%, rgb(246 235 221 / .71) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 39.7%, rgb(246 235 221 / .26) 0 1px, transparent 1.8px),
    radial-gradient(circle at 44.7% 23.6%, rgb(246 235 221 / .44) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 60.3% 42.3%, rgb(255 255 255 / .65) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 23.1% 77.3%, rgb(255 255 255 / .62) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 54.2% 42.6%, rgb(255 255 255 / .4) 0 1px, transparent 1.8px),
    radial-gradient(circle at 94% 47.4%, rgb(255 255 255 / .33) 0 1px, transparent 1.8px),
    radial-gradient(circle at 58.4% 63.9%, rgb(255 255 255 / .47) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 87.9% 72.2%, rgb(246 235 221 / .74) 0 1px, transparent 1.8px),
    radial-gradient(circle at 68.1% 79%, rgb(246 235 221 / .55) 0 1px, transparent 1.8px),
    radial-gradient(circle at 64.9% 46.8%, rgb(246 235 221 / .76) 0 1px, transparent 1.8px),
    radial-gradient(circle at 86% 69.1%, rgb(255 255 255 / .78) 0 1px, transparent 1.8px),
    radial-gradient(circle at 3.5% 74.5%, rgb(255 255 255 / .47) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 15% 16.5%, rgb(255 255 255 / .75) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74.9% 31.6%, rgb(255 255 255 / .25) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 93.1% 51.4%, rgb(255 255 255 / .25) 0 1px, transparent 1.8px),
    radial-gradient(circle at 37.5% 8.3%, rgb(246 235 221 / .65) 0 1px, transparent 1.8px),
    radial-gradient(circle at 14.2% 12.8%, rgb(255 255 255 / .34) 0 1px, transparent 1.8px),
    radial-gradient(circle at 38.3% 23.4%, rgb(246 235 221 / .36) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 34% 86.6%, rgb(246 235 221 / .67) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 69.7% 26.2%, rgb(255 255 255 / .38) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 7.3% 32.9%, rgb(246 235 221 / .41) 0 1px, transparent 1.8px),
    radial-gradient(circle at 66.7% 43.7%, rgb(255 255 255 / .46) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 4.6% 33.2%, rgb(246 235 221 / .33) 0 1px, transparent 1.8px),
    radial-gradient(circle at 47.2% 64%, rgb(246 235 221 / .8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 47.6% 6.3%, rgb(246 235 221 / .71) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 90.4% 18.7%, rgb(246 235 221 / .61) 0 1px, transparent 1.8px),
    radial-gradient(circle at 5% 63.3%, rgb(255 255 255 / .28) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 71.7% 68.4%, rgb(246 235 221 / .28) 0 1px, transparent 1.8px),
    radial-gradient(circle at 23% 20.3%, rgb(255 255 255 / .72) 0 1px, transparent 1.8px);
}
/* the card: the page's own glass, small */
.op290 .op290__card { position: relative; z-index: 1; width: var(--op290-w); aspect-ratio: 5 / 7.6; }
.op290 .op290__corner { width: 56px; height: 56px; }
.op290 .op290__art { position: absolute; left: 0; right: 0; top: 0; height: 64%; }
/* the photo sits behind glass: the mount's reflection (.k-ms-mount::after) over it, faded with the photo (no frame line: the photo has no edge) */
.op290 .op290__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .06) 20%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(125deg, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .07) 64%, rgba(255, 255, 255, 0) 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}
.op290 .op290__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 54% 36%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%), radial-gradient(130% 90% at 50% 30%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%), radial-gradient(130% 90% at 50% 30%, #000 60%, transparent 100%);
}
.op290 .op290__say { position: absolute; left: 0; right: 0; top: 52%; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2.4svh, 16px); padding: 0 20px 7%; }
/* one line: 40 px on a phone card, scaled with the card; a long pair shrinks to fit (name_len) */
.op290 .op290__names { max-width: 100%; font-size: min(calc(var(--op290-w) / 9), calc((var(--op290-w) - 48px) / (var(--op290-len) * 1.12 + 1.3))); }
.op290 .op290__cue { margin-top: 4px; }
.op290 .op290__tap { position: absolute; inset: 0; z-index: 4; min-height: 0; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; }
/* A2b (A3069, B64): a focus ring on any skin (the opening check's garden runs have no --k-ms-* tokens); the skin's own ring, offset kept */
.op290 .op290__tap:focus-visible { outline: 2px solid var(--k-ms-champ-2, #E5C7AB); outline-offset: -6px; }
@media (min-width: 760px) { .op290 { --op290-w: min(460px, calc((100svh - 48px) * 5 / 7.6)); } }
/* W1.3 (A3064; owner 2026-11-09: "The Opener shoud be like 80% on the Desktop before tap"): on a laptop or desktop the card is about 80 % of the
   screen each way, so it turns landscape. The couple's photo stands in the left part at the card's full height and melts into the card's black
   on its right and lower edges (the photo's own ground is black, so there is no seam); the words stand centred in the right part, larger.
   Phone and tablet keep the portrait card above. */
@media (min-width: 1100px) and (min-aspect-ratio: 1 / 1) {
  .op290 { --op290-w: min(80vw, 1640px); --op290-h: min(80svh, 1100px); --op290-cw: calc(var(--op290-w) * .44); --op290-pad: clamp(24px, 2.4vw, 44px); }
  .op290 .op290__card { height: var(--op290-h); aspect-ratio: auto; border-radius: 28px; }
  .op290 .op290__card::after { inset: 9px; border-radius: 20px; }
  .op290 .op290__corner { width: 84px; height: 84px; }
  .op290 .op290__art { right: auto; width: 58%; height: 100%; }
  .op290 .op290__img, .op290 .op290__art::after {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 74%, transparent 100%), linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    mask-image: linear-gradient(90deg, #000 0%, #000 74%, transparent 100%), linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  }
  .op290 .op290__say { left: 56%; top: 0; gap: clamp(14px, 2.6svh, 26px); padding: 0 var(--op290-pad); }
  .op290 .op290__inv { font-size: 13px; }
  /* the names fill the words column on one line: its width less both paddings (and the phone rule's 8 px of slack) */
  .op290 .op290__names { font-size: min(116px, calc(var(--op290-cw) / 6.6), calc((var(--op290-cw) - 2 * var(--op290-pad) - 8px) / (var(--op290-len) * 1.12 + 1.3))); }
  .op290 .op290__cue { margin-top: 10px; padding: 14px 28px; font-size: 12px; }
}

/* The tap (the fork's gate): the opener fades and the hero is there underneath. */
.op290.is-opening { pointer-events: none; animation: op290-gone .9s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes op290-gone { to { opacity: 0; } }
html.motion-reduce .op290.is-opening { animation: op290-gone .4s ease forwards; }
/* A2b (A3069, B42): Reduce Motion both ways, the class and the media query */
@media (prefers-reduced-motion: reduce) { html .op290.is-opening { animation: op290-gone .4s ease forwards; } }
