/* TosBot — animated welcome robot (owner 2026-11-20). View: application/views/site/_tc_robot.php */
.tcbot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 340px; margin: 0 auto; user-select: none; }
.tcbot-lg .tcbot-body { width: 220px; } .tcbot-md .tcbot-body { width: 170px; }
.tcbot-body { position: relative; animation: tcbFloat 4s ease-in-out infinite; }
.tcbot-body svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(4, 120, 87, .35)); overflow: visible; }
.tcbot-shadow { width: 55%; height: 14px; margin: 4px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); animation: tcbShadow 4s ease-in-out infinite; }
.tcbot-arm { transform-origin: 175px 168px; transform-box: view-box; animation: tcbWave 2.2s ease-in-out infinite; }
.tcbot-eyes { transform-origin: 110px 86px; transform-box: view-box; animation: tcbBlink 4.5s infinite; }
.tcbot-ant { animation: tcbPulse 1.6s ease-in-out infinite; transform-origin: 110px 13px; transform-box: view-box; }
.tcbot-dot { animation: tcbDot 1.2s infinite; } .tcbot-dot.d2 { animation-delay: .15s; } .tcbot-dot.d3 { animation-delay: .3s; }
.tcbot-bubble {
  position: relative; min-height: 46px; max-width: 100%; padding: 11px 18px; border-radius: 18px 18px 18px 6px;
  background: #fff; color: #0f172a; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); border: 1px solid rgba(242, 201, 107, .6);
  display: flex; align-items: center; justify-content: center; animation: tcbPop .5s ease both;
}
.tcbot-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); border-right: 1px solid rgba(242, 201, 107, .6); border-bottom: 1px solid rgba(242, 201, 107, .6); }
.tcbot.talk .tcbot-bubble { animation: tcbPop .35s ease both; }
.tcbot-typing { display: inline-flex; gap: 5px; } .tcbot-typing i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: tcbDot 1s infinite; }
.tcbot-typing i:nth-child(2) { animation-delay: .15s; } .tcbot-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tcbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes tcbShadow { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(.8); opacity: .45; } }
@keyframes tcbWave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-22deg); } 20%, 40% { transform: rotate(8deg); } }
@keyframes tcbBlink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.1); } }
@keyframes tcbPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .75; } }
@keyframes tcbDot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes tcbPop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tcbot *, .tcbot { animation: none !important; } }
@media (max-width: 767.98px) { .tcbot-lg .tcbot-body { width: 150px; } .tcbot-bubble { font-size: 14px; } }
