/* Black Friday Book Haul (Nov 12 to Dec 1, 2026). Uses the site tokens from
   styles.css and only the four type tokens. Remove after the campaign. */
.haul-main [hidden], .haul-bar [hidden], .haul-welcome [hidden] { display: none !important; }
.haul-main { display: grid; gap: 28px; padding-block: 28px 56px; max-width: 1040px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.haul-hero { display: grid; gap: 12px; justify-items: center; text-align: center; }
.haul-hero h1 { font: var(--type-display); margin: 0; text-wrap: balance; }
.haul-lead { font: var(--type-body); color: var(--text-secondary); margin: 0; }
.haul-status { font: var(--type-body); color: var(--text-primary); margin: 0; min-height: 1.6em; }
.haul-status.is-error { color: #f0a28f; }
.haul-login { margin-top: 4px; }

.haul-clock { display: grid; gap: 8px; justify-items: center; }
.haul-clock-label { font: var(--type-small); color: var(--text-muted); letter-spacing: .04em; margin: 0; }
.haul-tiles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.haul-tile {
  display: grid; justify-items: center; min-width: 58px; padding: 8px 10px 6px; border-radius: 10px;
  background: linear-gradient(180deg, #221a18, #151110); border: 1px solid rgba(239, 189, 168, .28);
  box-shadow: 0 0 18px rgba(206, 131, 111, .18), inset 0 1px 0 rgba(255, 236, 222, .08);
}
.haul-tile b { font: var(--type-title); color: #f4d3c2; font-variant-numeric: tabular-nums; }
.haul-tile small { font: var(--type-small); color: var(--text-muted); }

.haul-gift {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(239, 189, 168, .45);
  background: radial-gradient(120% 140% at 0% 0%, rgba(206, 131, 111, .2), transparent 60%), var(--card);
}
.haul-gift-copy { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.haul-gift h2 { font: var(--type-title); margin: 0; }
.haul-gift p { font: var(--type-body); color: var(--text-secondary); margin: 0; }
.haul-gift-action { display: flex; gap: 10px; flex-wrap: wrap; }

.haul-shelf { position: relative; display: grid; gap: 14px; padding-top: 52px; }
body[data-haul-rope="gone"] .haul-shelf { padding-top: 0; transition: padding-top .4s ease; }
.haul-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; transition: filter .5s ease, opacity .5s ease; }
.haul-pack {
  display: grid; gap: 6px; align-content: start; justify-items: center; text-align: center;
  padding: 24px 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border);
}
.haul-pack[data-pack="library"] { border-color: rgba(239, 189, 168, .5); }
.haul-pack h2 { font: var(--type-title); margin: 0; }
.haul-novels { font: var(--type-body); color: var(--text-secondary); margin: 0; }
.haul-price { font: var(--type-display); margin: 4px 0 0; color: #f4d3c2; }
.haul-price s { font: var(--type-title); color: var(--text-muted); text-decoration-thickness: 2px; margin-right: 6px; vertical-align: middle; }
.haul-per { font: var(--type-small); color: var(--text-muted); margin: 0 0 10px; }
.haul-pack .btn { width: 100%; max-width: 240px; min-height: 44px; }
.haul-fine, .haul-yearly { font: var(--type-small); color: var(--text-muted); text-align: center; margin: 0; }
.haul-yearly a, .haul-login { color: var(--accent); }
.haul-login { font: var(--type-small); }

/* Velvet rope: closed for everyone until members are recognized. */
.haul-rope { position: absolute; inset: 0 0 auto; height: 64px; z-index: 2; pointer-events: none; }
.haul-rope-line { position: absolute; left: 14px; right: 14px; top: 8px; width: calc(100% - 28px); height: 56px; transform-origin: 0 10px; }
.haul-post { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3d9, #d9a75e 45%, #7a5426); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.haul-post-left { left: 4px; }
.haul-post-right { right: 4px; }
.haul-rope-tag { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font: var(--type-small); color: #fbe7dc;
  background: #5c2330; border: 1px solid #b9485a; border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
body[data-haul-rope="closed"] .haul-packs { filter: saturate(.55) brightness(.75); }
body[data-haul-rope="open"] .haul-rope-line { animation: haul-unhook 1.1s cubic-bezier(.5, -.2, .6, 1) forwards; }
body[data-haul-rope="open"] .haul-rope-tag, body[data-haul-rope="open"] .haul-post-right { animation: haul-fade .6s ease forwards; }
body[data-haul-rope="open"] .haul-post-left { animation: haul-fade .6s ease .9s forwards; }
body[data-haul-rope="gone"] .haul-rope { display: none; }
@keyframes haul-unhook {
  0% { transform: rotate(0); opacity: 1; }
  35% { transform: rotate(-4deg); }
  100% { transform: rotate(78deg) translateY(20px); opacity: 0; }
}
@keyframes haul-fade { to { opacity: 0; visibility: hidden; } }

/* In-app bar and one-time members' welcome. */
.haul-bar {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
  margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(239, 189, 168, .4);
  background: linear-gradient(90deg, rgba(92, 35, 48, .55), rgba(23, 23, 23, .9));
}
.haul-bar p { font: var(--type-small); color: var(--text-secondary); margin: 0; min-width: 0; flex: 1 1 220px; }
.haul-bar strong { color: #f4d3c2; font-weight: 600; }
.haul-bar .btn { min-height: 36px; }
.gift-arrival-note { font: var(--type-body); color: var(--text-secondary); margin: 0 0 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(185, 72, 90, .14); border: 1px solid rgba(239, 189, 168, .35); }
.gift-arrival-note strong { color: #f4d3c2; font-weight: 600; }
.haul-welcome {
  width: min(420px, calc(100vw - 32px)); padding: 28px 24px 22px; border-radius: 18px; text-align: center;
  border: 1px solid rgba(239, 189, 168, .45); background: radial-gradient(120% 90% at 50% 0%, #2a1a1d, #141212 70%); color: var(--text-primary);
}
.haul-welcome::backdrop { background: rgba(5, 4, 4, .72); }
.haul-welcome h2 { font: var(--type-title); margin: 18px 0 6px; }
.haul-welcome p { font: var(--type-body); color: var(--text-secondary); margin: 0 0 18px; }
.haul-welcome-actions { display: grid; gap: 8px; justify-items: center; }
.haul-welcome-actions .btn { min-width: 180px; min-height: 44px; }
.haul-welcome-later { font: var(--type-small); color: var(--text-muted); background: none; border: 0; padding: 8px; cursor: pointer; text-decoration: underline; }
.haul-welcome-rope { position: relative; height: 34px; margin: 0 8px; }
.haul-welcome-rope .haul-post { top: 4px; }
.haul-welcome-velvet { position: absolute; left: 18px; right: 18px; top: 10px; height: 14px; border-radius: 0 0 60% 60% / 0 0 100% 100%;
  border-bottom: 8px solid #b9485a; transform-origin: 0 50%; }
.haul-welcome.is-open .haul-welcome-velvet { animation: haul-unhook .75s cubic-bezier(.5, -.2, .6, 1) forwards; }
.haul-welcome.is-open .haul-post-right { animation: haul-fade .4s ease forwards; }

/* Black Friday yearly bonus on the pricing page. */
.yearly-bonus { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; max-width: 760px; margin: 14px auto 0;
  padding: 12px 16px; border-radius: 14px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(185, 72, 90, .28), rgba(185, 72, 90, .08));
  border: 1px solid rgba(239, 189, 168, .45); }
.yearly-bonus p { font: var(--type-body); color: var(--text-secondary); margin: 0; flex: 1 1 320px; }
.yearly-bonus strong { color: #f4d3c2; font-weight: 600; }
.yearly-bonus-tag { font: var(--type-small); color: #fbe7dc; background: #5c2330; border: 1px solid #b9485a; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.yearly-bonus-clock { font: var(--type-small); color: #f4d3c2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yearly-bonus .btn { min-height: 36px; }
.yearly-bonus [hidden], .yearly-bonus-badge[hidden], .give-main [hidden] { display: none !important; }
.yearly-bonus-badge { font: var(--type-small); color: #fbe7dc; background: #5c2330; border: 1px solid #b9485a; border-radius: 999px;
  padding: 3px 12px; margin: 6px auto 0; width: fit-content; }
/* Give a book (/give): gift list and the unwrap box. */
.give-main { display: grid; gap: 24px; }
.give-shop { display: grid; gap: 20px; }
.give-unwrap { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 560px; margin: 0 auto; }
.give-unwrap h1 { font: var(--type-display); margin: 8px 0 0; text-wrap: balance; }
.give-unwrap .btn { min-width: 220px; min-height: 44px; }
.give-from { font: var(--type-body); color: var(--text-secondary); margin: 0; }
.give-note { font: var(--type-title); font-style: italic; color: #f4d3c2; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.give-box { position: relative; width: 132px; height: 150px; margin: 4px auto 0; }
body[data-give-box="none"] .give-box { display: none; }
.give-body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 74px; border-radius: 8px;
  background: linear-gradient(180deg, #8a3445, #5c2330); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.give-lid { position: absolute; left: 2px; right: 2px; top: 60px; height: 22px; border-radius: 6px; z-index: 2;
  background: linear-gradient(180deg, #b9485a, #8a3445); transform-origin: 18% 100%; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.give-ribbon { position: absolute; left: 50%; top: 60px; bottom: 0; width: 16px; transform: translateX(-50%); z-index: 3;
  background: linear-gradient(90deg, #d9a75e, #fff3d9 50%, #d9a75e); transition: opacity .3s ease; }
.give-book { position: absolute; left: 50%; bottom: 18px; z-index: 1; transform: translate(-50%, 0); opacity: 0;
  font: var(--type-small); color: #241b17; background: #f4d3c2; border-radius: 4px; padding: 10px 12px; white-space: nowrap;
  transition: transform .8s cubic-bezier(.3, 1.3, .5, 1) .25s, opacity .3s ease .25s; }
body[data-give-box="open"] .give-lid { transform: translate(-22px, -30px) rotate(-30deg); }
body[data-give-box="open"] .give-ribbon { opacity: 0; }
body[data-give-box="open"] .give-book { opacity: 1; transform: translate(-50%, -58px); z-index: 4; }
.give-mine { display: grid; gap: 10px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid rgba(239, 189, 168, .4); }
.give-mine h2 { font: var(--type-title); margin: 0; }
.give-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.give-item { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.give-item:first-child { padding-top: 0; border-top: 0; }
.give-item-head { font: var(--type-body); color: var(--text-secondary); margin: 0; }
.give-item-head strong { color: #f4d3c2; font-weight: 600; }
.give-item-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.give-item-actions .btn { min-height: 40px; }
.give-note-form summary { font: var(--type-small); color: var(--accent); cursor: pointer; }
.give-note-form form { display: grid; gap: 8px; margin-top: 8px; }
.give-note-form input, .give-note-form textarea { font: var(--type-body); width: 100%; box-sizing: border-box; padding: 8px 10px;
  border-radius: 8px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text-primary); }
.give-note-form .btn { justify-self: start; min-height: 40px; }
.give-saved { font: var(--type-small); color: var(--text-muted); }
.haul-bonus { font: var(--type-small); color: #f4d3c2; margin: -6px 0 6px; }
.give-options { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.give-hero { position: relative; overflow: hidden; padding-bottom: 6px; }
.give-hero > :not(.give-snow) { position: relative; z-index: 1; }
.give-snow { position: absolute; inset: 0; pointer-events: none; }
.give-snow i { position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: #fbe7dc; opacity: .5;
  animation: give-fall 9s linear infinite; }
.give-snow i:nth-child(1) { left: 6%; animation-delay: 0s; } .give-snow i:nth-child(2) { left: 14%; animation-delay: -4s; width: 4px; height: 4px; }
.give-snow i:nth-child(3) { left: 23%; animation-delay: -7s; } .give-snow i:nth-child(4) { left: 31%; animation-delay: -2s; width: 3px; height: 3px; }
.give-snow i:nth-child(5) { left: 42%; animation-delay: -5.5s; } .give-snow i:nth-child(6) { left: 51%; animation-delay: -1s; width: 4px; height: 4px; }
.give-snow i:nth-child(7) { left: 60%; animation-delay: -8s; } .give-snow i:nth-child(8) { left: 68%; animation-delay: -3s; width: 3px; height: 3px; }
.give-snow i:nth-child(9) { left: 76%; animation-delay: -6s; } .give-snow i:nth-child(10) { left: 84%; animation-delay: -0.5s; width: 4px; height: 4px; }
.give-snow i:nth-child(11) { left: 91%; animation-delay: -4.5s; } .give-snow i:nth-child(12) { left: 97%; animation-delay: -2.5s; width: 3px; height: 3px; }
@keyframes give-fall { from { transform: translate(0, 0); } 50% { transform: translate(10px, 140px); } to { transform: translate(-6px, 300px); opacity: 0; } }
.give-card { display: grid; gap: 12px; justify-items: center; width: 100%; box-sizing: border-box; padding: 28px 22px 24px; border-radius: 22px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(185, 72, 90, .22), transparent 65%), var(--card); border: 1px solid rgba(239, 189, 168, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.give-tag { position: relative; display: grid; gap: 6px; max-width: 420px; padding: 14px 18px 14px 26px; border-radius: 6px 12px 12px 6px;
  background: #f4e6d8; color: #2b1d18; text-align: left; transform: rotate(-1.2deg); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.give-tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px #c9a59a; }
.give-tag .give-from { font: var(--type-small); color: #6b4a3f; }
.give-tag .give-note { color: #2b1d18; }
.give-bow { position: absolute; left: 50%; top: -14px; width: 34px; height: 16px; transform: translateX(-50%); }
.give-bow::before, .give-bow::after { content: ""; position: absolute; top: 0; width: 16px; height: 14px; border: 4px solid #e8c27e; border-radius: 50% 50% 10% 50%; }
.give-bow::before { left: 0; transform: rotate(-20deg); }
.give-bow::after { right: 0; transform: scaleX(-1) rotate(-20deg); }
.give-confetti { position: absolute; left: 50%; top: 70px; width: 0; height: 0; z-index: 5; }
.give-confetti i { position: absolute; width: 7px; height: 11px; border-radius: 2px; opacity: 0; background: #e8c27e; }
.give-confetti i:nth-child(3n) { background: #b9485a; } .give-confetti i:nth-child(3n+1) { background: #f4d3c2; }
body[data-give-box="open"] .give-confetti i { animation: give-pop 1.1s cubic-bezier(.2, .8, .3, 1) .15s forwards; }
.give-confetti i:nth-child(1) { --x: -90px; --y: -70px; } .give-confetti i:nth-child(2) { --x: 80px; --y: -90px; }
.give-confetti i:nth-child(3) { --x: -60px; --y: -120px; } .give-confetti i:nth-child(4) { --x: 110px; --y: -40px; }
.give-confetti i:nth-child(5) { --x: -120px; --y: -30px; } .give-confetti i:nth-child(6) { --x: 30px; --y: -130px; }
.give-confetti i:nth-child(7) { --x: -20px; --y: -100px; } .give-confetti i:nth-child(8) { --x: 60px; --y: -60px; }
.give-confetti i:nth-child(9) { --x: -100px; --y: -100px; } .give-confetti i:nth-child(10) { --x: 120px; --y: -110px; }
@keyframes give-pop { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(260deg); } }
.give-trust { font: var(--type-small); color: var(--text-secondary); margin: 0; }
.give-who { font: var(--type-small); color: var(--text-muted); margin: 0; }
.give-who .haul-welcome-later { padding: 4px; }
.give-steps { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font: var(--type-small); color: var(--text-secondary); counter-reset: give-step; }
.give-steps li { counter-increment: give-step; display: flex; align-items: center; gap: 8px; }
.give-steps li::before { content: counter(give-step); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #5c2330; border: 1px solid #b9485a; color: #fbe7dc; font: var(--type-small); }
.give-steps b { color: var(--text-primary); font-weight: 600; }
.give-print { display: none; }
@media print {
  body.give-printing > *:not(main), body.give-printing .give-main > *:not(.give-print) { display: none !important; }
  body.give-printing, body.give-printing main { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  body.give-printing .give-print { display: block !important; }
  .give-print-card { width: 120mm; margin: 20mm auto; padding: 14mm 12mm; border: 1.5mm solid #b9485a; border-radius: 6mm; text-align: center;
    color: #241b17; font-family: Georgia, serif; break-inside: avoid; }
  .give-print-card h2 { font-size: 24pt; margin: 2mm 0 4mm; }
  .give-print-card p { margin: 0 0 3mm; font-size: 12pt; line-height: 1.4; }
  .give-print-kicker { letter-spacing: .2em; text-transform: uppercase; font-size: 9pt !important; color: #7d2f3a; }
  .give-print-from { font-style: italic; }
  .give-print-note { font-style: italic; font-size: 13pt !important; white-space: pre-line; }
  .give-print-qr { display: block; width: 45mm; height: 45mm; margin: 5mm auto; }
  .give-print-how { font-size: 10pt !important; color: #4a3a33; }
  .give-print-url { font-family: monospace; font-size: 8pt !important; word-break: break-all; color: #4a3a33; }
  .give-print-brand { margin-top: 5mm !important; font-size: 10pt !important; letter-spacing: .08em; color: #7d2f3a; }
}
@media (max-width: 760px) {
  .haul-packs { grid-template-columns: minmax(0, 1fr); }
  .haul-tile { min-width: 52px; padding: 6px 8px 5px; }
  .haul-gift { padding: 18px 16px; }
  .haul-gift-action, .haul-gift-action .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-haul-rope="open"] .haul-rope { display: none; }
  .give-lid, .give-book, .give-ribbon { transition: none; }
  .give-snow { display: none; }
  body[data-give-box="open"] .give-confetti i { animation: none; }
  .haul-packs { transition: none; }
}
