/* Black Friday (shared/black-friday.js). Only exists while the sale window in
   tiers.js is open. Owner, 2026-11-19, after reviewing Black Friday 2025 on
   Headspace, Gymshark, Rosetta Stone, Oura, Busuu, MasterClass: the hero
   headline itself becomes the deal, in Lsany's own colours (the "like a
   local." orange), with the live clock in a plain line above it. No bar above
   the nav, no black chips or pills, no black sections, the hero art untouched. */

:root {
  --bf-hot: #CF3F0B;              /* the sale's orange-red: readable on cream */
  --bf-was: rgba(43, 21, 0, .45); /* struck old prices */
}

/* ---------- 1. the sale line above a headline ---------- */
/* "BLACK" white on black, "FRIDAY" black on white, joined into one lockup
   (owner, 2026-11-19: the red "Black Friday sale" label looked horrible). */
:root { --bf-black: #0E0B08; --bf-paper: #FFFDF8; }
.bf-kick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px;
  font: 500 17px/1.3 var(--f-body); color: var(--ink-soft);
}
.bf-lock {
  display: inline-flex; align-items: stretch; flex: none;
  border: 2px solid var(--bf-black); border-radius: 6px; overflow: hidden;
  box-shadow: 3px 3px 0 var(--bf-black);
  font: 800 18px/1 var(--f-disp); letter-spacing: -.01em; text-transform: uppercase;
}
.bf-lock-b, .bf-lock-f { display: block; padding: 7px 10px 6px; }
.bf-lock-b { background: var(--bf-black); color: var(--bf-paper); }
.bf-lock-f { background: var(--bf-paper); color: var(--bf-black); }
/* National Day (owner, 2026-12-01; the green badge was rejected): set like the
   logo, "National Day" in Unbounded ink with "اليوم الوطني" in the logo's
   amber Arabic, then a hairline and plain words. */
/* UAE colours as type, not as a flag (owner, 2026-12-01): "National Day" in
   red, the Arabic in green, one black hand-drawn underline under both (drawn
   once, like the "Not a textbook" strike), on the page's cream. */
:root { --nd-green: #00843D; --nd-red: #E1252F; }
/* The whole label in one white pill (owner, 2026-12-01), ringed in the flag
   colours: red, green, black around the white. A frame, not a drawn flag. */
.nd-name { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; white-space: nowrap; padding: 7px 19px 7px 17px; border-radius: 999px; border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #EF3340 0%, #EF3340 27%, #00A651 35%, #00A651 63%, #111111 71%, #111111 100%) border-box; box-shadow: 0 8px 22px -8px rgba(43, 21, 0, .3); }
.nd-flag { font: 400 28px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.nd-tl { font: 800 22px/1.1 var(--f-disp); letter-spacing: -.02em; color: var(--ink); }
.nd-ar { display: inline-block; font: 700 27px/1.15 var(--f-ar); color: #B8860B; background: linear-gradient(180deg, #E2AE1C 0%, #B07A00 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nd-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.nd-swash { display: none; position: absolute; left: -1%; bottom: 0; width: 102%; height: 10px; color: #141414; overflow: visible; }
.nd-swash path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: ndSwash .7s cubic-bezier(.22, .8, .26, 1) .5s forwards; }
@keyframes ndSwash { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .nd-swash path { animation: none; stroke-dashoffset: 0; } }
.nd-name + .bf-kick-rest { align-self: center; padding-left: 16px; border-left: 2px solid rgba(43, 21, 0, .16); line-height: 1.15; }
.bf-kick-rest .bf-kick-date, .bf-kick-left [data-bf-left] { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.bf-kick--center { justify-content: center; margin: 0 auto 18px; }
.bf-kick--center .bf-kick-rest { color: var(--ink); font-weight: 600; }

/* the old hero headline, one size down, under the deal */
.not-tb.bf-sub { margin-top: -4px; }

/* "From AED 799 AED 559" under the hero buttons */
.bf-from { font: 500 15px/1.5 var(--f-body); color: var(--ink-soft); }
.home-hero .bf-from { margin: 18px 0 0; }
.bf-from .bf-nw, .bf-was-row s, .bf-from s, .bf-from b { white-space: nowrap; }
.bf-from s.bf-was { margin: 0 .3em; }
.bf-from b { color: var(--ink); font-weight: 800; }
.bf-from-sep { display: inline-block; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; }

/* ---------- 2. the countdown under the shop headings (owner, 2026-11-28) ---------- */
/* Owner picked from five "just numbers" looks: "35h 17m 25s", the numbers in
   the display face, small unit letters beside them, the seconds in the sale
   orange with a soft drop as each one goes. No tiles, no boxes, no colons
   (he called the tiles ugly and the old white day tiles not urgent). */
.pick-head:has(.bf-urge) { display: flex; flex-direction: column; align-items: center; }
.bf-kick-when { color: var(--ink); font-weight: 700; }
.bf-urge { margin: 26px auto 6px; text-align: center; }
.bf-urge-when { margin: 0 0 10px; font: 700 17px/1.3 var(--f-body); color: var(--bf-hot); }
.bf-timer { display: flex; justify-content: center; align-items: baseline; gap: 14px; margin: 0 auto; }
.bf-t b { display: flex; align-items: baseline; overflow: hidden; color: var(--ink); font: 800 42px/1.05 var(--f-disp); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.bf-t b i { display: block; font-style: normal; }
.bf-t b em { margin-left: 2px; font: 700 19px/1 var(--f-body); font-style: normal; letter-spacing: 0; color: var(--ink-soft); }
.bf-t-s b, .bf-t-s b em { color: var(--bf-hot); }
.bf-t-s b i { min-width: 1.2em; text-align: left; }
.bf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bf-urge-then { margin: 12px 0 0; font: 500 16px/1.4 var(--f-body); color: var(--ink-soft); }
.bf-urge-then b { color: var(--ink); font-weight: 800; white-space: nowrap; }
@keyframes bfTick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.bf-t b i.bf-tick { animation: bfTick .4s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .bf-t b i.bf-tick { animation: none; } }


/* ---------- hero clock (owner, 2026-11-28): the plans clock, smaller, beside the lockup (owner picked 1 of 3 placements) ---------- */
.bf-hclock { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.bf-hclock-in { font: 600 17px/1 var(--f-body); color: var(--ink-soft); margin-right: 2px; }
.bf-hclock .bf-t b { font-size: 24px; letter-spacing: -.04em; }
.bf-hclock .bf-t b em { font-size: 13px; }
@media (max-width: 760px) {
  .bf-hclock-in { font-size: 15px; }
  .bf-hclock .bf-t b { font-size: 21px; }
}

/* ---------- 3. prices ---------- */
/* plan cards: "AED 1199  30% off" on one line, right above AED 839 */
.bf-pc { flex-wrap: wrap; row-gap: 8px; }
.bf-was-row { display: flex; align-items: baseline; gap: 12px; flex-basis: 100%; }
s.bf-old {
  font: 700 clamp(22px, 2.1vw, 28px)/1 var(--f-disp); letter-spacing: -.04em; color: var(--bf-was);
  text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--bf-hot);
  white-space: nowrap;
}
.bf-off { font: 800 17px/1 var(--f-disp); letter-spacing: -.02em; color: var(--bf-hot); white-space: nowrap; }
/* /ebooks + product pages */
.bf-price { flex-wrap: wrap; column-gap: 12px; }
.bf-price s.bf-old { font-size: clamp(20px, 1.9vw, 26px); }
.bf-price > small { flex-basis: 100%; }

/* small price spots (homepage book chips, split buttons, buy bar, summaries) */
s.bf-was { margin-right: .4em; font-weight: 600; color: var(--bf-was); text-decoration-thickness: 2px; text-decoration-color: var(--bf-hot); }

.bf-final-note { margin: -4px 0 18px; font: 500 15px/1.4 var(--f-body); }
.bf-final-note b { color: var(--bf-hot); font-weight: 800; }

/* the phone price bar on /courses/: plain words, not the typewriter caps */
.cs-sticky small.bf-sticky-note { font: 700 13px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; }
/* ---------- phones ---------- */
@media (max-width: 760px) {
  .bf-kick { font-size: 15px; gap: 8px 12px; margin-bottom: 16px; }
  .bf-lock { font-size: 15px; box-shadow: 2px 2px 0 var(--bf-black); }
  .bf-lock-b, .bf-lock-f { padding: 6px 8px 5px; }
  /* Scales with the screen so the pill never runs past the edge (it was ~405px
     on a 390px phone). Full size from ~450px up. */
  .nd-tl { font-size: min(18px, calc((100vw - 84px) * .049)); }
  .nd-ar { font-size: min(23px, calc((100vw - 84px) * .063)); }
  .nd-name { gap: 9px; padding: 6px 14px 6px 13px; border-width: 2.5px; }
  .nd-flag { font-size: min(23px, calc((100vw - 84px) * .063)); }
  .bf-kick:has(.nd-name) { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bf-kick--center:has(.nd-name) { align-items: center; }
  .nd-name + .bf-kick-rest { align-self: auto; padding-left: 0; border-left: 0; }
  .bf-until { display: none; }
  .bf-timer { gap: 10px; }
  .bf-t b { font-size: 36px; }
  .bf-t b em { font-size: 16px; }
  .bf-urge { margin-top: 22px; }
  .bf-urge-then { font-size: 15px; }
  .bf-from { font-size: 14px; }
  .bf-from .bf-nw { display: block; }
  .bf-from-sep { display: none; }
}

/* ---------- checkout (courses/checkout.js adds .co-bf-tag) ---------- */
.co-bf-tag { display: block; margin-top: 6px; font: 700 13px/1.3 var(--f-body); color: var(--bf-hot); text-align: inherit; }
.co-bf-tag[hidden] { display: none; }
/* National Day (owner, 2026-12-01): the hero pill beside the percentage, not
   plain text, plus a short greeting card above "What you get today". */
.co-bf-tag.co-nd { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.co-bf-tag .nd-name { gap: 8px; padding: 4px 12px 4px 11px; border-width: 2.5px; }
.co-bf-tag .nd-tl { font-size: 13px; }
.co-bf-tag .nd-flag { font-size: 17px; }
.co-bf-tag .nd-ar { font-size: 16px; }
.co-bf-tag .co-nd-pct { font: 800 15px/1 var(--f-disp); letter-spacing: -.01em; color: var(--bf-hot); white-space: nowrap; }
.co-nd-note { position: relative; margin: 18px 0 20px; padding: 16px 18px 15px; border-radius: 18px; border: 2px solid transparent;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF6E4 100%) padding-box,
    linear-gradient(90deg, #EF3340 0%, #EF3340 27%, #00A651 35%, #00A651 63%, #111111 71%, #111111 100%) border-box;
  box-shadow: 0 10px 26px -14px rgba(43, 21, 0, .35); }
.co-nd-note[hidden] { display: none; }
/* Phone and tablet: the pill and greeting get a full-width row under the
   picture and price (moved there by checkout.js). */
.co-nd-row { grid-column: 1 / -1; display: grid; gap: 12px; margin: 4px 0 2px; min-width: 0; }
.co-nd-row[hidden] { display: none; }
.co-nd-row .co-bf-tag.co-nd { margin-top: 0; justify-content: flex-start; }
.co-nd-row .co-nd-note { margin: 0; }
.co-mobile-included .co-nd-note { margin: 14px 0 4px; }
.co-nd-row .co-nd-pct { display: none; }
.co-nd-pct-out { margin-top: 3px; font: 800 14px/1 var(--f-disp); letter-spacing: -.01em; color: var(--bf-hot); white-space: nowrap; }
@media (max-width: 380px) {
  .co-nd-row .co-bf-tag .nd-name { gap: 6px; padding: 4px 9px; border-width: 2.5px; }
  .co-nd-row .co-bf-tag .nd-tl { font-size: 11px; }
  .co-nd-row .co-bf-tag .nd-flag { font-size: 14px; }
  .co-nd-row .co-bf-tag .nd-ar { font-size: 13.5px; }
}
.co-nd-ar { margin: 0; text-align: -webkit-match-parent; text-align: match-parent; font: 700 24px/1.25 var(--f-ar); color: #B8860B; background: linear-gradient(180deg, #E2AE1C 0%, #B07A00 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.co-nd-tl { margin: 2px 0 8px; font: 600 13px/1.3 var(--f-body); color: var(--ink-soft, #7A6048); }
.co-nd-msg { margin: 0; font: 500 14.5px/1.5 var(--f-body); color: var(--ink, #2B1500); }
.co-nd-sign { display: block; margin-top: 6px; font-weight: 700; }
@media (max-width: 760px) {
  .co-bf-tag.co-nd { justify-content: flex-start; }
  .co-nd-note { margin: 14px 0 16px; padding: 14px 15px 13px; }
  .co-nd-ar { font-size: 22px; }
}


/* ---------- upgrade cards (owner, 2026-11-22) ---------- */
/* My Account, the welcome page, the reader and the e-book Suite: the lockup,
   then one price line, "Max is AED 800 AED 560 for you." The numbers come from
   the server quote (shared/course-upsell.js saleLine), never from the page. */
.bf-up {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0;
  font: 500 15px/1.4 var(--f-body, inherit); color: var(--ink, inherit); text-align: left;
}
.bf-up .bf-lock { font-size: 13px; border-width: 2px; box-shadow: 2px 2px 0 var(--bf-black); }
.bf-up .bf-lock-b, .bf-up .bf-lock-f { padding: 5px 7px 4px; }
.bf-up .nd-tl { font-size: 15px; }
.bf-up .nd-ar { font-size: 19px; }
.bf-up .nd-name { gap: 8px; padding: 4px 11px; border-width: 2px; }
.bf-up .nd-flag { font-size: 18px; }
.bf-up .nd-swash { height: 7px; }
.bf-up s {
  margin-right: .15em; font-weight: 600; color: var(--bf-was); white-space: nowrap;
  text-decoration-thickness: 2px; text-decoration-color: var(--bf-hot);
}
.bf-up b { font-weight: 800; white-space: nowrap; }
.bf-up--center { justify-content: center; text-align: center; }

/* "every e-book." on the /ebooks hero (black-friday.js): the word never breaks
   at its hyphen, and on phones the line shrinks only as much as it must to stay
   on one line (its width is about 7.9 times its font size; 32px of side gutter). */
.hero-title .bf-nw { white-space: nowrap; }
@media (max-width: 760px) {
  .hero-title .bf-fit { display: inline-block; font-size: min(1em, calc((100vw - 32px) / 7.95)); }
}


/* Plan cards: the "20% off" tag in the hero label's flag-ringed white pill
   (owner, 2026-12-01: plans need National Day too, but no confetti there). */
html.bf-on .bf-was-row { align-items: center; }
html.bf-on .bf-off { padding: 5px 11px 4px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #EF3340 0%, #EF3340 27%, #00A651 35%, #00A651 63%, #111111 71%, #111111 100%) border-box; color: var(--ink); font-size: 14px; box-shadow: 0 4px 12px -6px rgba(43, 21, 0, .3); }

/* Hero pill only: a liquid-glass finish on the flag ring (owner, 2026-12-01:
   "a little bit of a shimmer like Apple's liquid glass... not too over the
   top"). Layers, top to bottom: the white glass face (padding-box), a soft
   light streak that sweeps the ring once every 5s, a glossy top-lit sheen on
   the ring, then the red-green-black ring itself. */
.hero-copy .nd-name, .co-bf-tag .nd-name {
  border-width: 3.5px;
  background:
    linear-gradient(180deg, #fff 0%, #fff 55%, #FBF7EF 100%) padding-box,
    linear-gradient(105deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .55) 47.5%, #fff 50%, rgba(255, 255, 255, .55) 52.5%, rgba(255, 255, 255, 0) 56%) border-box,
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .04) 100%) border-box,
    linear-gradient(90deg, #EF3340 0%, #EF3340 27%, #00A651 35%, #00A651 63%, #111111 71%, #111111 100%) border-box;
  background-size: 100% 100%, 320% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 95% 0, 0 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -2px 4px rgba(43, 21, 0, .05), 0 1px 2px rgba(43, 21, 0, .08), 0 10px 26px -10px rgba(43, 21, 0, .34);
  animation: nd-glass 5s cubic-bezier(.45, 0, .25, 1) 1.2s infinite;
}
@keyframes nd-glass {
  0% { background-position: 0 0, 95% 0, 0 0, 0 0; }
  34% { background-position: 0 0, 5% 0, 0 0, 0 0; }
  100% { background-position: 0 0, 5% 0, 0 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-copy .nd-name, .co-bf-tag .nd-name { animation: none; } }
@media (max-width: 760px) { .hero-copy .nd-name { border-width: 2.5px; } }

/* Hero deal line ("20% off", "Up to 30% off") in the flag colours during
   National Day (owner, 2026-12-01, preview): red into green into black. */
.hero-title .grad.nd-grad {
  display: inline-block;
  /* Top layer: a white glint that sweeps the letters once every 5s, in step
     with the pill's shimmer. Under it: red into green into black. */
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(90deg, #EF3340 0%, #EF3340 30%, #00A651 44%, #00A651 64%, #111111 80%, #111111 100%);
  background-size: 320% 100%, 100% 100%;
  background-position: 95% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #00A651;
  animation: nd-deal-glint 5s cubic-bezier(.45, 0, .25, 1) 1.2s infinite;
}
@keyframes nd-deal-glint {
  0% { background-position: 95% 0, 0 0; }
  34% { background-position: 5% 0, 0 0; }
  100% { background-position: 5% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-title .grad.nd-grad { animation: none; } }
/* The deal line ("Up to 30% off", "20% off") never breaks: on phones under
   ~400px and wide desktops "off" fell onto its own line and restarted red.
   It keeps the headline size wherever it fits and only shrinks as much as it
   needs to (the phrase is ~8.4x its font size wide). */
.hero-title:has(.nd-grad) { container-type: inline-size; }
.hero-title .grad.nd-grad {
  white-space: nowrap;
  font-size: min(1em, calc((100vw - 32px) / var(--nd-fit, 8.6)));
  font-size: min(1em, calc(100cqw / var(--nd-fit, 8.6)));
}

/* Hero pill opens the note from Lsany (owner, 2026-12-01). */
.nd-name.nd-tap { cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); -webkit-tap-highlight-color: transparent; }
.nd-name.nd-tap:hover { transform: translateY(-2px) scale(1.02); }
.nd-name.nd-tap:active { transform: scale(.97); }
.nd-name.nd-tap:focus-visible { outline: 3px solid var(--sea, #1C8FE0); outline-offset: 4px; }
html.nd-pop-lock, html.nd-pop-lock body { overflow: hidden; }
/* The pop-up is a note from us: cream paper, a 🇦🇪 ❤️ seal on top,
   handwritten sign-off (Caveat, already on the site for the
   course tests), and the button under the note, not on it. */
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat-latin-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
.nd-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(43, 21, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease; }
.nd-pop[hidden] { display: none; }
.nd-pop.is-open { background: rgba(43, 21, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nd-pop-wrap { width: min(400px, 100%); display: grid; gap: 26px; outline: none; }
.nd-letter { position: relative; padding: 46px 30px 26px; border-radius: 6px 6px 6px 6px;
  background: linear-gradient(180deg, #FFFEF8 0%, #FFF8E8 100%);
  border: 1px solid rgba(43, 21, 0, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(43, 21, 0, .08), 0 26px 60px -18px rgba(43, 21, 0, .55);
  color: var(--ink, #2B1500);
  opacity: 0; transform: translateY(22px) scale(.95);
  transition: opacity .3s ease, transform .55s cubic-bezier(.34, 1.45, .64, 1); }
.nd-pop.is-open .nd-letter { opacity: 1; transform: none; }
.nd-seal { position: absolute; top: 0; left: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border-radius: 999px; border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #EF3340 0%, #EF3340 27%, #00A651 35%, #00A651 63%, #111111 71%, #111111 100%) border-box;
  box-shadow: 0 8px 18px -8px rgba(43, 21, 0, .45);
  font: 400 26px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  transform: translate(-50%, -55%) scale(.6); opacity: 0;
  transition: transform .5s cubic-bezier(.34, 1.8, .64, 1) .18s, opacity .2s ease .18s; }
.nd-seal i { font-style: normal; }
.nd-pop.is-open .nd-seal { transform: translate(-50%, -55%); opacity: 1; }
.nd-letter-ar { margin: 0; text-align: center; white-space: nowrap; font: 700 30px/1.25 var(--f-ar); color: #B8860B;
  background: linear-gradient(180deg, #E2AE1C 0%, #B07A00 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nd-letter-tl { margin: 4px 0 18px; text-align: center; font: 600 13.5px/1.3 var(--f-body); color: var(--ink-soft, #7A6048); }
.nd-letter-msg { margin: 0; font: 500 16.5px/1.55 var(--f-body); color: var(--ink, #2B1500); }
.nd-letter-gift { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(180deg, #FFF1C9 0%, #FFE7A8 100%); box-shadow: inset 0 0 0 1px rgba(214, 150, 0, .25);
  font: 600 13.5px/1.4 var(--f-body); color: var(--ink, #2B1500); }
.nd-letter-gift b { font-weight: 800; color: var(--bf-hot, #D9480F); white-space: nowrap; }
.nd-letter-gift .nd-nw { white-space: nowrap; }
.nd-gift-ico { flex: none; font: 400 16px/1.25 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.nd-letter-sign { margin: 18px 0 0; text-align: right; font: 700 27px/1.05 "Caveat", "Bradley Hand", "Segoe Print", cursive; color: var(--ink, #2B1500); }
.nd-pop .nd-pop-cta { display: flex; width: 100%; justify-content: center; opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease .12s, transform .4s cubic-bezier(.34, 1.4, .64, 1) .12s, box-shadow .2s, filter .2s; }
.nd-pop.is-open .nd-pop-cta { opacity: 1; transform: none; }
.nd-pop.is-open .nd-pop-cta:hover { transform: translateY(-2px); }
.nd-pop-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft, #7A6048); font: 400 26px/1 var(--f-body, sans-serif); cursor: pointer; }
.nd-pop-x:hover { background: rgba(43, 21, 0, .06); color: var(--ink, #2B1500); }
.nd-pop-x:focus-visible { outline: 3px solid var(--sea, #1C8FE0); outline-offset: 2px; }
@media (max-width: 760px) {
  .nd-letter { padding: 44px 22px 22px; }
  .nd-letter-ar { font-size: 27px; }
  .nd-letter-msg { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .nd-pop, .nd-letter, .nd-seal, .nd-pop .nd-pop-cta, .nd-name.nd-tap { transition: none; }
  .nd-name.nd-tap:hover { transform: none; }
}
