/*
 * Updates requested by Giuseppe, 16 November 2026. Loaded last.
 *   1. Premium and library bottles marked in gold wherever a bottle is drawn.
 *   2. The wine card centred (was a bottom sheet), with an award badge; "notify me" on sold-out wines.
 *   3. The experience pop-up (photo, description, what each membership includes).
 *   4. Compare: experiences clickable; the annual membership fee set apart as an ivory band.
 *   5. Sign-up: the adult warning. Experiences: the guest's name only when passing it on.
 * Contrast (by hand): #5c3d00 on the gold tag #f4e2b4 9.6:1 · --cert-ink #34261a on --cert 12.2:1 ·
 * #1d1405 on the gilt cell #e9cf8f 13:1 · --err-ink #ffd8d4 on #2a0d0b 14:1.
 */

/* ---------- 1. Premium bottles ---------- */
.btl-prem { box-shadow: 0 0 0 1.5px #d9b96f, 0 0 14px rgba(232, 200, 120, .45); background: radial-gradient(ellipse at 50% 20%, #fffaf0, #f3e3bb 85%); }
.btl-prem.btl-xs { box-shadow: 0 0 0 1px #d9b96f, 0 0 6px rgba(232, 200, 120, .5); }
.btl-lib { box-shadow: 0 0 0 1.5px #c0473a, 0 0 0 3px #f3e3bb, 0 0 14px rgba(224, 90, 74, .35); }

.prem-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font: 700 10.5px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: #5c3d00;
  background: linear-gradient(180deg, #fbefcc, #f0d897); box-shadow: inset 0 0 0 1px #c9a24f; }
.prem-gem { width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #fff6d8, #b8862c); box-shadow: 0 0 0 1px #8a6420; }
.prem-tag-lib { color: #6e1a12; background: linear-gradient(180deg, #fde7df, #f2c3b6); box-shadow: inset 0 0 0 1px #c0473a; }
.prem-tag-lib .prem-gem { background: linear-gradient(135deg, #ffd9cf, #a5281c); box-shadow: 0 0 0 1px #7a1a10; }

.tile.tile-prem { background: radial-gradient(ellipse at 0% 0%, #fffaf0, #f6ead0 70%); box-shadow: inset 0 0 0 1.5px #c9a24f, inset 0 0 0 4px #fbf3df, inset 0 0 0 5px rgba(201, 162, 79, .45), 0 10px 30px -14px rgba(201, 162, 79, .55); }
.tile.tile-lib { box-shadow: inset 0 0 0 1.5px #c0473a, inset 0 0 0 4px #fbf3df, inset 0 0 0 5px rgba(192, 71, 58, .4), 0 10px 30px -14px rgba(192, 71, 58, .45); }
.tile.tile-prem.is-in { box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 5px #fbf3df, inset 0 0 0 6px #c9a24f, 0 8px 30px rgba(210, 0, 0, .14); }
.tile.tile-prem.is-out { background: var(--paper-2); }
.tile-prem .tile-script { color: #6b4a10; }

/* ---------- 2. The wine card, centred ---------- */
dialog.wsheet { inset: 0; margin: auto; width: calc(100% - 32px); max-width: 600px; height: fit-content; max-height: 90vh; max-height: 90dvh; overscroll-behavior: contain; }
dialog.wsheet::backdrop, dialog.xsheet::backdrop { overflow: hidden; overscroll-behavior: contain; }
.wsheet-in { max-height: 90vh; max-height: 90dvh; border-radius: 20px; padding: 26px 20px 24px; overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(200, 169, 106, .6); animation: cardIn .4s var(--ease-out) both; }
.wsheet-prem .wsheet-in { box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1.5px #c9a24f, inset 0 0 0 5px #fffaf0, inset 0 0 0 6px rgba(201, 162, 79, .5); }
.wsheet-grip { display: none; }
.wsheet-top { margin-bottom: 16px; }
.wsheet-id .prem-tag { margin-bottom: 6px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (min-width: 700px) { .wsheet-in { padding: 32px 34px 30px; } }

.award { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 14px 10px 10px; border-radius: 14px; background: linear-gradient(135deg, #fbf1d6, #f1dca6); box-shadow: inset 0 0 0 1px #c9a24f; }
.award-medal { flex: none; width: 40px; height: 48px; }
.award-ribbon { fill: #8e1f25; }
.award-disc { fill: #d9b96f; stroke: #8a6420; stroke-width: 1.2; }
.award-ring { fill: none; stroke: #fff3cf; stroke-width: 1; stroke-dasharray: 2 2; }
.award-star { fill: #fff8e2; stroke: #8a6420; stroke-width: .6; }
.award-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.award-k { font: 700 10.5px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #6b4a10; }
.award-n { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; color: #2a1c05; }
.award-more { font-size: 12.5px; color: #5c4a2a; }

.wsheet-out { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px #d8cfb8; }
.wsheet-out > p { margin: 0 0 6px; color: #8a0000; }

/* Notify me when back in stock */
.notify { margin-top: 8px; }
.notify-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid #8a7550; background: transparent; color: var(--paper-ink); font: 600 13px/1.2 var(--font-ui); cursor: pointer; text-align: left; }
.notify-btn .ico { width: 17px; height: 17px; flex: none; }
.notify-btn:hover { background: rgba(0, 0, 0, .05); }
.notify-btn[aria-pressed="true"] { border-color: #2f6b4f; color: #1f4d37; background: rgba(47, 107, 79, .1); }
.notify-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.notify-s { margin: 6px 2px 0; font-size: 12.5px; line-height: 1.4; color: #1f4d37; }
.tile .notify { grid-column: auto; }

/* ---------- 3. The experience pop-up ---------- */
dialog.xsheet { inset: 0; margin: auto; width: calc(100% - 32px); max-width: 560px; height: fit-content; max-height: 92vh; max-height: 92dvh; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; overscroll-behavior: contain; }
dialog.xsheet::backdrop { background: rgba(5, 4, 3, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.xsheet-in { position: relative; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; background: #12100d; box-shadow: 0 0 0 1px var(--gold-line), 0 40px 90px rgba(0, 0, 0, .7); animation: cardIn .4s var(--ease-out) both; }
.xsheet-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px 20px 0 0; }
.xsheet-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xsheet-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, #12100d 100%); }
.xsheet-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(10, 9, 8, .7); color: var(--ink); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.xsheet-x:hover { background: rgba(10, 9, 8, .9); }
.xsheet-body { padding: 4px 22px 22px; }
.xsheet-k { margin: 0 0 4px; font: 700 11px/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.xsheet-h { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.15; color: #f6efdf; }
.xsheet-d { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.xsheet-tier { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: rgba(227, 201, 143, .07); box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--leaf); font-size: 15px; }
.xsheet-tn { display: block; margin-bottom: 2px; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-2); }
.xsheet-all { margin: 0 0 10px; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.xsheet-all div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 10px; padding: 10px 14px; background: rgba(255, 255, 255, .025); }
.xsheet-all dt { font-family: var(--font-display); font-style: italic; color: var(--ink-2); }
.xsheet-all dd { margin: 0; color: var(--leaf); font-size: 14.5px; }
.xsheet-all .is-none dd { color: var(--ink-3); }
.xsheet-s { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.xsheet-cta { margin-top: 14px; }
.xsheet-note { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
@media (min-width: 700px) { .xsheet-body { padding: 6px 30px 28px; } }

/* ---------- 4. Compare ---------- */
.cmp2-xp { display: inline; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.cmp2-xp:hover { color: var(--gold-hi); text-decoration-style: solid; }
.cmp2-cell.t-eredita .cmp2-xp:hover { color: #fff3cf; }
.cmp2-xplabel { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.cmp2-xplabel .ico { flex: none; width: 17px; height: 17px; color: var(--gold); }
.cmp2-xplabel:hover { color: var(--gold-hi); }
.cmp2-xp:focus-visible, .cmp2-xplabel:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

/* The annual membership fee: an ivory band, like the certificate, so it reads apart from the benefits. */
.cmp2-sec.is-fee { margin: 26px 0 6px; padding: 6px 4px 12px; border-radius: 16px; color: var(--cert-ink);
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .55), transparent 60%), var(--cert);
  box-shadow: inset 0 0 0 1px #b9a06a, inset 0 0 0 5px var(--cert), inset 0 0 0 6px rgba(185, 160, 106, .6), 0 24px 50px -28px rgba(0, 0, 0, .9); }
.cmp2-sec.is-fee .cmp2-seclabel { padding-top: 16px; font-style: normal; font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cert-red); }
.cmp2-sec.is-fee .cmp2-cell { color: var(--cert-ink); background: none; box-shadow: none; padding-top: 8px; padding-bottom: 8px; border-top: 0; }
.cmp2-sec.is-fee .cmp2-fee .num { color: var(--cert-ink); }
.cmp2-sec.is-fee .cmp2-fee .per { color: var(--cert-ink-2); }
.cmp2-sec.is-fee .cmp2-cell.t-eredita { color: #1d1405; border-radius: 12px; background: linear-gradient(180deg, #f6e2a8, #e2c37e); box-shadow: inset 0 0 0 1px #a8813a; }
.cmp2-sec.is-fee .cmp2-cell.t-eredita .cmp2-fee .num, .cmp2-sec.is-fee .cmp2-cell.t-eredita .cmp2-fee .per { color: #1d1405; }
.cmp2-sec.is-fee + .cmp2-choose .cmp2-cell { padding-top: 16px; }
@media (min-width: 760px) {
  .cmp2-sec.is-fee { padding: 10px 8px; }
  .cmp2-sec.is-fee .cmp2-seclabel { grid-column: auto; padding: 18px 10px 18px 14px; font-size: 13px; }
  .cmp2-sec.is-fee .cmp2-cell { padding: 16px 8px; }
  .cmp2-sec.is-fee .cmp2-fee .num { font-size: 2.3rem; }
}

/* ---------- Tier pages: each scene opens its pop-up ---------- */
.scene-open { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.scene-open-l { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 10px; border-radius: 999px;
  font: 600 12.5px/1 var(--font-ui); letter-spacing: .04em; color: #f6efdf; background: rgba(10, 9, 8, .62); box-shadow: inset 0 0 0 1px rgba(227, 201, 143, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s; }
.scene-open-l .ico { width: 16px; height: 16px; color: var(--leaf); }
.scene-open:hover .scene-open-l { background: rgba(10, 9, 8, .85); }
.scene-open:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -4px; }
.tc-eredita .scene-open-l { top: auto; bottom: auto; top: 26%; right: 50%; transform: translateX(50%); }
.scene-cap { pointer-events: none; }

/* ---------- Member Experiences ---------- */
.xp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.xp-acts .xp-btn { margin-top: 0; }
.xp-about { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: #f6efdf; font: 500 14px/1.2 var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.xp-about .ico { width: 18px; height: 18px; color: var(--leaf); }
.xp-about:hover { color: var(--gold-hi); }
.gname-wrap { margin-bottom: 4px; }
.gname-wrap:not([hidden]) { animation: dFade .25s ease-out both; }

/* ---------- 5. The adult warning ---------- */
.age-warn { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 16px; padding: 14px 16px; border-radius: 14px; background: #2a0d0b; box-shadow: inset 0 0 0 1px rgba(255, 123, 114, .65); color: #ffd8d4; }
.age-warn[hidden] { display: none; }
.age-badge { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font: 700 1.05rem/1 var(--font-display); color: #fff; background: #b3140f; box-shadow: 0 0 0 2px #2a0d0b, 0 0 0 3px rgba(255, 123, 114, .7); }
.age-t p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.age-t p:last-child { margin-bottom: 0; color: #f3bdb6; }
.age-t strong { color: #fff; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .wsheet-in, .xsheet-in { animation: dFade .2s ease-out both; }
  .gname-wrap:not([hidden]) { animation: none; }
}

/* ---------- Spacing fixes found in the review (16 Nov 2026) ---------- */
/* Phone: the "Compare" tab was an empty underline (its label was hidden with the tier names). */
.selbar-nav li:not(:last-child) .sb-name.sb-keep { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
/* Phone: a 16px gutter on the compare page (text touched the 10px edge). */
.cmp-wrap { padding-left: 16px; padding-right: 16px; }
@media (min-width: 760px) { .cmp-wrap { padding-left: 24px; padding-right: 24px; } }
/* The "Not ready to choose?" line had no style: its rule is in experience.css, which index.html doesn't load. */
.fin-exit { text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin: 6px auto 0; max-width: 560px; }
.fin-exit a { margin-left: 4px; }
/* Request form: the two date fields overflowed the panel on phones. Grid children may shrink; stacked under 480px. */
.row2 > .fl { min-width: 0; }
.fl-in[type="date"] { min-width: 0; width: 100%; }
@media (max-width: 479px) { .xp-form .row2 { grid-template-columns: 1fr; gap: 0; } }
/* Experience cards: text stays readable over bright photographs (the harvest sky). */
.xp::after { background: linear-gradient(180deg, rgba(6, 5, 4, .05) 18%, rgba(6, 5, 4, .6) 48%, rgba(6, 5, 4, .94) 74%); }
/* Prototype notes on the member pages ran to the screen edge: keep the page gutter. */
.demo.home-notes, .demo.box-notes { width: auto; margin-left: 16px; margin-right: 16px; }
@media (min-width: 1148px) { .demo.home-notes, .demo.box-notes { margin-left: auto; margin-right: auto; } }
/* Inbox on phones: a long one-line preview (nowrap) made its grid row 562px wide on a 390px screen, the
   page zoomed out to fit and the fixed bottom menu fell below the screen. Rows may now shrink, so the
   preview is cut with an ellipsis as intended. */
.envs > li, .env { min-width: 0; }

/* ---------- Member header on phones: logo and monogram only (16 Nov 2026) ----------
   Under 1000px the EN/IT pill and the profile link give way to one monogram button that opens a menu:
   the member, Your profile, Language, Log out. Desktop (side rail) keeps EN/IT and the link. */
.hdr-desk { display: none; align-items: center; gap: 10px; }
.umenu { position: relative; }
.umenu-btn { border: 0; cursor: pointer; font: inherit; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.umenu-btn[aria-expanded="true"] { color: #1a1300; background: linear-gradient(180deg, #f2dca2, #c8a96a); }
.umenu-list { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; width: min(260px, calc(100vw - 32px)); padding: 8px; border-radius: 16px;
  background: #15120f; box-shadow: 0 0 0 1px var(--gold-line), 0 24px 50px rgba(0, 0, 0, .7); animation: cardIn .22s var(--ease-out) both; }
.umenu-list[hidden] { display: none; }
.umenu-who { display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.umenu-n { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.umenu-t { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--leaf); }
.umenu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 15px/1.2 var(--font-ui); text-decoration: none; text-align: left; cursor: pointer; }
.umenu-item .ico { width: 20px; height: 20px; color: var(--leaf); flex: none; }
.umenu-item:hover, .umenu-item[aria-current="page"] { background: rgba(227, 201, 143, .08); color: var(--ink); }
.umenu-item:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -2px; }
.umenu-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; }
.umenu-lbl { font: 500 15px/1.2 var(--font-ui); color: var(--ink-2); }
@media (min-width: 1000px) {
  .hdr-desk { display: inline-flex; }
  .umenu { display: none; }
}
@media (prefers-reduced-motion: reduce) { .umenu-list { animation: none; } }

/* ======================================================================
   The celebration after payment, on phones and slower (16 Nov 2026)
   1. Centred: the flash (70vmax) was wider than a phone, which widened the stage's grid track and
      pushed the certificate and glasses ~100px to the right. The flash is now taken out of the grid
      and centred on its own; the stage is fixed to the screen so it centres on what the member sees.
   2. Slower, about 12 s instead of 4.1 s (finale.js CELE_MS), each moment on its own with a caption,
      and the welcome held ~3 s before the doors close. A-80 item 9 said "about 4 s": to be recorded.
   ====================================================================== */
.cele { --T: 12s; }
.cele-stage { position: fixed; inset: 0; z-index: 1; grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; }
.cele-flash { position: absolute; left: 50%; top: 50%; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; }
.cele-cert { width: min(calc(100vw - 48px), 360px); justify-self: center; }
.cele-glasses { justify-self: center; }
.cele-cap { align-self: center; justify-self: center; margin: 0; padding: 0 24px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 5vw, 1.6rem); color: var(--leaf); opacity: 0; }
.cele-cap-1 { transform: translateY(calc(min(calc(100vw - 48px), 360px) * .62 + 8px)); }
.cele-cap-2 { transform: translateY(118px); }
@media (min-width: 1000px) { .cele-cap-2 { transform: translateY(150px); } }
.cele-welcome { padding: 0 8px; }

.cele.is-play:not(.is-run) .cele-cap { opacity: 0; }
.cele.is-run .cele-cert { animation-name: cele2Cert; }
.cele.is-run .cert-wax { animation-name: cele2Wax; }
.cele.is-run .cele-gl { animation-name: cele2GL; }
.cele.is-run .cele-gr { animation-name: cele2GR; }
.cele.is-run .cele-flash { animation-name: cele2Flash; }
.cele.is-run .cele-welcome { animation-name: cele2Welcome; }
.cele.is-run .cele-doors .cd-l { animation-name: cele2DoorL; }
.cele.is-run .cele-doors .cd-r { animation-name: cele2DoorR; }
.cele.is-run .cele-cap-1 { animation: cele2Cap1 var(--T) both; }
.cele.is-run .cele-cap-2 { animation: cele2Cap2 var(--T) both; }
.cele.is-run .leaves i { animation-delay: calc(5.7s + var(--dl)); }

/* percentages of 12 s */
@keyframes cele2Cert {
  0% { opacity: 0; transform: translateY(40px) scale(.94); animation-timing-function: var(--ease-out); }
  6.7% { opacity: 1; transform: none; }
  30% { opacity: 1; transform: none; animation-timing-function: ease-in; }
  35.8%, 100% { opacity: 0; transform: translateY(-24px) scale(.86); }
}
@keyframes cele2Wax {
  0%, 8.3% { opacity: 0; transform: scale(1.9) rotate(-20deg); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  15% { opacity: 1; transform: scale(.92) rotate(3deg); }
  17.5%, 100% { opacity: 1; transform: none; }
}
@keyframes cele2Cap1 { 0%, 16.7% { opacity: 0; } 20.8%, 28.3% { opacity: 1; } 31.7%, 100% { opacity: 0; } }
@keyframes cele2GL {
  0%, 35.8% { opacity: 0; transform: translateX(-46vw) rotate(-10deg); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  38.3% { opacity: 1; }
  46.7% { opacity: 1; transform: translateX(2px) rotate(4deg); }
  48.3% { transform: translateX(-2px) rotate(2deg); }
  50% { transform: translateX(1px) rotate(4deg); }
  58.3% { opacity: 1; transform: translateX(1px) rotate(4deg); }
  61.7%, 100% { opacity: 0; transform: translateX(1px) rotate(4deg); }
}
@keyframes cele2GR {
  0%, 35.8% { opacity: 0; transform: translateX(46vw) rotate(10deg); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  38.3% { opacity: 1; }
  46.7% { opacity: 1; transform: translateX(-2px) rotate(-4deg); }
  48.3% { transform: translateX(2px) rotate(-2deg); }
  50% { transform: translateX(-1px) rotate(-4deg); }
  58.3% { opacity: 1; transform: translateX(-1px) rotate(-4deg); }
  61.7%, 100% { opacity: 0; transform: translateX(-1px) rotate(-4deg); }
}
@keyframes cele2Cap2 { 0%, 48% { opacity: 0; } 51%, 58.3% { opacity: 1; } 61.7%, 100% { opacity: 0; } }
@keyframes cele2Flash {
  0%, 46.5% { opacity: 0; transform: scale(.3); }
  48.5% { opacity: 1; transform: scale(.9); }
  60%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes cele2Welcome {
  0%, 61.7% { opacity: 0; transform: translateY(18px); animation-timing-function: var(--ease-out); }
  68.3%, 100% { opacity: 1; transform: none; }
}
@keyframes cele2DoorL { 0%, 91.7% { transform: translateX(-101%); animation-timing-function: cubic-bezier(.6, 0, .3, 1); } 100% { transform: translateX(0); } }
@keyframes cele2DoorR { 0%, 91.7% { transform: translateX(101%); animation-timing-function: cubic-bezier(.6, 0, .3, 1); } 100% { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .cele.is-run .cele-cert { animation-name: rm2CeleCert; }
  .cele.is-run .cert-wax { animation-name: rm2CeleWax; }
  .cele.is-run .cele-gl, .cele.is-run .cele-gr { animation-name: rm2CeleGlass; }
  .cele.is-run .cele-flash { animation: none; opacity: 0; }
  .cele.is-run .cele-welcome { animation-name: rm2CeleWelcome; }
  .cele.is-run .leaves i { animation: none; opacity: 0; }
}
@keyframes rm2CeleCert { 0% { opacity: 0; } 6.7%, 30% { opacity: 1; } 35.8%, 100% { opacity: 0; } }
@keyframes rm2CeleWax { 0%, 8.3% { opacity: 0; } 15%, 100% { opacity: 1; } }
@keyframes rm2CeleGlass { 0%, 35.8% { opacity: 0; } 40%, 58.3% { opacity: 1; } 61.7%, 100% { opacity: 0; } }
@keyframes rm2CeleWelcome { 0%, 61.7% { opacity: 0; } 68.3%, 100% { opacity: 1; } }

/* ---------- The original crest for logged-in members (16 Nov 2026) ----------
   White on transparent: sits straight on the dark header, rail, reveal and membership card. */
.logo-crest { display: inline-flex; line-height: 0; }
.logo-crest .logo { display: block; height: auto; max-width: none; mix-blend-mode: normal; } /* .logo multiplies (for the ivory plate); the crest must not, or it darkens on dark grounds */
.logo-crest-sm .logo { width: 92px; }
.logo-crest-md .logo { width: min(200px, 56vw); }
.mz-hdr .hdr-logo .logo-crest .logo { width: 96px; }
@media (min-width: 1000px) { .mz-hdr .hdr-logo .logo-crest .logo { width: 150px; } }
.hdr-logo:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
.reveal .logo-crest { animation: crestGlow .9s var(--ease-out) both; }
@keyframes crestGlow { 0% { filter: drop-shadow(0 0 0 rgba(255, 220, 160, 0)); } 50% { filter: drop-shadow(0 0 22px rgba(255, 220, 160, .55)); } 100% { filter: drop-shadow(0 0 0 rgba(255, 220, 160, 0)); } }
.mcard-top .logo-crest .logo { width: 84px; }
@media (prefers-reduced-motion: reduce) { .reveal .logo-crest { animation: none; } }
