/* thlt.blog CTA — rice-paper index card with a pine-ink binding stitch */
.xf-cta{
  position:fixed;
  left:0;
  right:0;
  bottom:calc(24px + env(safe-area-inset-bottom, 0px));
  z-index:99999;
  display:flex;
  justify-content:center;
  pointer-events:none;
  padding:0 16px;
  box-sizing:border-box;
}
.xf-cta a{
  pointer-events:auto;
  position:relative;
  display:inline-flex;
  align-items:center;
  width:fit-content;
  max-width:min(720px,100%);
  margin:0 auto;
  padding:11px 22px 11px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 46%),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(61,107,88,.08) 27px 28px),
    #f3ead8;
  color:#2c261b;
  text-decoration:none;
  font-weight:700;
  font-size:15px;
  letter-spacing:.06em;
  line-height:1.35;
  border-radius:3px 10px 3px 3px;
  border:1px solid #c8b496;
  box-shadow:0 10px 24px rgba(60,42,20,.18), inset 0 1px 0 rgba(255,255,255,.65);
  box-sizing:border-box;
  overflow:hidden;
  animation:xfPageLift 4.6s ease-in-out infinite;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.xf-cta a::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:10px;
  background:
    radial-gradient(circle at 5px 12px, #f3ead8 0 2.2px, transparent 2.4px),
    radial-gradient(circle at 5px 50%, #f3ead8 0 2.2px, transparent 2.4px),
    radial-gradient(circle at 5px calc(100% - 12px), #f3ead8 0 2.2px, transparent 2.4px),
    #3d6b58;
}
.xf-cta a::after{
  content:"";
  position:absolute;
  left:18px;right:16px;bottom:6px;
  height:1px;
  background:linear-gradient(90deg, transparent, #8a5a3a, transparent);
  opacity:.55;
  transform-origin:left center;
  animation:xfInkLine 4.6s ease-in-out infinite;
}
.xf-cta a:hover{
  transform:translateY(-3px) rotate(-0.3deg);
  box-shadow:0 16px 28px rgba(60,42,20,.22), inset 0 1px 0 rgba(255,255,255,.8);
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 46%),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(61,107,88,.1) 27px 28px),
    #f7f0e0;
}
.xf-cta a:active{
  transform:translateY(1px) scale(.99);
  box-shadow:0 4px 12px rgba(60,42,20,.16);
}
@keyframes xfPageLift{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}
@keyframes xfInkLine{
  0%,100%{opacity:.35; transform:scaleX(.86)}
  50%{opacity:.8; transform:scaleX(1)}
}
body{padding-bottom:calc(104px + env(safe-area-inset-bottom, 0px))}
@media (max-width:650px){
  .xf-cta{bottom:calc(18px + env(safe-area-inset-bottom, 0px));padding:0 12px}
  .xf-cta a{font-size:13px;padding:10px 16px 10px 24px;letter-spacing:.03em}
  body{padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px))}
}
@media (prefers-reduced-motion:reduce){
  .xf-cta a,
  .xf-cta a::after{
    animation:none !important;
  }
}
