/* Mobile-only decoration: every overlay remains outside the interaction layer. */
.mobile-robot, .touch-shock { display: none; pointer-events: none; }
@media (max-width: 600px) and (orientation: portrait) {
  .mobile-robot { display: block; position: fixed; z-index: 59; visibility: hidden; isolation: isolate; contain: layout style; }
  .mobile-robot.is-active { visibility: visible; }
  .mobile-robot canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
  .mobile-robot-glow { position: absolute; z-index: 0; inset: -8% -14% -4%; opacity: var(--robot-reveal, 0); pointer-events: none; }
  .mobile-robot-glow::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 58%, rgba(146, 91, 223, .23), rgba(113, 62, 188, .12) 38%, rgba(92, 51, 163, .035) 60%, transparent 74%); }
  .mobile-robot.is-active .mobile-robot-glow::before { animation: robot-purple-breathe 2.2s ease-in-out infinite; }
  @keyframes robot-purple-breathe { 0%, 100% { transform: scale(.96); opacity: .56; } 50% { transform: scale(1.06); opacity: .88; } }

  .logic-longpress-pending, .logic-longpress-pending * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .touch-shock { display: block; position: fixed; z-index: 70; width: 300px; height: 300px; transform: translate(-50%, -50%); contain: layout style; }
  .touch-shock-field { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; opacity: 0; background: radial-gradient(circle, rgba(254, 158, 49, .085), rgba(254, 93, 5, .025) 32%, transparent 68%); animation: touch-field-life 3s ease-out both, touch-local-tremor 3s linear both; }
  .touch-shock-lens { position: absolute; inset: 17%; border-radius: 50%; -webkit-backdrop-filter: blur(.6px) contrast(1.05); backdrop-filter: blur(.6px) contrast(1.05); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
  .touch-shock-ring { position: absolute; inset: 12%; border: 1px solid rgba(254, 158, 49, .7); border-radius: 50%; box-shadow: 0 0 8px rgba(254, 93, 5, .13), inset 0 0 8px rgba(255, 255, 255, .07); opacity: 0; animation: touch-impact-ring 2.4s cubic-bezier(.16, .7, .3, 1) var(--ring-delay, 0s) both; }
  .touch-shock-ring:nth-of-type(2) { --ring-delay: .2s; }
  .touch-shock-ring:nth-of-type(3) { --ring-delay: .4s; }
  .touch-shock-fractures { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fe9e31; stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
  .touch-shock-fractures path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: touch-fracture-trace 3s ease-out both; }
  @keyframes touch-field-life { 0% { opacity: 0; } 8%, 55% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes touch-impact-ring { 0% { opacity: .75; transform: scale(.06); } 28% { opacity: .4; } 100% { opacity: 0; transform: scale(1.35); } }
  @keyframes touch-fracture-trace { 0% { stroke-dashoffset: 140; opacity: 0; } 14%, 55% { stroke-dashoffset: 0; opacity: .55; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes touch-local-tremor { 0%, 7%, 14%, 21%, 28%, 35%, 42%, 49%, 56%, 63%, 70%, 100% { transform: translate(0, 0); } 3%, 17%, 31% { transform: translate(2px, -1px) rotate(.3deg); } 10%, 24%, 38% { transform: translate(-2px, 1px) rotate(-.3deg); } 45%, 59% { transform: translate(1px, -1px); } 52%, 66% { transform: translate(-1px, 1px); } }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .mobile-robot, .touch-shock { display: none !important; }
}
@media print { .mobile-robot, .touch-shock { display: none !important; } }
