/* ==========================================================================
   Build your bundle (/build-your-bundle) — public/js/bundle-builder.js
   ========================================================================== */
.bld-nav .ms { color: var(--gold); }
.bld-hero { background: radial-gradient(120% 140% at 50% 0%, #6a2232 0%, #3a0714 55%, #1f0309 100%); color: #fbefc9; padding: 40px 0 0; text-align: center; overflow: hidden; position: relative; isolation: isolate; }
.bld-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(232,196,106,.05) 0 2px, transparent 2px 22px), radial-gradient(90% 70% at 50% 120%, rgba(0,0,0,.55), transparent 70%); }
.bld-hero .wrap { position: relative; z-index: 2; }
.bld-hero h1 { text-shadow: 0 4px 24px rgba(0,0,0,.45); }

/* banner scene */
.bld-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bld-spot { position: absolute; left: 50%; top: -30%; width: 900px; height: 700px; margin-left: -450px; background: radial-gradient(closest-side, rgba(255,226,160,.32), rgba(255,210,130,.08) 60%, transparent); }
.bld-bokeh i { position: absolute; bottom: -20px; left: var(--bx); width: var(--bs); height: var(--bs); border-radius: 50%; background: radial-gradient(circle, rgba(255,232,170,.9), rgba(232,196,106,0) 70%); animation: bldRise var(--bd) linear infinite; animation-delay: var(--bl); opacity: 0; }
.bld-fan { position: absolute; bottom: 70px; width: 330px; height: 300px; }
.bld-fan.l { left: max(8px, calc(50% - 700px)); }
.bld-fan.r { right: max(8px, calc(50% - 700px)); }
.bld-hc { position: absolute; top: 0; left: 0; width: 112px; transform: translate(var(--x), var(--y)) rotate(var(--r)); animation: bldFloat 7s ease-in-out infinite; animation-delay: var(--d); }
.bld-hc .cover { width: 100%; aspect-ratio: 2 / 3; border-radius: 3px; box-shadow: 0 18px 30px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.bld-gift { position: absolute; bottom: -34px; width: 118px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); }
.bld-fan.l .bld-gift { left: 196px; transform: rotate(6deg); }
.bld-fan.r .bld-gift { left: 10px; transform: rotate(-6deg); }
.bld-shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)); border-top: 1px solid rgba(232,196,106,.18); }
.bld-fanrow { display: none; }
@keyframes bldFloat { 0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); } 50% { transform: translate(var(--x), calc(var(--y) - 10px)) rotate(calc(var(--r) + 1.5deg)); } }
@keyframes bldRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-520px) scale(1.1); opacity: 0; } }
@media (max-width: 1279px) { .bld-fan { transform: scale(.78); transform-origin: bottom left; } .bld-fan.r { transform-origin: bottom right; } }
@media (max-width: 1100px) {
  .bld-fan { display: none; }
  .bld-fanrow { display: flex; justify-content: center; position: relative; z-index: 2; height: 118px; margin: -6px auto 6px; }
  .bld-rc { width: 66px; margin: 0 -10px; transform: translateY(calc(var(--k) * var(--k) * 5px)) rotate(calc(var(--k) * 8deg)); transform-origin: bottom center; animation: bldBob 5s ease-in-out infinite; animation-delay: var(--d); }
  .bld-rc .cover { width: 100%; aspect-ratio: 2 / 3; border-radius: 3px; box-shadow: 0 12px 20px -8px rgba(0,0,0,.7); }
}
@keyframes bldBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.bld-hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 6px 0; color: #fff8e6; letter-spacing: -.5px; }
.bld-hero p { max-width: 560px; margin: 0 auto; opacity: .85; }
.bld-hero .eyebrow { color: var(--gold-2); }
.bld-boost { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(90deg, #c59b27, #e8c46a); color: var(--burgundy-ink); padding: 6px 14px; border-radius: 999px; font-size: 13px; animation: bldPulse 2.2s infinite; }
.bld-timer { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.bld-timer small { opacity: .8; }
.bld-ladder { list-style: none; display: flex; gap: 12px; justify-content: center; margin: 22px auto 0; padding: 0; flex-wrap: wrap; }
.bld-ladder li { position: relative; min-width: 128px; padding: 12px 16px 10px; border-radius: 12px; border: 1px solid rgba(232,196,106,.25); background: rgba(255,255,255,.04); display: grid; gap: 2px; transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .3s, border-color .3s; }
.bld-ladder li b { font-family: var(--serif); font-size: 30px; line-height: 1.05; color: #fff8e6; }
.bld-ladder .bld-step-n { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.bld-ladder small { font-size: 11.5px; opacity: .7; display: inline-flex; gap: 3px; align-items: center; justify-content: center; }
.bld-ladder small .ms { font-size: 14px; }
.bld-ladder li.next { border-color: rgba(232,196,106,.7); background: rgba(232,196,106,.08); }
.bld-ladder li.on { background: linear-gradient(180deg, #e8c46a, #c59b27); border-color: #fbefc9; color: var(--burgundy-ink); transform: translateY(-3px); box-shadow: 0 10px 26px -8px rgba(232,196,106,.7); }
.bld-ladder li.on b { color: var(--burgundy-ink); }
.bld-ladder li.on small { opacity: .9; }
.bld-ladder li.pop { animation: bldPop .7s cubic-bezier(.3,1.6,.5,1); }
.bld-ladder li.on::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size: 250% 100%; animation: bldShine 2.8s infinite; pointer-events: none; }
.bld-tabs { display: inline-flex; margin: 26px auto 0; background: rgba(0,0,0,.25); border-radius: 12px 12px 0 0; padding: 6px 6px 0; gap: 4px; }
.bld-tabs button { border: 0; background: transparent; color: #fbefc9; font: 600 14px var(--sans); padding: 11px 18px; border-radius: 9px 9px 0 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; opacity: .75; }
.bld-tabs button.on { background: var(--canvas); color: var(--burgundy); opacity: 1; }

.bld-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-top: 22px; padding-bottom: 40px; }
.bld-tools { display: grid; gap: 12px; margin-bottom: 16px; }
.bld-search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.bld-search input { border: 0; background: transparent; font: 15px var(--sans); padding: 12px 0; width: 100%; outline: none; color: var(--ink); }
.bld-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.bld-chip { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: 600 13px var(--sans); cursor: pointer; }
.bld-chip.on { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.bld-note { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }

.bld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.bld-card, .bld-set { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.bld-card:hover, .bld-set:hover { box-shadow: var(--shadow-raise); transform: translateY(-2px); }
.bld-card.in, .bld-set.in { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(197,155,39,.35); }
.bld-cover { position: relative; display: block; }
.bld-cover .cover { width: 100%; aspect-ratio: 2 / 3; }
.bld-tick { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--burgundy-ink); display: grid; place-items: center; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.bld-tick .ms { font-size: 18px; }
.in .bld-tick { transform: scale(1); }
.bld-hot { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 2px; background: linear-gradient(135deg, #8b1a2b, #c8364a); color: #fff; font: 800 12px var(--sans); padding: 3px 8px 3px 5px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.bld-hot .ms { font-size: 15px; color: #ffd36b; }
.bld-ribbon { position: absolute; top: 10px; left: -4px; background: var(--ember); color: #fff; font: 800 13px var(--sans); padding: 4px 10px; border-radius: 0 4px 4px 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 1; }
.bld-ttl { font-size: 15px; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bld-info { flex: 1; }
.bld-price { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.bld-price b { color: var(--burgundy); font-size: 16px; }
.bld-low { font-size: 11.5px; color: var(--sage); font-weight: 700; background: var(--sage-soft); padding: 1px 6px; border-radius: 4px; }
.bld-save-chip { font-size: 12px; color: #fff; background: var(--sage); padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.bld-act { display: flex; align-items: center; gap: 8px; justify-content: center; }
.bld-add { width: 100%; justify-content: center; }
.bld-qbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--canvas); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bld-qbtn:disabled { opacity: .4; cursor: default; }
.bld-q { font-weight: 800; min-width: 18px; text-align: center; }
.bld-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bld-set .bld-cover .cover { aspect-ratio: 1 / 1; }

/* the box panel */
.bld-panel { position: sticky; top: 140px; }
.bld-panel-in { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-raise); display: grid; gap: 14px; }
.bld-sheet-x { display: none; }
.bld-crate { --fh: 84px; --sw: 58px; position: relative; height: 190px; margin: 18px 6px 0; }
/* open gift box: lid tilted up behind, kraft back wall, books inside, front with ribbon */
.bld-lid { position: absolute; left: 7%; right: 7%; bottom: calc(var(--fh) + 34px); height: 30px; z-index: 0; background: linear-gradient(180deg, #d9ae74 0%, #c4945a 70%, #a97a44 100%); border: 1px solid #8c6236; border-radius: 6px 6px 3px 3px; transform: rotate(-5deg); transform-origin: right bottom; box-shadow: 0 6px 12px -6px rgba(0,0,0,.4), inset 0 -7px 0 rgba(0,0,0,.08); }
.bld-lid-band { position: absolute; top: 0; bottom: 0; left: 50%; width: 18px; margin-left: -9px; background: linear-gradient(90deg, #8b1a2b, #c8364a, #8b1a2b); }
.bld-bow { position: absolute; left: 50%; top: -13px; width: 44px; height: 18px; margin-left: -22px; }
.bld-bow::before, .bld-bow::after { content: ""; position: absolute; top: 0; width: 20px; height: 15px; border: 4px solid #b0283c; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgba(200,54,74,.25); }
.bld-bow::before { left: 0; transform: rotate(-14deg); }
.bld-bow::after { right: 0; transform: rotate(14deg); }
.bld-back { position: absolute; left: 3%; right: 3%; bottom: calc(var(--fh) - 4px); height: 40px; z-index: 1; background: linear-gradient(180deg, #9b6f3e 0%, #b5844d 100%); border: 1px solid #8c6236; border-bottom: 0; border-radius: 4px 4px 0 0; box-shadow: inset 0 10px 14px -8px rgba(0,0,0,.45); }
.bld-crate.lit .bld-lid { animation: bldLid 2.8s ease-in-out infinite; }
.bld-inside { position: absolute; left: 6%; right: 6%; bottom: calc(var(--fh) - 22px); height: 110px; display: flex; align-items: flex-end; justify-content: center; z-index: 2; }
.bld-slot { width: var(--sw); height: calc(var(--sw) * 1.5); margin: 0 -8px; flex: none; transform: rotate(var(--r, 0deg)); transform-origin: bottom center; }
.bld-slot .cover { width: 100%; height: 100%; box-shadow: 0 4px 10px rgba(0,0,0,.35); border-radius: 3px; }
.bld-slot.ghost { border: 2px dashed rgba(140,98,54,.45); border-radius: 4px; display: grid; place-items: center; color: rgba(140,98,54,.6); font: 700 14px var(--sans); background: rgba(255,255,255,.35); margin: 0 3px; height: 70px; width: 44px; }
.bld-slot.drop { animation: bldDrop .6s cubic-bezier(.3,1.5,.5,1); }
.bld-more { align-self: center; margin-left: 12px; font: 800 14px var(--sans); color: var(--burgundy); background: var(--gold-soft); border-radius: 999px; padding: 4px 9px; }
.bld-front { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fh); background: linear-gradient(180deg, #c99a62 0%, #b5844d 100%); border: 1px solid #8c6236; border-radius: 4px 4px 10px 10px; z-index: 3; display: grid; place-items: center; box-shadow: inset 0 8px 14px -8px rgba(0,0,0,.35), 0 10px 18px -8px rgba(0,0,0,.35); overflow: hidden; }
.bld-band { position: absolute; top: 0; bottom: 0; left: 50%; width: 22px; margin-left: -11px; background: linear-gradient(90deg, #8b1a2b, #c8364a, #8b1a2b); }
.bld-label { position: relative; background: #fbefc9; color: var(--burgundy); padding: 6px 16px; border-radius: 4px; font-size: 20px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.25); border: 1px dashed rgba(74,21,33,.35); }
.bld-crate.lit .bld-label { animation: bldWiggle 3s ease-in-out infinite; }

.bld-track { position: relative; height: 10px; border-radius: 99px; background: var(--card); margin: 18px 10px 10px; }
.bld-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #c59b27, #e8c46a, #c59b27); background-size: 200% 100%; transition: width .6s cubic-bezier(.3,1.3,.5,1); animation: bldShine 2.4s linear infinite; }
.bld-track span { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-2); transition: all .3s; }
.bld-track span b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bld-track span.on { background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(197,155,39,.25); }
.bld-track span.on b { color: var(--burgundy); }

.bld-figs { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: end; }
.bld-fig small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bld-fig b { font: 800 26px var(--sans); color: var(--ink); display: inline-block; }
.bld-fig.pay { text-align: right; }
.bld-fig.pay b { color: var(--burgundy); font-size: 30px; }
.bld-fig s { display: block; color: var(--muted); font-size: 14px; }
.bld-saving { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--card); color: var(--muted); font-weight: 700; }
.bld-saving span { display: inline-flex; gap: 6px; align-items: center; }
.bld-saving b { font-size: 22px; display: inline-block; }
.bld-saving.on { background: linear-gradient(90deg, #2d4a3e, #3d6b57); color: #fff; box-shadow: 0 8px 20px -10px rgba(45,74,62,.8); }
.bld-page .bump { animation: bldBump .45s cubic-bezier(.3,1.6,.5,1); }
.bld-nudge { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--gold-soft); border: 1px solid rgba(197,155,39,.4); padding: 10px 12px; border-radius: 10px; color: var(--burgundy-ink); }
.bld-nudge small { display: block; color: var(--sage); font-weight: 700; }
.bld-nudge .ms { color: var(--gold); }
.bld-nudge.top { background: var(--sage-soft); border-color: rgba(45,74,62,.3); color: var(--sage); }
.bld-ship, .bld-boxsets { font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.bld-ship.ok { color: var(--sage); font-weight: 700; }
.bld-cta { display: grid; gap: 8px; }
.bld-cta .btn-lg { justify-content: center; }
.bld-bar { display: none; }
.bundle-hint { text-decoration: none; display: flex; gap: 8px; align-items: center; }

@keyframes bldPop { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-2deg); } 100% { transform: translateY(-3px) scale(1); } }
@keyframes bldShine { 0% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@keyframes bldPulse { 0% { box-shadow: 0 0 0 0 rgba(232,196,106,.6); } 70% { box-shadow: 0 0 0 12px rgba(232,196,106,0); } 100% { box-shadow: 0 0 0 0 rgba(232,196,106,0); } }
@keyframes bldDrop { 0% { transform: translateY(-90px) rotate(-14deg) scale(.7); opacity: 0; } 60% { transform: translateY(6px) rotate(var(--r, 0deg)); opacity: 1; } 100% { transform: rotate(var(--r, 0deg)); } }
@keyframes bldBump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes bldWiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-4deg); } 96% { transform: rotate(4deg); } }
@keyframes bldLid { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(-8deg) translateY(-3px); } }
.bld-fly { position: fixed; z-index: 120; pointer-events: none; margin: 0; border-radius: 4px; box-shadow: 0 12px 26px rgba(0,0,0,.35); }

@media (max-width: 899px) {
  .bld-layout { grid-template-columns: 1fr; }
  .bld-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; transform: translateY(105%); transition: transform .35s cubic-bezier(.3,1,.4,1); }
  .bld-panel.sheet-open { transform: none; }
  .bld-panel-in { border-radius: 18px 18px 0 0; max-height: 86vh; overflow: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 40px rgba(0,0,0,.3); }
  body.bld-sheet::after { content: ''; position: fixed; inset: 0; background: rgba(20,10,8,.45); z-index: 55; }
  .bld-sheet-x { display: grid; place-items: center; justify-self: center; width: 56px; height: 26px; border: 0; background: var(--card); border-radius: 99px; cursor: pointer; color: var(--muted); }
  .bld-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(43,30,22,.1); gap: 10px; align-items: center; }
  .bld-bar .btn { flex: none; }
  .bld-bar-sum { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; cursor: pointer; padding: 0; color: var(--ink); font: inherit; min-width: 0; }
  .bld-bar-covers { display: flex; flex: none; }
  .bld-bar-covers .cover { width: 28px; height: 42px; margin-right: -10px; border-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
  .bld-bar-txt { display: grid; min-width: 0; margin-left: 8px; }
  .bld-bar-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bld-bar-txt small { color: var(--sage); font-weight: 700; font-size: 12px; }
  .bld-bar-sum > .ms { margin-left: auto; color: var(--muted); }
  body.has-mobile-cta { padding-bottom: 76px; }
  body.bld-on .toasts { bottom: 86px; }
}
@media (max-width: 639px) {
  .bld-hero { padding-top: 14px; }
  .bld-hero h1 { font-size: 30px; margin: 2px 0 4px; }
  .bld-hero p { font-size: 14px; line-height: 1.45; padding: 0 6px; }
  .bld-hero .eyebrow { display: none; }
  .bld-fanrow { height: 96px; margin: 0 auto 14px; }
  .bld-rc { width: 52px; margin: 0 -8px; }
  .bld-ladder { margin-top: 14px; }
  .bld-tabs { margin-top: 16px; }
  .bld-layout { padding-top: 14px; gap: 16px; }
  .bld-tools { gap: 10px; margin-bottom: 12px; }
  .bld-search input { padding: 10px 0; }
  .bld-card, .bld-set { gap: 6px; border-radius: 10px; }
  .bld-price { margin-top: 2px; }
  .bld-price b { font-size: 15px; }
  .bld-low { font-size: 11px; }
  .bld-qbtn { width: 32px; height: 32px; }
  .bld-crate { --fh: 70px; --sw: 48px; height: 158px; margin-top: 6px; }
  .bld-label { font-size: 18px; }
  .bld-panel-in { gap: 12px; padding: 12px 16px 18px; }
  .bld-fig.pay b { font-size: 26px; }
  .bld-ladder { gap: 8px; flex-wrap: nowrap; }
  .bld-ladder li { min-width: 0; flex: 1; padding: 10px 6px 8px; }
  .bld-ladder li b { font-size: 22px; }
  .bld-ladder .bld-step-n { font-size: 10.5px; }
  .bld-ladder small { font-size: 10.5px; }
  .bld-tabs { width: 100%; }
  .bld-tabs button { flex: 1; justify-content: center; padding: 10px 6px; font-size: 13px; }
  .bld-grid, .bld-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bld-card, .bld-set { padding: 8px; }
  .bld-ttl { font-size: 14px; }
  .bld-bar { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  body.has-mobile-cta { padding-bottom: calc(58px + 66px + env(safe-area-inset-bottom, 0px)); }
  body.bld-on .toasts { bottom: calc(58px + 76px + env(safe-area-inset-bottom, 0px)); }
}

/* the menu link: a quiet pill all year, a glowing gift during a bundle boost (e.g. Big Book Week) */
.nav a.bld-nav { border-radius: 999px; padding: 6px 12px; font-weight: 700; color: var(--burgundy); border: 1px solid rgba(122, 31, 46, .25); }
.nav a.bld-nav.is-boost { position: relative; overflow: hidden; flex: none; isolation: isolate; color: #fff3d6; padding: 6px 8px 6px 12px;
  background: linear-gradient(180deg, #8b2436, #4a1521); border: 1px solid #e6bd5c;
  box-shadow: 0 0 0 3px rgba(230, 189, 92, .18), 0 4px 14px rgba(122, 31, 46, .35); animation: bld-nav-glow 2.6s ease-in-out infinite; }
.nav a.bld-nav.is-boost .ms { color: #ffe2a0; transform-origin: 50% 80%; animation: bld-nav-gift 3.2s ease-in-out infinite; }
.nav a.bld-nav.is-boost .tag { background: linear-gradient(180deg, #fff0c0, #e6bd5c 55%, #b0862a); color: #3a0d16; font-size: 9.5px; padding: 3px 6px; border-radius: 999px; }
.nav a.bld-nav.is-boost::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .45), transparent); animation: bld-nav-shine 3.2s 1s ease-in-out infinite; }
.nav a.bld-nav.is-boost:hover, .nav a.bld-nav.is-boost.active { background: linear-gradient(180deg, #a12a3f, #5a1928); color: #fff; }
@keyframes bld-nav-glow { 50% { box-shadow: 0 0 0 4px rgba(230, 189, 92, .32), 0 4px 18px rgba(230, 189, 92, .45); } }
@keyframes bld-nav-gift { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-14deg) scale(1.15); } 82% { transform: rotate(12deg) scale(1.15); } 88% { transform: rotate(-6deg); } }
@keyframes bld-nav-shine { 0%, 50% { left: -60%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .nav a.bld-nav.is-boost, .nav a.bld-nav.is-boost .ms, .nav a.bld-nav.is-boost::after { animation: none; } }
