/* LovingKind Companion 2.1: optional, low-pressure illustrated pet. */
.tm-companion-invite,.tm-companion-home{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(120deg,#F9F5EE,#EAF2E9);overflow:hidden}
.tm-companion-invite>div:first-child,.tm-companion-home>div:last-child{flex:1;min-width:0}
.tm-companion-invite p,.tm-companion-home p{max-width:560px}
.tm-companion-invite-art{width:152px;flex:0 0 152px}
.tm-pet-compact{width:120px;flex:0 0 120px}
.tm-companion-onboard,.tm-companion-room{max-width:790px;margin:0 auto;padding:30px}
.tm-companion-onboard h1,.tm-companion-room h1{font-size:clamp(25px,4vw,36px)}
.tm-companion-onboard>p,.tm-companion-room>p{max-width:630px}
.tm-pet-art{max-width:270px;margin:6px auto 20px;pointer-events:none}
.tm-pet-stage{background:radial-gradient(ellipse at 50% 70%,#F9F5EC 0%,#F2F6EE 68%,#E8F0E7 100%);border-radius:25px;padding:8px;max-width:390px;margin:18px auto 10px;min-height:263px;display:flex;align-items:center;justify-content:center}
.tm-pet-tap{border:0;background:transparent;cursor:pointer;width:290px;max-width:100%;display:block;border-radius:22px;padding:0;line-height:0}
.tm-pet-tap:focus-visible,.tm-pet-choice:focus-visible{outline:3px solid #56977A;outline-offset:4px}
.tm-pet-svg{width:100%;height:auto;overflow:visible;--pet-fur:#F4D3A9;--pet-light:#FFF0D8;--pet-ear:#DCA47E;--pet-line:#C68E70}
.tm-pet-peach{--pet-fur:#E5B6A4;--pet-light:#FCE4D9;--pet-ear:#C88278;--pet-line:#A96F68}
.tm-pet-gray{--pet-fur:#C8D1D6;--pet-light:#F2F4EF;--pet-ear:#9AAAB4;--pet-line:#899DA2}
.tm-pet-head{transform-origin:120px 130px;animation:tm-pet-breathe 4.7s ease-in-out infinite}
.tm-tail{transform-origin:182px 142px;animation:tm-pet-wag 3.7s ease-in-out infinite}
.tm-pet-happy .tm-tail{animation-duration:.55s}
.tm-pet-happy .tm-pet-head{animation-duration:1.9s}
.tm-pet-breathing .tm-pet-head{animation-duration:6.5s}
.tm-pet-eyes{transform-origin:121px 100px;animation:tm-pet-blink 6.8s infinite}
.tm-pet-sleepy .tm-pet-eyes{transform:scaleY(.15);animation:none}
.tm-pet-heart{opacity:0;animation:none}
.tm-pet-happy .tm-pet-heart{animation:tm-pet-heart 2.2s ease-out infinite}
.tm-companion-message{margin:0 auto 18px;text-align:center;color:#456A59;font-weight:650;min-height:32px;font-size:16px}
.tm-pet-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.tm-pet-buttons .btn{min-height:44px;white-space:normal}
.tm-companion-tools{border-top:1px solid #DDE5DD;padding-top:17px;margin-top:24px}
.tm-companion-tools h2{font-size:19px}
.tm-companion-footer{border-top:1px solid #E1E6DD;padding-top:16px;margin-top:20px;display:flex;align-items:center;flex-wrap:wrap;gap:14px;justify-content:space-between}
.tm-companion-motion{display:flex;align-items:center;gap:9px;font-size:13px;cursor:pointer;color:#51695D}
.tm-companion-motion input{width:17px;height:17px;accent-color:#3B8064}
.tm-companion-fieldset{border:0;padding:0;margin:17px 0}
.tm-pet-choices{display:flex;flex-wrap:wrap;gap:9px}
.tm-pet-choice{border:1px solid #BDCDC1;border-radius:20px;background:#FFF;padding:9px 19px;color:#35594A;cursor:pointer;font-weight:650}
.tm-pet-choice[aria-pressed="true"]{border-color:#3D8366;background:#E6F2E7;box-shadow:0 0 0 1px #3D8366}
@keyframes tm-pet-wag{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(9deg)}}
@keyframes tm-pet-breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(3px) rotate(1deg)}}
@keyframes tm-pet-blink{0%,42%,46%,100%{transform:scaleY(1)}44%{transform:scaleY(.08)}}
@keyframes tm-pet-heart{0%{opacity:0;transform:translateY(4px) scale(.7)}45%{opacity:.85}100%{opacity:0;transform:translateY(-21px) scale(1.1)}}
.tm-pet-still *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.tm-pet-svg *{animation:none!important;transition:none!important}}
@media(max-width:680px){.tm-companion-invite,.tm-companion-home{align-items:center;padding:18px}.tm-companion-invite-art{width:82px;flex-basis:82px}.tm-pet-compact{width:85px;flex-basis:85px}.tm-companion-onboard,.tm-companion-room{padding:20px}.tm-pet-stage{min-height:190px}.tm-pet-tap{width:220px}.tm-pet-buttons .btn{flex:1 1 130px}}
@media(max-width:365px){.tm-companion-invite-art{display:none}.tm-companion-home .tm-pet-compact{width:65px;flex-basis:65px}.tm-companion-onboard,.tm-companion-room{padding:16px}}

.tm-kindness-invite{margin-top:22px;padding:18px;border-radius:16px;background:#F4F7EF}
#kindnessStrokeButton[aria-disabled="true"]{cursor:default}

/* 2.6.6: keep room padding clear of the mobile tab bar / safe area,
   and shrink the pet stage so action buttons stay visible at 390x844. */
@media(max-width:680px){
  .tm-companion-onboard,.tm-companion-room{padding:16px 16px calc(16px + env(safe-area-inset-bottom, 0px));overflow:visible}
  .tm-companion-room .tm-pet-stage,
  [data-companion-room] .tm-pet-stage{
    min-height:0;
    max-height:130px;
    margin:8px auto 4px;
    padding:2px;
    overflow:hidden;
  }
  .tm-companion-room .tm-pet-tap,
  [data-companion-room] .tm-pet-tap{width:130px;max-height:126px}
  .tm-companion-room .tm-pet-svg,
  [data-companion-room] .tm-pet-svg{max-height:126px;width:auto;margin:0 auto;display:block}
  .tm-companion-message{min-height:22px;margin:4px auto 8px}
  .tm-pet-buttons{overflow:visible;margin:8px 0 6px}
}
